98 lines
1.6 KiB
Perl
98 lines
1.6 KiB
Perl
use utf8;
|
|
package My::Mailserver::Schema::Result::VirtualAlias;
|
|
|
|
# Created by DBIx::Class::Schema::Loader
|
|
# DO NOT MODIFY THE FIRST PART OF THIS FILE
|
|
|
|
=head1 NAME
|
|
|
|
My::Mailserver::Schema::Result::VirtualAlias
|
|
|
|
=cut
|
|
|
|
use strict;
|
|
use warnings;
|
|
|
|
use base 'DBIx::Class::Core';
|
|
|
|
=head1 TABLE: C<virtual_aliases>
|
|
|
|
=cut
|
|
|
|
__PACKAGE__->table("virtual_aliases");
|
|
|
|
=head1 ACCESSORS
|
|
|
|
=head2 id
|
|
|
|
data_type: 'integer'
|
|
is_auto_increment: 1
|
|
is_nullable: 0
|
|
|
|
=head2 domain_id
|
|
|
|
data_type: 'integer'
|
|
is_foreign_key: 1
|
|
is_nullable: 0
|
|
|
|
=head2 source
|
|
|
|
data_type: 'varchar'
|
|
is_nullable: 0
|
|
size: 255
|
|
|
|
=head2 destination
|
|
|
|
data_type: 'varchar'
|
|
is_nullable: 0
|
|
size: 255
|
|
|
|
=cut
|
|
|
|
__PACKAGE__->add_columns(
|
|
"id",
|
|
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
|
|
"domain_id",
|
|
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
|
|
"source",
|
|
{ data_type => "varchar", is_nullable => 0, size => 255 },
|
|
"destination",
|
|
{ data_type => "varchar", is_nullable => 0, size => 255 },
|
|
);
|
|
|
|
=head1 PRIMARY KEY
|
|
|
|
=over 4
|
|
|
|
=item * L</id>
|
|
|
|
=back
|
|
|
|
=cut
|
|
|
|
__PACKAGE__->set_primary_key("id");
|
|
|
|
=head1 RELATIONS
|
|
|
|
=head2 domain
|
|
|
|
Type: belongs_to
|
|
|
|
Related object: L<My::Mailserver::Schema::Result::VirtualDomain>
|
|
|
|
=cut
|
|
|
|
__PACKAGE__->belongs_to(
|
|
"domain",
|
|
"My::Mailserver::Schema::Result::VirtualDomain",
|
|
{ id => "domain_id" },
|
|
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" },
|
|
);
|
|
|
|
|
|
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2019-06-15 22:53:38
|
|
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:otU7xR9XhoziLALEVhQUZw
|
|
|
|
|
|
# You can replace this text with custom code or comments, and it will be preserved on regeneration
|
|
1;
|