Bug 21674: (RM follow-up) Fix updatedatabase error
[koha.git] / Koha / Schema / Result / Issuingrule.pm
blobecc549e5a8a7c5239e39025a017364559947cf46
1 use utf8;
2 package Koha::Schema::Result::Issuingrule;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::Issuingrule
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<issuingrules>
20 =cut
22 __PACKAGE__->table("issuingrules");
24 =head1 ACCESSORS
26 =head2 categorycode
28 data_type: 'varchar'
29 default_value: (empty string)
30 is_nullable: 0
31 size: 10
33 =head2 itemtype
35 data_type: 'varchar'
36 default_value: (empty string)
37 is_nullable: 0
38 size: 10
40 =head2 restrictedtype
42 data_type: 'tinyint'
43 is_nullable: 1
45 =head2 rentaldiscount
47 data_type: 'decimal'
48 is_nullable: 1
49 size: [28,6]
51 =head2 reservecharge
53 data_type: 'decimal'
54 is_nullable: 1
55 size: [28,6]
57 =head2 fine
59 data_type: 'decimal'
60 is_nullable: 1
61 size: [28,6]
63 =head2 finedays
65 data_type: 'integer'
66 is_nullable: 1
68 =head2 maxsuspensiondays
70 data_type: 'integer'
71 is_nullable: 1
73 =head2 suspension_chargeperiod
75 data_type: 'integer'
76 default_value: 1
77 is_nullable: 1
79 =head2 firstremind
81 data_type: 'integer'
82 is_nullable: 1
84 =head2 chargeperiod
86 data_type: 'integer'
87 is_nullable: 1
89 =head2 chargeperiod_charge_at
91 data_type: 'tinyint'
92 default_value: 0
93 is_nullable: 0
95 =head2 accountsent
97 data_type: 'integer'
98 is_nullable: 1
100 =head2 issuelength
102 data_type: 'integer'
103 is_nullable: 1
105 =head2 lengthunit
107 data_type: 'varchar'
108 default_value: 'days'
109 is_nullable: 1
110 size: 10
112 =head2 hardduedate
114 data_type: 'date'
115 datetime_undef_if_invalid: 1
116 is_nullable: 1
118 =head2 hardduedatecompare
120 data_type: 'tinyint'
121 default_value: 0
122 is_nullable: 0
124 =head2 renewalsallowed
126 data_type: 'smallint'
127 default_value: 0
128 is_nullable: 0
130 =head2 renewalperiod
132 data_type: 'integer'
133 is_nullable: 1
135 =head2 norenewalbefore
137 data_type: 'integer'
138 is_nullable: 1
140 =head2 auto_renew
142 data_type: 'tinyint'
143 default_value: 0
144 is_nullable: 1
146 =head2 no_auto_renewal_after
148 data_type: 'integer'
149 is_nullable: 1
151 =head2 no_auto_renewal_after_hard_limit
153 data_type: 'date'
154 datetime_undef_if_invalid: 1
155 is_nullable: 1
157 =head2 reservesallowed
159 data_type: 'smallint'
160 default_value: 0
161 is_nullable: 0
163 =head2 holds_per_record
165 data_type: 'smallint'
166 default_value: 1
167 is_nullable: 0
169 =head2 holds_per_day
171 data_type: 'smallint'
172 is_nullable: 1
174 =head2 branchcode
176 data_type: 'varchar'
177 default_value: (empty string)
178 is_nullable: 0
179 size: 10
181 =head2 overduefinescap
183 data_type: 'decimal'
184 is_nullable: 1
185 size: [28,6]
187 =head2 cap_fine_to_replacement_price
189 data_type: 'tinyint'
190 default_value: 0
191 is_nullable: 0
193 =head2 onshelfholds
195 data_type: 'tinyint'
196 default_value: 0
197 is_nullable: 0
199 =head2 opacitemholds
201 data_type: 'char'
202 default_value: 'N'
203 is_nullable: 0
204 size: 1
206 =head2 article_requests
208 data_type: 'enum'
209 default_value: 'no'
210 extra: {list => ["no","yes","bib_only","item_only"]}
211 is_nullable: 0
213 =head2 note
215 data_type: 'varchar'
216 is_nullable: 1
217 size: 100
219 =cut
221 __PACKAGE__->add_columns(
222 "categorycode",
223 { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
224 "itemtype",
225 { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
226 "restrictedtype",
227 { data_type => "tinyint", is_nullable => 1 },
228 "rentaldiscount",
229 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
230 "reservecharge",
231 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
232 "fine",
233 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
234 "finedays",
235 { data_type => "integer", is_nullable => 1 },
236 "maxsuspensiondays",
237 { data_type => "integer", is_nullable => 1 },
238 "suspension_chargeperiod",
239 { data_type => "integer", default_value => 1, is_nullable => 1 },
240 "firstremind",
241 { data_type => "integer", is_nullable => 1 },
242 "chargeperiod",
243 { data_type => "integer", is_nullable => 1 },
244 "chargeperiod_charge_at",
245 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
246 "accountsent",
247 { data_type => "integer", is_nullable => 1 },
248 "issuelength",
249 { data_type => "integer", is_nullable => 1 },
250 "lengthunit",
252 data_type => "varchar",
253 default_value => "days",
254 is_nullable => 1,
255 size => 10,
257 "hardduedate",
258 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
259 "hardduedatecompare",
260 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
261 "renewalsallowed",
262 { data_type => "smallint", default_value => 0, is_nullable => 0 },
263 "renewalperiod",
264 { data_type => "integer", is_nullable => 1 },
265 "norenewalbefore",
266 { data_type => "integer", is_nullable => 1 },
267 "auto_renew",
268 { data_type => "tinyint", default_value => 0, is_nullable => 1 },
269 "no_auto_renewal_after",
270 { data_type => "integer", is_nullable => 1 },
271 "no_auto_renewal_after_hard_limit",
272 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
273 "reservesallowed",
274 { data_type => "smallint", default_value => 0, is_nullable => 0 },
275 "holds_per_record",
276 { data_type => "smallint", default_value => 1, is_nullable => 0 },
277 "holds_per_day",
278 { data_type => "smallint", is_nullable => 1 },
279 "branchcode",
280 { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
281 "overduefinescap",
282 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
283 "cap_fine_to_replacement_price",
284 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
285 "onshelfholds",
286 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
287 "opacitemholds",
288 { data_type => "char", default_value => "N", is_nullable => 0, size => 1 },
289 "article_requests",
291 data_type => "enum",
292 default_value => "no",
293 extra => { list => ["no", "yes", "bib_only", "item_only"] },
294 is_nullable => 0,
296 "note",
297 { data_type => "varchar", is_nullable => 1, size => 100 },
300 =head1 PRIMARY KEY
302 =over 4
304 =item * L</branchcode>
306 =item * L</categorycode>
308 =item * L</itemtype>
310 =back
312 =cut
314 __PACKAGE__->set_primary_key("branchcode", "categorycode", "itemtype");
317 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-03-05 20:49:11
318 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6bPX0BRWWQZrWFun3GP86Q
320 sub koha_object_class {
321 'Koha::IssuingRule';
323 sub koha_objects_class {
324 'Koha::IssuingRules';