Bug 14610 - Update Schema files
[koha-ffzg.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 firstremind
74
75   data_type: 'integer'
76   is_nullable: 1
77
78 =head2 chargeperiod
79
80   data_type: 'integer'
81   is_nullable: 1
82
83 =head2 chargeperiod_charge_at
84
85   data_type: 'tinyint'
86   default_value: 0
87   is_nullable: 0
88
89 =head2 accountsent
90
91   data_type: 'integer'
92   is_nullable: 1
93
94 =head2 chargename
95
96   data_type: 'varchar'
97   is_nullable: 1
98   size: 100
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 reservesallowed
157
158   data_type: 'smallint'
159   default_value: 0
160   is_nullable: 0
161
162 =head2 holds_per_record
163
164   data_type: 'smallint'
165   default_value: 1
166   is_nullable: 0
167
168 =head2 branchcode
169
170   data_type: 'varchar'
171   default_value: (empty string)
172   is_nullable: 0
173   size: 10
174
175 =head2 overduefinescap
176
177   data_type: 'decimal'
178   is_nullable: 1
179   size: [28,6]
180
181 =head2 cap_fine_to_replacement_price
182
183   data_type: 'tinyint'
184   default_value: 0
185   is_nullable: 0
186
187 =head2 onshelfholds
188
189   data_type: 'tinyint'
190   default_value: 0
191   is_nullable: 0
192
193 =head2 opacitemholds
194
195   data_type: 'char'
196   default_value: 'N'
197   is_nullable: 0
198   size: 1
199
200 =head2 article_requests
201
202   data_type: 'enum'
203   default_value: 'no'
204   extra: {list => ["no","yes","bib_only","item_only"]}
205   is_nullable: 0
206
207 =cut
208
209 __PACKAGE__->add_columns(
210   "categorycode",
211   { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
212   "itemtype",
213   { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
214   "restrictedtype",
215   { data_type => "tinyint", is_nullable => 1 },
216   "rentaldiscount",
217   { data_type => "decimal", is_nullable => 1, size => [28, 6] },
218   "reservecharge",
219   { data_type => "decimal", is_nullable => 1, size => [28, 6] },
220   "fine",
221   { data_type => "decimal", is_nullable => 1, size => [28, 6] },
222   "finedays",
223   { data_type => "integer", is_nullable => 1 },
224   "maxsuspensiondays",
225   { data_type => "integer", is_nullable => 1 },
226   "firstremind",
227   { data_type => "integer", is_nullable => 1 },
228   "chargeperiod",
229   { data_type => "integer", is_nullable => 1 },
230   "chargeperiod_charge_at",
231   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
232   "accountsent",
233   { data_type => "integer", is_nullable => 1 },
234   "chargename",
235   { data_type => "varchar", is_nullable => 1, size => 100 },
236   "maxissueqty",
237   { data_type => "integer", is_nullable => 1 },
238   "maxonsiteissueqty",
239   { data_type => "integer", is_nullable => 1 },
240   "issuelength",
241   { data_type => "integer", is_nullable => 1 },
242   "lengthunit",
243   {
244     data_type => "varchar",
245     default_value => "days",
246     is_nullable => 1,
247     size => 10,
248   },
249   "hardduedate",
250   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
251   "hardduedatecompare",
252   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
253   "renewalsallowed",
254   { data_type => "smallint", default_value => 0, is_nullable => 0 },
255   "renewalperiod",
256   { data_type => "integer", is_nullable => 1 },
257   "norenewalbefore",
258   { data_type => "integer", is_nullable => 1 },
259   "auto_renew",
260   { data_type => "tinyint", default_value => 0, is_nullable => 1 },
261   "reservesallowed",
262   { data_type => "smallint", default_value => 0, is_nullable => 0 },
263   "holds_per_record",
264   { data_type => "smallint", default_value => 1, is_nullable => 0 },
265   "branchcode",
266   { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
267   "overduefinescap",
268   { data_type => "decimal", is_nullable => 1, size => [28, 6] },
269   "cap_fine_to_replacement_price",
270   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
271   "onshelfholds",
272   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
273   "opacitemholds",
274   { data_type => "char", default_value => "N", is_nullable => 0, size => 1 },
275   "article_requests",
276   {
277     data_type => "enum",
278     default_value => "no",
279     extra => { list => ["no", "yes", "bib_only", "item_only"] },
280     is_nullable => 0,
281   },
282 );
283
284 =head1 PRIMARY KEY
285
286 =over 4
287
288 =item * L</branchcode>
289
290 =item * L</categorycode>
291
292 =item * L</itemtype>
293
294 =back
295
296 =cut
297
298 __PACKAGE__->set_primary_key("branchcode", "categorycode", "itemtype");
299
300
301 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-10-24 13:56:21
302 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eUHth1uaatT2fzY2bihv3g
303
304
305 # You can replace this text with custom code or comments, and it will be preserved on regeneration
306 1;