Increment version for 3.22.6 release
[koha.git] / Koha / Schema / Result / Issuingrule.pm
blobff1617b9c5a6d9efc8ceef936d38f496d280acc0
1 use utf8;
2 package Koha::Schema::Result::Issuingrule;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::Issuingrule
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<issuingrules>
20 =cut
22 __PACKAGE__->table("issuingrules");
24 =head1 ACCESSORS
26 =head2 categorycode
28 data_type: 'varchar'
29 default_value: (empty string)
30 is_nullable: 0
31 size: 10
33 =head2 itemtype
35 data_type: 'varchar'
36 default_value: (empty string)
37 is_nullable: 0
38 size: 10
40 =head2 restrictedtype
42 data_type: 'tinyint'
43 is_nullable: 1
45 =head2 rentaldiscount
47 data_type: 'decimal'
48 is_nullable: 1
49 size: [28,6]
51 =head2 reservecharge
53 data_type: 'decimal'
54 is_nullable: 1
55 size: [28,6]
57 =head2 fine
59 data_type: 'decimal'
60 is_nullable: 1
61 size: [28,6]
63 =head2 finedays
65 data_type: 'integer'
66 is_nullable: 1
68 =head2 maxsuspensiondays
70 data_type: 'integer'
71 is_nullable: 1
73 =head2 firstremind
75 data_type: 'integer'
76 is_nullable: 1
78 =head2 chargeperiod
80 data_type: 'integer'
81 is_nullable: 1
83 =head2 chargeperiod_charge_at
85 data_type: 'tinyint'
86 default_value: 0
87 is_nullable: 0
89 =head2 accountsent
91 data_type: 'integer'
92 is_nullable: 1
94 =head2 chargename
96 data_type: 'varchar'
97 is_nullable: 1
98 size: 100
100 =head2 maxissueqty
102 data_type: 'integer'
103 is_nullable: 1
105 =head2 maxonsiteissueqty
107 data_type: 'integer'
108 is_nullable: 1
110 =head2 issuelength
112 data_type: 'integer'
113 is_nullable: 1
115 =head2 lengthunit
117 data_type: 'varchar'
118 default_value: 'days'
119 is_nullable: 1
120 size: 10
122 =head2 hardduedate
124 data_type: 'date'
125 datetime_undef_if_invalid: 1
126 is_nullable: 1
128 =head2 hardduedatecompare
130 data_type: 'tinyint'
131 default_value: 0
132 is_nullable: 0
134 =head2 renewalsallowed
136 data_type: 'smallint'
137 default_value: 0
138 is_nullable: 0
140 =head2 renewalperiod
142 data_type: 'integer'
143 is_nullable: 1
145 =head2 norenewalbefore
147 data_type: 'integer'
148 is_nullable: 1
150 =head2 auto_renew
152 data_type: 'tinyint'
153 default_value: 0
154 is_nullable: 1
156 =head2 reservesallowed
158 data_type: 'smallint'
159 default_value: 0
160 is_nullable: 0
162 =head2 branchcode
164 data_type: 'varchar'
165 default_value: (empty string)
166 is_nullable: 0
167 size: 10
169 =head2 overduefinescap
171 data_type: 'decimal'
172 is_nullable: 1
173 size: [28,6]
175 =head2 onshelfholds
177 data_type: 'tinyint'
178 default_value: 0
179 is_nullable: 0
181 =head2 opacitemholds
183 data_type: 'char'
184 default_value: 'N'
185 is_nullable: 0
186 size: 1
188 =cut
190 __PACKAGE__->add_columns(
191 "categorycode",
192 { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
193 "itemtype",
194 { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
195 "restrictedtype",
196 { data_type => "tinyint", is_nullable => 1 },
197 "rentaldiscount",
198 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
199 "reservecharge",
200 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
201 "fine",
202 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
203 "finedays",
204 { data_type => "integer", is_nullable => 1 },
205 "maxsuspensiondays",
206 { data_type => "integer", is_nullable => 1 },
207 "firstremind",
208 { data_type => "integer", is_nullable => 1 },
209 "chargeperiod",
210 { data_type => "integer", is_nullable => 1 },
211 "chargeperiod_charge_at",
212 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
213 "accountsent",
214 { data_type => "integer", is_nullable => 1 },
215 "chargename",
216 { data_type => "varchar", is_nullable => 1, size => 100 },
217 "maxissueqty",
218 { data_type => "integer", is_nullable => 1 },
219 "maxonsiteissueqty",
220 { data_type => "integer", is_nullable => 1 },
221 "issuelength",
222 { data_type => "integer", is_nullable => 1 },
223 "lengthunit",
225 data_type => "varchar",
226 default_value => "days",
227 is_nullable => 1,
228 size => 10,
230 "hardduedate",
231 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
232 "hardduedatecompare",
233 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
234 "renewalsallowed",
235 { data_type => "smallint", default_value => 0, is_nullable => 0 },
236 "renewalperiod",
237 { data_type => "integer", is_nullable => 1 },
238 "norenewalbefore",
239 { data_type => "integer", is_nullable => 1 },
240 "auto_renew",
241 { data_type => "tinyint", default_value => 0, is_nullable => 1 },
242 "reservesallowed",
243 { data_type => "smallint", default_value => 0, is_nullable => 0 },
244 "branchcode",
245 { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
246 "overduefinescap",
247 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
248 "onshelfholds",
249 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
250 "opacitemholds",
251 { data_type => "char", default_value => "N", is_nullable => 0, size => 1 },
254 =head1 PRIMARY KEY
256 =over 4
258 =item * L</branchcode>
260 =item * L</categorycode>
262 =item * L</itemtype>
264 =back
266 =cut
268 __PACKAGE__->set_primary_key("branchcode", "categorycode", "itemtype");
271 # Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-10-22 14:50:45
272 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jTYQaXLtBrSIGEqpFlgIfg
275 # You can replace this text with custom content, and it will be preserved on regeneration