Bug 33606: (QA follow-up) Cosmetic changes
[koha.git] / Koha / Schema / Result / SmtpServer.pm
1 use utf8;
2 package Koha::Schema::Result::SmtpServer;
3
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7 =head1 NAME
8
9 Koha::Schema::Result::SmtpServer
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<smtp_servers>
19
20 =cut
21
22 __PACKAGE__->table("smtp_servers");
23
24 =head1 ACCESSORS
25
26 =head2 id
27
28   data_type: 'integer'
29   is_auto_increment: 1
30   is_nullable: 0
31
32 =head2 name
33
34   data_type: 'varchar'
35   is_nullable: 0
36   size: 80
37
38 =head2 host
39
40   data_type: 'varchar'
41   default_value: 'localhost'
42   is_nullable: 0
43   size: 80
44
45 =head2 port
46
47   data_type: 'integer'
48   default_value: 25
49   is_nullable: 0
50
51 =head2 timeout
52
53   data_type: 'integer'
54   default_value: 120
55   is_nullable: 0
56
57 =head2 ssl_mode
58
59   data_type: 'enum'
60   extra: {list => ["disabled","ssl","starttls"]}
61   is_nullable: 0
62
63 =head2 user_name
64
65   data_type: 'varchar'
66   is_nullable: 1
67   size: 80
68
69 =head2 password
70
71   data_type: 'varchar'
72   is_nullable: 1
73   size: 80
74
75 =head2 debug
76
77   data_type: 'tinyint'
78   default_value: 0
79   is_nullable: 0
80
81 =head2 is_default
82
83   data_type: 'tinyint'
84   default_value: 0
85   is_nullable: 0
86
87 =cut
88
89 __PACKAGE__->add_columns(
90   "id",
91   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
92   "name",
93   { data_type => "varchar", is_nullable => 0, size => 80 },
94   "host",
95   {
96     data_type => "varchar",
97     default_value => "localhost",
98     is_nullable => 0,
99     size => 80,
100   },
101   "port",
102   { data_type => "integer", default_value => 25, is_nullable => 0 },
103   "timeout",
104   { data_type => "integer", default_value => 120, is_nullable => 0 },
105   "ssl_mode",
106   {
107     data_type => "enum",
108     extra => { list => ["disabled", "ssl", "starttls"] },
109     is_nullable => 0,
110   },
111   "user_name",
112   { data_type => "varchar", is_nullable => 1, size => 80 },
113   "password",
114   { data_type => "varchar", is_nullable => 1, size => 80 },
115   "debug",
116   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
117   "is_default",
118   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
119 );
120
121 =head1 PRIMARY KEY
122
123 =over 4
124
125 =item * L</id>
126
127 =back
128
129 =cut
130
131 __PACKAGE__->set_primary_key("id");
132
133 =head1 RELATIONS
134
135 =head2 library_smtp_servers
136
137 Type: has_many
138
139 Related object: L<Koha::Schema::Result::LibrarySmtpServer>
140
141 =cut
142
143 __PACKAGE__->has_many(
144   "library_smtp_servers",
145   "Koha::Schema::Result::LibrarySmtpServer",
146   { "foreign.smtp_server_id" => "self.id" },
147   { cascade_copy => 0, cascade_delete => 0 },
148 );
149
150
151 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-01-20 18:18:33
152 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:D+EewRQjaYPN3VEOAt8Tkg
153
154 __PACKAGE__->add_columns(
155     '+debug'      => { is_boolean => 1 },
156     '+is_default' => { is_boolean => 1 },
157 );
158
159 sub koha_objects_class {
160     'Koha::SMTP::Servers';
161 }
162
163 sub koha_object_class {
164     'Koha::SMTP::Server';
165 }
166
167 1;