2 package Koha::Schema::Result::LibrarySmtpServer;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::LibrarySmtpServer
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<library_smtp_servers>
22 __PACKAGE__->table("library_smtp_servers");
47 __PACKAGE__->add_columns(
49 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
51 { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
53 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
66 __PACKAGE__->set_primary_key("id");
68 =head1 UNIQUE CONSTRAINTS
70 =head2 C<library_id_idx>
74 =item * L</library_id>
80 __PACKAGE__->add_unique_constraint("library_id_idx", ["library_id"]);
88 Related object: L<Koha::Schema::Result::Branch>
92 __PACKAGE__->belongs_to(
94 "Koha::Schema::Result::Branch",
95 { branchcode => "library_id" },
96 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
103 Related object: L<Koha::Schema::Result::SmtpServer>
107 __PACKAGE__->belongs_to(
109 "Koha::Schema::Result::SmtpServer",
110 { id => "smtp_server_id" },
111 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
115 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-08-24 13:41:24
116 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qKAQAs3VFcitIGDGra/zuw
119 # You can replace this text with custom code or comments, and it will be preserved on regeneration