f1470b98999ea1ed92deca4d2b4663d7658c91c1
[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 chargename
101
102   data_type: 'varchar'
103   is_nullable: 1
104   size: 100
105
106 =head2 maxissueqty
107
108   data_type: 'integer'
109   is_nullable: 1
110
111 =head2 maxonsiteissueqty
112
113   data_type: 'integer'
114   is_nullable: 1
115
116 =head2 issuelength
117
118   data_type: 'integer'
119   is_nullable: 1
120
121 =head2 lengthunit
122
123   data_type: 'varchar'
124   default_value: 'days'
125   is_nullable: 1
126   size: 10
127
128 =head2 hardduedate
129
130   data_type: 'date'
131   datetime_undef_if_invalid: 1
132   is_nullable: 1
133
134 =head2 hardduedatecompare
135
136   data_type: 'tinyint'
137   default_value: 0
138   is_nullable: 0
139
140 =head2 renewalsallowed
141
142   data_type: 'smallint'
143   default_value: 0
144   is_nullable: 0
145
146 =head2 renewalperiod
147
148   data_type: 'integer'
149   is_nullable: 1
150
151 =head2 norenewalbefore
152
153   data_type: 'integer'
154   is_nullable: 1
155
156 =head2 auto_renew
157
158   data_type: 'tinyint'
159   default_value: 0
160   is_nullable: 1
161
162 =head2 no_auto_renewal_after
163
164   data_type: 'integer'
165   is_nullable: 1
166
167 =head2 no_auto_renewal_after_hard_limit
168
169   data_type: 'date'
170   datetime_undef_if_invalid: 1
171   is_nullable: 1
172
173 =head2 reservesallowed
174
175   data_type: 'smallint'
176   default_value: 0
177   is_nullable: 0
178
179 =head2 holds_per_record
180
181   data_type: 'smallint'
182   default_value: 1
183   is_nullable: 0
184
185 =head2 holds_per_day
186
187   data_type: 'smallint'
188   is_nullable: 1
189
190 =head2 branchcode
191
192   data_type: 'varchar'
193   default_value: (empty string)
194   is_nullable: 0
195   size: 10
196
197 =head2 overduefinescap
198
199   data_type: 'decimal'
200   is_nullable: 1
201   size: [28,6]
202
203 =head2 cap_fine_to_replacement_price
204
205   data_type: 'tinyint'
206   default_value: 0
207   is_nullable: 0
208
209 =head2 onshelfholds
210
211   data_type: 'tinyint'
212   default_value: 0
213   is_nullable: 0
214
215 =head2 opacitemholds
216
217   data_type: 'char'
218   default_value: 'N'
219   is_nullable: 0
220   size: 1
221
222 =head2 article_requests
223
224   data_type: 'enum'
225   default_value: 'no'
226   extra: {list => ["no","yes","bib_only","item_only"]}
227   is_nullable: 0
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   "chargename",
259   { data_type => "varchar", is_nullable => 1, size => 100 },
260   "maxissueqty",
261   { data_type => "integer", is_nullable => 1 },
262   "maxonsiteissueqty",
263   { data_type => "integer", is_nullable => 1 },
264   "issuelength",
265   { data_type => "integer", is_nullable => 1 },
266   "lengthunit",
267   {
268     data_type => "varchar",
269     default_value => "days",
270     is_nullable => 1,
271     size => 10,
272   },
273   "hardduedate",
274   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
275   "hardduedatecompare",
276   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
277   "renewalsallowed",
278   { data_type => "smallint", default_value => 0, is_nullable => 0 },
279   "renewalperiod",
280   { data_type => "integer", is_nullable => 1 },
281   "norenewalbefore",
282   { data_type => "integer", is_nullable => 1 },
283   "auto_renew",
284   { data_type => "tinyint", default_value => 0, is_nullable => 1 },
285   "no_auto_renewal_after",
286   { data_type => "integer", is_nullable => 1 },
287   "no_auto_renewal_after_hard_limit",
288   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
289   "reservesallowed",
290   { data_type => "smallint", default_value => 0, is_nullable => 0 },
291   "holds_per_record",
292   { data_type => "smallint", default_value => 1, is_nullable => 0 },
293   "holds_per_day",
294   { data_type => "smallint", is_nullable => 1 },
295   "branchcode",
296   { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
297   "overduefinescap",
298   { data_type => "decimal", is_nullable => 1, size => [28, 6] },
299   "cap_fine_to_replacement_price",
300   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
301   "onshelfholds",
302   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
303   "opacitemholds",
304   { data_type => "char", default_value => "N", is_nullable => 0, size => 1 },
305   "article_requests",
306   {
307     data_type => "enum",
308     default_value => "no",
309     extra => { list => ["no", "yes", "bib_only", "item_only"] },
310     is_nullable => 0,
311   },
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 @ 2018-10-24 13:17:50
332 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hVIiAIZ5ui3ZhLhuVxCzZg
333
334
335 # You can replace this text with custom code or comments, and it will be preserved on regeneration
336 1;