Bug 21753: DBRev 18.12.00.007
[koha.git] / Koha / Schema / Result / Issuingrule.pm
1 use utf8;
2 package Koha::Schema::Result::Issuingrule;
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::Issuingrule
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<issuingrules>
19
20 =cut
21
22 __PACKAGE__->table("issuingrules");
23
24 =head1 ACCESSORS
25
26 =head2 categorycode
27
28   data_type: 'varchar'
29   default_value: (empty string)
30   is_nullable: 0
31   size: 10
32
33 =head2 itemtype
34
35   data_type: 'varchar'
36   default_value: (empty string)
37   is_nullable: 0
38   size: 10
39
40 =head2 restrictedtype
41
42   data_type: 'tinyint'
43   is_nullable: 1
44
45 =head2 rentaldiscount
46
47   data_type: 'decimal'
48   is_nullable: 1
49   size: [28,6]
50
51 =head2 reservecharge
52
53   data_type: 'decimal'
54   is_nullable: 1
55   size: [28,6]
56
57 =head2 fine
58
59   data_type: 'decimal'
60   is_nullable: 1
61   size: [28,6]
62
63 =head2 finedays
64
65   data_type: 'integer'
66   is_nullable: 1
67
68 =head2 maxsuspensiondays
69
70   data_type: 'integer'
71   is_nullable: 1
72
73 =head2 suspension_chargeperiod
74
75   data_type: 'integer'
76   default_value: 1
77   is_nullable: 1
78
79 =head2 firstremind
80
81   data_type: 'integer'
82   is_nullable: 1
83
84 =head2 chargeperiod
85
86   data_type: 'integer'
87   is_nullable: 1
88
89 =head2 chargeperiod_charge_at
90
91   data_type: 'tinyint'
92   default_value: 0
93   is_nullable: 0
94
95 =head2 accountsent
96
97   data_type: 'integer'
98   is_nullable: 1
99
100 =head2 maxissueqty
101
102   data_type: 'integer'
103   is_nullable: 1
104
105 =head2 maxonsiteissueqty
106
107   data_type: 'integer'
108   is_nullable: 1
109
110 =head2 issuelength
111
112   data_type: 'integer'
113   is_nullable: 1
114
115 =head2 lengthunit
116
117   data_type: 'varchar'
118   default_value: 'days'
119   is_nullable: 1
120   size: 10
121
122 =head2 hardduedate
123
124   data_type: 'date'
125   datetime_undef_if_invalid: 1
126   is_nullable: 1
127
128 =head2 hardduedatecompare
129
130   data_type: 'tinyint'
131   default_value: 0
132   is_nullable: 0
133
134 =head2 renewalsallowed
135
136   data_type: 'smallint'
137   default_value: 0
138   is_nullable: 0
139
140 =head2 renewalperiod
141
142   data_type: 'integer'
143   is_nullable: 1
144
145 =head2 norenewalbefore
146
147   data_type: 'integer'
148   is_nullable: 1
149
150 =head2 auto_renew
151
152   data_type: 'tinyint'
153   default_value: 0
154   is_nullable: 1
155
156 =head2 no_auto_renewal_after
157
158   data_type: 'integer'
159   is_nullable: 1
160
161 =head2 no_auto_renewal_after_hard_limit
162
163   data_type: 'date'
164   datetime_undef_if_invalid: 1
165   is_nullable: 1
166
167 =head2 reservesallowed
168
169   data_type: 'smallint'
170   default_value: 0
171   is_nullable: 0
172
173 =head2 holds_per_record
174
175   data_type: 'smallint'
176   default_value: 1
177   is_nullable: 0
178
179 =head2 holds_per_day
180
181   data_type: 'smallint'
182   is_nullable: 1
183
184 =head2 branchcode
185
186   data_type: 'varchar'
187   default_value: (empty string)
188   is_nullable: 0
189   size: 10
190
191 =head2 overduefinescap
192
193   data_type: 'decimal'
194   is_nullable: 1
195   size: [28,6]
196
197 =head2 cap_fine_to_replacement_price
198
199   data_type: 'tinyint'
200   default_value: 0
201   is_nullable: 0
202
203 =head2 onshelfholds
204
205   data_type: 'tinyint'
206   default_value: 0
207   is_nullable: 0
208
209 =head2 opacitemholds
210
211   data_type: 'char'
212   default_value: 'N'
213   is_nullable: 0
214   size: 1
215
216 =head2 article_requests
217
218   data_type: 'enum'
219   default_value: 'no'
220   extra: {list => ["no","yes","bib_only","item_only"]}
221   is_nullable: 0
222
223 =head2 note
224
225   data_type: 'varchar'
226   is_nullable: 1
227   size: 100
228
229 =cut
230
231 __PACKAGE__->add_columns(
232   "categorycode",
233   { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
234   "itemtype",
235   { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
236   "restrictedtype",
237   { data_type => "tinyint", is_nullable => 1 },
238   "rentaldiscount",
239   { data_type => "decimal", is_nullable => 1, size => [28, 6] },
240   "reservecharge",
241   { data_type => "decimal", is_nullable => 1, size => [28, 6] },
242   "fine",
243   { data_type => "decimal", is_nullable => 1, size => [28, 6] },
244   "finedays",
245   { data_type => "integer", is_nullable => 1 },
246   "maxsuspensiondays",
247   { data_type => "integer", is_nullable => 1 },
248   "suspension_chargeperiod",
249   { data_type => "integer", default_value => 1, is_nullable => 1 },
250   "firstremind",
251   { data_type => "integer", is_nullable => 1 },
252   "chargeperiod",
253   { data_type => "integer", is_nullable => 1 },
254   "chargeperiod_charge_at",
255   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
256   "accountsent",
257   { data_type => "integer", is_nullable => 1 },
258   "maxissueqty",
259   { data_type => "integer", is_nullable => 1 },
260   "maxonsiteissueqty",
261   { data_type => "integer", is_nullable => 1 },
262   "issuelength",
263   { data_type => "integer", is_nullable => 1 },
264   "lengthunit",
265   {
266     data_type => "varchar",
267     default_value => "days",
268     is_nullable => 1,
269     size => 10,
270   },
271   "hardduedate",
272   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
273   "hardduedatecompare",
274   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
275   "renewalsallowed",
276   { data_type => "smallint", default_value => 0, is_nullable => 0 },
277   "renewalperiod",
278   { data_type => "integer", is_nullable => 1 },
279   "norenewalbefore",
280   { data_type => "integer", is_nullable => 1 },
281   "auto_renew",
282   { data_type => "tinyint", default_value => 0, is_nullable => 1 },
283   "no_auto_renewal_after",
284   { data_type => "integer", is_nullable => 1 },
285   "no_auto_renewal_after_hard_limit",
286   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
287   "reservesallowed",
288   { data_type => "smallint", default_value => 0, is_nullable => 0 },
289   "holds_per_record",
290   { data_type => "smallint", default_value => 1, is_nullable => 0 },
291   "holds_per_day",
292   { data_type => "smallint", is_nullable => 1 },
293   "branchcode",
294   { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
295   "overduefinescap",
296   { data_type => "decimal", is_nullable => 1, size => [28, 6] },
297   "cap_fine_to_replacement_price",
298   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
299   "onshelfholds",
300   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
301   "opacitemholds",
302   { data_type => "char", default_value => "N", is_nullable => 0, size => 1 },
303   "article_requests",
304   {
305     data_type => "enum",
306     default_value => "no",
307     extra => { list => ["no", "yes", "bib_only", "item_only"] },
308     is_nullable => 0,
309   },
310   "note",
311   { data_type => "varchar", is_nullable => 1, size => 100 },
312 );
313
314 =head1 PRIMARY KEY
315
316 =over 4
317
318 =item * L</branchcode>
319
320 =item * L</categorycode>
321
322 =item * L</itemtype>
323
324 =back
325
326 =cut
327
328 __PACKAGE__->set_primary_key("branchcode", "categorycode", "itemtype");
329
330
331 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2019-01-04 03:06:35
332 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:slPyHZs0YvOKev3cAxdDJQ
333
334
335 # You can replace this text with custom code or comments, and it will be preserved on regeneration
336 1;