Bug 19804: DBIC Schema changes
[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 branchcode
186
187   data_type: 'varchar'
188   default_value: (empty string)
189   is_nullable: 0
190   size: 10
191
192 =head2 overduefinescap
193
194   data_type: 'decimal'
195   is_nullable: 1
196   size: [28,6]
197
198 =head2 cap_fine_to_replacement_price
199
200   data_type: 'tinyint'
201   default_value: 0
202   is_nullable: 0
203
204 =head2 onshelfholds
205
206   data_type: 'tinyint'
207   default_value: 0
208   is_nullable: 0
209
210 =head2 opacitemholds
211
212   data_type: 'char'
213   default_value: 'N'
214   is_nullable: 0
215   size: 1
216
217 =head2 article_requests
218
219   data_type: 'enum'
220   default_value: 'no'
221   extra: {list => ["no","yes","bib_only","item_only"]}
222   is_nullable: 0
223
224 =cut
225
226 __PACKAGE__->add_columns(
227   "categorycode",
228   { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
229   "itemtype",
230   { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
231   "restrictedtype",
232   { data_type => "tinyint", is_nullable => 1 },
233   "rentaldiscount",
234   { data_type => "decimal", is_nullable => 1, size => [28, 6] },
235   "reservecharge",
236   { data_type => "decimal", is_nullable => 1, size => [28, 6] },
237   "fine",
238   { data_type => "decimal", is_nullable => 1, size => [28, 6] },
239   "finedays",
240   { data_type => "integer", is_nullable => 1 },
241   "maxsuspensiondays",
242   { data_type => "integer", is_nullable => 1 },
243   "suspension_chargeperiod",
244   { data_type => "integer", default_value => 1, is_nullable => 1 },
245   "firstremind",
246   { data_type => "integer", is_nullable => 1 },
247   "chargeperiod",
248   { data_type => "integer", is_nullable => 1 },
249   "chargeperiod_charge_at",
250   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
251   "accountsent",
252   { data_type => "integer", is_nullable => 1 },
253   "chargename",
254   { data_type => "varchar", is_nullable => 1, size => 100 },
255   "maxissueqty",
256   { data_type => "integer", is_nullable => 1 },
257   "maxonsiteissueqty",
258   { data_type => "integer", is_nullable => 1 },
259   "issuelength",
260   { data_type => "integer", is_nullable => 1 },
261   "lengthunit",
262   {
263     data_type => "varchar",
264     default_value => "days",
265     is_nullable => 1,
266     size => 10,
267   },
268   "hardduedate",
269   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
270   "hardduedatecompare",
271   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
272   "renewalsallowed",
273   { data_type => "smallint", default_value => 0, is_nullable => 0 },
274   "renewalperiod",
275   { data_type => "integer", is_nullable => 1 },
276   "norenewalbefore",
277   { data_type => "integer", is_nullable => 1 },
278   "auto_renew",
279   { data_type => "tinyint", default_value => 0, is_nullable => 1 },
280   "no_auto_renewal_after",
281   { data_type => "integer", is_nullable => 1 },
282   "no_auto_renewal_after_hard_limit",
283   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
284   "reservesallowed",
285   { data_type => "smallint", default_value => 0, is_nullable => 0 },
286   "holds_per_record",
287   { data_type => "smallint", default_value => 1, is_nullable => 0 },
288   "branchcode",
289   { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
290   "overduefinescap",
291   { data_type => "decimal", is_nullable => 1, size => [28, 6] },
292   "cap_fine_to_replacement_price",
293   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
294   "onshelfholds",
295   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
296   "opacitemholds",
297   { data_type => "char", default_value => "N", is_nullable => 0, size => 1 },
298   "article_requests",
299   {
300     data_type => "enum",
301     default_value => "no",
302     extra => { list => ["no", "yes", "bib_only", "item_only"] },
303     is_nullable => 0,
304   },
305 );
306
307 =head1 PRIMARY KEY
308
309 =over 4
310
311 =item * L</branchcode>
312
313 =item * L</categorycode>
314
315 =item * L</itemtype>
316
317 =back
318
319 =cut
320
321 __PACKAGE__->set_primary_key("branchcode", "categorycode", "itemtype");
322
323
324 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-12-13 12:44:30
325 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VBD8atc/D/6rN0D+aTaSOQ
326
327
328 # You can replace this text with custom code or comments, and it will be preserved on regeneration
329 1;