Bug 23152: Implement koha_object[s]_class when needed
[koha-equinox.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 issuelength
101
102   data_type: 'integer'
103   is_nullable: 1
104
105 =head2 lengthunit
106
107   data_type: 'varchar'
108   default_value: 'days'
109   is_nullable: 1
110   size: 10
111
112 =head2 hardduedate
113
114   data_type: 'date'
115   datetime_undef_if_invalid: 1
116   is_nullable: 1
117
118 =head2 hardduedatecompare
119
120   data_type: 'tinyint'
121   default_value: 0
122   is_nullable: 0
123
124 =head2 renewalsallowed
125
126   data_type: 'smallint'
127   default_value: 0
128   is_nullable: 0
129
130 =head2 renewalperiod
131
132   data_type: 'integer'
133   is_nullable: 1
134
135 =head2 norenewalbefore
136
137   data_type: 'integer'
138   is_nullable: 1
139
140 =head2 auto_renew
141
142   data_type: 'tinyint'
143   default_value: 0
144   is_nullable: 1
145
146 =head2 no_auto_renewal_after
147
148   data_type: 'integer'
149   is_nullable: 1
150
151 =head2 no_auto_renewal_after_hard_limit
152
153   data_type: 'date'
154   datetime_undef_if_invalid: 1
155   is_nullable: 1
156
157 =head2 reservesallowed
158
159   data_type: 'smallint'
160   default_value: 0
161   is_nullable: 0
162
163 =head2 holds_per_record
164
165   data_type: 'smallint'
166   default_value: 1
167   is_nullable: 0
168
169 =head2 holds_per_day
170
171   data_type: 'smallint'
172   is_nullable: 1
173
174 =head2 branchcode
175
176   data_type: 'varchar'
177   default_value: (empty string)
178   is_nullable: 0
179   size: 10
180
181 =head2 overduefinescap
182
183   data_type: 'decimal'
184   is_nullable: 1
185   size: [28,6]
186
187 =head2 cap_fine_to_replacement_price
188
189   data_type: 'tinyint'
190   default_value: 0
191   is_nullable: 0
192
193 =head2 onshelfholds
194
195   data_type: 'tinyint'
196   default_value: 0
197   is_nullable: 0
198
199 =head2 opacitemholds
200
201   data_type: 'char'
202   default_value: 'N'
203   is_nullable: 0
204   size: 1
205
206 =head2 article_requests
207
208   data_type: 'enum'
209   default_value: 'no'
210   extra: {list => ["no","yes","bib_only","item_only"]}
211   is_nullable: 0
212
213 =head2 note
214
215   data_type: 'varchar'
216   is_nullable: 1
217   size: 100
218
219 =cut
220
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",
251   {
252     data_type => "varchar",
253     default_value => "days",
254     is_nullable => 1,
255     size => 10,
256   },
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",
290   {
291     data_type => "enum",
292     default_value => "no",
293     extra => { list => ["no", "yes", "bib_only", "item_only"] },
294     is_nullable => 0,
295   },
296   "note",
297   { data_type => "varchar", is_nullable => 1, size => 100 },
298 );
299
300 =head1 PRIMARY KEY
301
302 =over 4
303
304 =item * L</branchcode>
305
306 =item * L</categorycode>
307
308 =item * L</itemtype>
309
310 =back
311
312 =cut
313
314 __PACKAGE__->set_primary_key("branchcode", "categorycode", "itemtype");
315
316
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
319
320 sub koha_object_class {
321     'Koha::IssuingRule';
322 }
323 sub koha_objects_class {
324     'Koha::IssuingRules';
325 }
326
327 1;