Bug 7413: update DBIC schema classes
[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 firstremind
69
70   data_type: 'integer'
71   is_nullable: 1
72
73 =head2 chargeperiod
74
75   data_type: 'integer'
76   is_nullable: 1
77
78 =head2 accountsent
79
80   data_type: 'integer'
81   is_nullable: 1
82
83 =head2 chargename
84
85   data_type: 'varchar'
86   is_nullable: 1
87   size: 100
88
89 =head2 maxissueqty
90
91   data_type: 'integer'
92   is_nullable: 1
93
94 =head2 issuelength
95
96   data_type: 'integer'
97   is_nullable: 1
98
99 =head2 lengthunit
100
101   data_type: 'varchar'
102   default_value: 'days'
103   is_nullable: 1
104   size: 10
105
106 =head2 hardduedate
107
108   data_type: 'date'
109   datetime_undef_if_invalid: 1
110   is_nullable: 1
111
112 =head2 hardduedatecompare
113
114   data_type: 'tinyint'
115   default_value: 0
116   is_nullable: 0
117
118 =head2 renewalsallowed
119
120   data_type: 'smallint'
121   default_value: 0
122   is_nullable: 0
123
124 =head2 renewalperiod
125
126   data_type: 'integer'
127   is_nullable: 1
128
129 =head2 norenewalbefore
130
131   data_type: 'integer'
132   is_nullable: 1
133
134 =head2 reservesallowed
135
136   data_type: 'smallint'
137   default_value: 0
138   is_nullable: 0
139
140 =head2 branchcode
141
142   data_type: 'varchar'
143   default_value: (empty string)
144   is_nullable: 0
145   size: 10
146
147 =head2 overduefinescap
148
149   data_type: 'decimal'
150   is_nullable: 1
151   size: [28,6]
152
153 =cut
154
155 __PACKAGE__->add_columns(
156   "categorycode",
157   { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
158   "itemtype",
159   { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
160   "restrictedtype",
161   { data_type => "tinyint", is_nullable => 1 },
162   "rentaldiscount",
163   { data_type => "decimal", is_nullable => 1, size => [28, 6] },
164   "reservecharge",
165   { data_type => "decimal", is_nullable => 1, size => [28, 6] },
166   "fine",
167   { data_type => "decimal", is_nullable => 1, size => [28, 6] },
168   "finedays",
169   { data_type => "integer", is_nullable => 1 },
170   "firstremind",
171   { data_type => "integer", is_nullable => 1 },
172   "chargeperiod",
173   { data_type => "integer", is_nullable => 1 },
174   "accountsent",
175   { data_type => "integer", is_nullable => 1 },
176   "chargename",
177   { data_type => "varchar", is_nullable => 1, size => 100 },
178   "maxissueqty",
179   { data_type => "integer", is_nullable => 1 },
180   "issuelength",
181   { data_type => "integer", is_nullable => 1 },
182   "lengthunit",
183   {
184     data_type => "varchar",
185     default_value => "days",
186     is_nullable => 1,
187     size => 10,
188   },
189   "hardduedate",
190   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
191   "hardduedatecompare",
192   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
193   "renewalsallowed",
194   { data_type => "smallint", default_value => 0, is_nullable => 0 },
195   "renewalperiod",
196   { data_type => "integer", is_nullable => 1 },
197   "norenewalbefore",
198   { data_type => "integer", is_nullable => 1 },
199   "reservesallowed",
200   { data_type => "smallint", default_value => 0, is_nullable => 0 },
201   "branchcode",
202   { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
203   "overduefinescap",
204   { data_type => "decimal", is_nullable => 1, size => [28, 6] },
205 );
206
207 =head1 PRIMARY KEY
208
209 =over 4
210
211 =item * L</branchcode>
212
213 =item * L</categorycode>
214
215 =item * L</itemtype>
216
217 =back
218
219 =cut
220
221 __PACKAGE__->set_primary_key("branchcode", "categorycode", "itemtype");
222
223
224 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2014-04-08 22:40:15
225 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PpvUF1Q7wDFQgZJ6QzueKw
226
227
228 # You can replace this text with custom content, and it will be preserved on regeneration
229 1;