2 package Koha::Schema::Result::SmtpServer;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::SmtpServer
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<smtp_servers>
22 __PACKAGE__->table("smtp_servers");
41 default_value: 'localhost'
60 extra: {list => ["disabled","ssl","starttls"]}
83 __PACKAGE__->add_columns(
85 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
87 { data_type => "varchar", is_nullable => 0, size => 80 },
90 data_type => "varchar",
91 default_value => "localhost",
96 { data_type => "integer", default_value => 25, is_nullable => 0 },
98 { data_type => "integer", default_value => 120, is_nullable => 0 },
102 extra => { list => ["disabled", "ssl", "starttls"] },
106 { data_type => "varchar", is_nullable => 1, size => 80 },
108 { data_type => "varchar", is_nullable => 1, size => 80 },
110 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
123 __PACKAGE__->set_primary_key("id");
127 =head2 library_smtp_servers
131 Related object: L<Koha::Schema::Result::LibrarySmtpServer>
135 __PACKAGE__->has_many(
136 "library_smtp_servers",
137 "Koha::Schema::Result::LibrarySmtpServer",
138 { "foreign.smtp_server_id" => "self.id" },
139 { cascade_copy => 0, cascade_delete => 0 },
143 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-08-21 18:02:08
144 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OpyR6JhcwWKQP2+hyaLiww
146 __PACKAGE__->add_columns(
147 '+debug' => { is_boolean => 1 }
150 sub koha_objects_class {
151 'Koha::SMTP::Servers';
154 sub koha_object_class {
155 'Koha::SMTP::Server';