Bug 16573 - Update Schema
[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 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 branchcode
163
164   data_type: 'varchar'
165   default_value: (empty string)
166   is_nullable: 0
167   size: 10
168
169 =head2 overduefinescap
170
171   data_type: 'decimal'
172   is_nullable: 1
173   size: [28,6]
174
175 =head2 cap_fine_to_replacement_price
176
177   data_type: 'tinyint'
178   default_value: 0
179   is_nullable: 0
180
181 =head2 onshelfholds
182
183   data_type: 'tinyint'
184   default_value: 0
185   is_nullable: 0
186
187 =head2 opacitemholds
188
189   data_type: 'char'
190   default_value: 'N'
191   is_nullable: 0
192   size: 1
193
194 =cut
195
196 __PACKAGE__->add_columns(
197   "categorycode",
198   { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
199   "itemtype",
200   { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
201   "restrictedtype",
202   { data_type => "tinyint", is_nullable => 1 },
203   "rentaldiscount",
204   { data_type => "decimal", is_nullable => 1, size => [28, 6] },
205   "reservecharge",
206   { data_type => "decimal", is_nullable => 1, size => [28, 6] },
207   "fine",
208   { data_type => "decimal", is_nullable => 1, size => [28, 6] },
209   "finedays",
210   { data_type => "integer", is_nullable => 1 },
211   "maxsuspensiondays",
212   { data_type => "integer", is_nullable => 1 },
213   "firstremind",
214   { data_type => "integer", is_nullable => 1 },
215   "chargeperiod",
216   { data_type => "integer", is_nullable => 1 },
217   "chargeperiod_charge_at",
218   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
219   "accountsent",
220   { data_type => "integer", is_nullable => 1 },
221   "chargename",
222   { data_type => "varchar", is_nullable => 1, size => 100 },
223   "maxissueqty",
224   { data_type => "integer", is_nullable => 1 },
225   "maxonsiteissueqty",
226   { data_type => "integer", is_nullable => 1 },
227   "issuelength",
228   { data_type => "integer", is_nullable => 1 },
229   "lengthunit",
230   {
231     data_type => "varchar",
232     default_value => "days",
233     is_nullable => 1,
234     size => 10,
235   },
236   "hardduedate",
237   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
238   "hardduedatecompare",
239   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
240   "renewalsallowed",
241   { data_type => "smallint", default_value => 0, is_nullable => 0 },
242   "renewalperiod",
243   { data_type => "integer", is_nullable => 1 },
244   "norenewalbefore",
245   { data_type => "integer", is_nullable => 1 },
246   "auto_renew",
247   { data_type => "tinyint", default_value => 0, is_nullable => 1 },
248   "reservesallowed",
249   { data_type => "smallint", default_value => 0, is_nullable => 0 },
250   "branchcode",
251   { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
252   "overduefinescap",
253   { data_type => "decimal", is_nullable => 1, size => [28, 6] },
254   "cap_fine_to_replacement_price",
255   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
256   "onshelfholds",
257   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
258   "opacitemholds",
259   { data_type => "char", default_value => "N", is_nullable => 0, size => 1 },
260 );
261
262 =head1 PRIMARY KEY
263
264 =over 4
265
266 =item * L</branchcode>
267
268 =item * L</categorycode>
269
270 =item * L</itemtype>
271
272 =back
273
274 =cut
275
276 __PACKAGE__->set_primary_key("branchcode", "categorycode", "itemtype");
277
278
279 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-09-06 09:35:36
280 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HkvNR2YHTkqN2PnQk5XGAA
281
282
283 # You can replace this text with custom code or comments, and it will be preserved on regeneration
284 1;