Bug 12365: Notes for rules
[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 =head2 note
230
231   data_type: 'varchar'
232   is_nullable: 1
233   size: 100
234
235 =cut
236
237 __PACKAGE__->add_columns(
238   "categorycode",
239   { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
240   "itemtype",
241   { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
242   "restrictedtype",
243   { data_type => "tinyint", is_nullable => 1 },
244   "rentaldiscount",
245   { data_type => "decimal", is_nullable => 1, size => [28, 6] },
246   "reservecharge",
247   { data_type => "decimal", is_nullable => 1, size => [28, 6] },
248   "fine",
249   { data_type => "decimal", is_nullable => 1, size => [28, 6] },
250   "finedays",
251   { data_type => "integer", is_nullable => 1 },
252   "maxsuspensiondays",
253   { data_type => "integer", is_nullable => 1 },
254   "suspension_chargeperiod",
255   { data_type => "integer", default_value => 1, is_nullable => 1 },
256   "firstremind",
257   { data_type => "integer", is_nullable => 1 },
258   "chargeperiod",
259   { data_type => "integer", is_nullable => 1 },
260   "chargeperiod_charge_at",
261   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
262   "accountsent",
263   { data_type => "integer", is_nullable => 1 },
264   "chargename",
265   { data_type => "varchar", is_nullable => 1, size => 100 },
266   "maxissueqty",
267   { data_type => "integer", is_nullable => 1 },
268   "maxonsiteissueqty",
269   { data_type => "integer", is_nullable => 1 },
270   "issuelength",
271   { data_type => "integer", is_nullable => 1 },
272   "lengthunit",
273   {
274     data_type => "varchar",
275     default_value => "days",
276     is_nullable => 1,
277     size => 10,
278   },
279   "hardduedate",
280   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
281   "hardduedatecompare",
282   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
283   "renewalsallowed",
284   { data_type => "smallint", default_value => 0, is_nullable => 0 },
285   "renewalperiod",
286   { data_type => "integer", is_nullable => 1 },
287   "norenewalbefore",
288   { data_type => "integer", is_nullable => 1 },
289   "auto_renew",
290   { data_type => "tinyint", default_value => 0, is_nullable => 1 },
291   "no_auto_renewal_after",
292   { data_type => "integer", is_nullable => 1 },
293   "no_auto_renewal_after_hard_limit",
294   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
295   "reservesallowed",
296   { data_type => "smallint", default_value => 0, is_nullable => 0 },
297   "holds_per_record",
298   { data_type => "smallint", default_value => 1, is_nullable => 0 },
299   "holds_per_day",
300   { data_type => "smallint", is_nullable => 1 },
301   "branchcode",
302   { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
303   "overduefinescap",
304   { data_type => "decimal", is_nullable => 1, size => [28, 6] },
305   "cap_fine_to_replacement_price",
306   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
307   "onshelfholds",
308   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
309   "opacitemholds",
310   { data_type => "char", default_value => "N", is_nullable => 0, size => 1 },
311   "article_requests",
312   {
313     data_type => "enum",
314     default_value => "no",
315     extra => { list => ["no", "yes", "bib_only", "item_only"] },
316     is_nullable => 0,
317   },
318   "note",
319   { data_type => "varchar", is_nullable => 1, size => 100 },
320 );
321
322 =head1 PRIMARY KEY
323
324 =over 4
325
326 =item * L</branchcode>
327
328 =item * L</categorycode>
329
330 =item * L</itemtype>
331
332 =back
333
334 =cut
335
336 __PACKAGE__->set_primary_key("branchcode", "categorycode", "itemtype");
337
338
339 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-10-24 13:17:50
340 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hVIiAIZ5ui3ZhLhuVxCzZg
341
342
343 # You can replace this text with custom code or comments, and it will be preserved on regeneration
344 1;