View | Details | Raw Unified | Return to bug 22343
Collapse All | Expand All

(-)a/Koha/Schema/Result/SmtpServer.pm (-1 / +186 lines)
Line 0 Link Here
0
- 
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 library_id
39
40
  data_type: 'varchar'
41
  is_foreign_key: 1
42
  is_nullable: 1
43
  size: 10
44
45
=head2 host
46
47
  data_type: 'varchar'
48
  default_value: 'localhost'
49
  is_nullable: 0
50
  size: 80
51
52
=head2 port
53
54
  data_type: 'integer'
55
  default_value: 25
56
  is_nullable: 0
57
58
=head2 timeout
59
60
  data_type: 'integer'
61
  default_value: 120
62
  is_nullable: 0
63
64
=head2 ssl_mode
65
66
  data_type: 'enum'
67
  extra: {list => ["disabled","ssl","starttls"]}
68
  is_nullable: 0
69
70
=head2 user_name
71
72
  data_type: 'varchar'
73
  is_nullable: 1
74
  size: 80
75
76
=head2 password
77
78
  data_type: 'varchar'
79
  is_nullable: 1
80
  size: 80
81
82
=head2 debug
83
84
  data_type: 'tinyint'
85
  default_value: 0
86
  is_nullable: 0
87
88
=cut
89
90
__PACKAGE__->add_columns(
91
  "id",
92
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
93
  "name",
94
  { data_type => "varchar", is_nullable => 0, size => 80 },
95
  "library_id",
96
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
97
  "host",
98
  {
99
    data_type => "varchar",
100
    default_value => "localhost",
101
    is_nullable => 0,
102
    size => 80,
103
  },
104
  "port",
105
  { data_type => "integer", default_value => 25, is_nullable => 0 },
106
  "timeout",
107
  { data_type => "integer", default_value => 120, is_nullable => 0 },
108
  "ssl_mode",
109
  {
110
    data_type => "enum",
111
    extra => { list => ["disabled", "ssl", "starttls"] },
112
    is_nullable => 0,
113
  },
114
  "user_name",
115
  { data_type => "varchar", is_nullable => 1, size => 80 },
116
  "password",
117
  { data_type => "varchar", is_nullable => 1, size => 80 },
118
  "debug",
119
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
120
);
121
122
=head1 PRIMARY KEY
123
124
=over 4
125
126
=item * L</id>
127
128
=back
129
130
=cut
131
132
__PACKAGE__->set_primary_key("id");
133
134
=head1 UNIQUE CONSTRAINTS
135
136
=head2 C<library_id_idx>
137
138
=over 4
139
140
=item * L</library_id>
141
142
=back
143
144
=cut
145
146
__PACKAGE__->add_unique_constraint("library_id_idx", ["library_id"]);
147
148
=head1 RELATIONS
149
150
=head2 library
151
152
Type: belongs_to
153
154
Related object: L<Koha::Schema::Result::Branch>
155
156
=cut
157
158
__PACKAGE__->belongs_to(
159
  "library",
160
  "Koha::Schema::Result::Branch",
161
  { branchcode => "library_id" },
162
  {
163
    is_deferrable => 1,
164
    join_type     => "LEFT",
165
    on_delete     => "CASCADE",
166
    on_update     => "CASCADE",
167
  },
168
);
169
170
171
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-08-07 17:39:50
172
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:J3/OstCVck+dZe54w/Xkxw
173
174
__PACKAGE__->add_columns(
175
    '+debug' => { is_boolean => 1 }
176
);
177
178
sub koha_objects_class {
179
    'Koha::SMTP::Servers';
180
}
181
182
sub koha_object_class {
183
    'Koha::SMTP::Server';
184
}
185
186
1;

Return to bug 22343