Bug 19889: set exclude_from_local_holds_priority columns as boolean in schema
[srvgit] / Koha / Schema / Result / Deleteditem.pm
1 use utf8;
2 package Koha::Schema::Result::Deleteditem;
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::Deleteditem
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<deleteditems>
19
20 =cut
21
22 __PACKAGE__->table("deleteditems");
23
24 =head1 ACCESSORS
25
26 =head2 itemnumber
27
28   data_type: 'integer'
29   default_value: 0
30   is_nullable: 0
31
32 =head2 biblionumber
33
34   data_type: 'integer'
35   default_value: 0
36   is_nullable: 0
37
38 =head2 biblioitemnumber
39
40   data_type: 'integer'
41   default_value: 0
42   is_nullable: 0
43
44 =head2 barcode
45
46   data_type: 'varchar'
47   is_nullable: 1
48   size: 20
49
50 =head2 dateaccessioned
51
52   data_type: 'date'
53   datetime_undef_if_invalid: 1
54   is_nullable: 1
55
56 =head2 booksellerid
57
58   data_type: 'longtext'
59   is_nullable: 1
60
61 =head2 homebranch
62
63   data_type: 'varchar'
64   is_nullable: 1
65   size: 10
66
67 =head2 price
68
69   data_type: 'decimal'
70   is_nullable: 1
71   size: [8,2]
72
73 =head2 replacementprice
74
75   data_type: 'decimal'
76   is_nullable: 1
77   size: [8,2]
78
79 =head2 replacementpricedate
80
81   data_type: 'date'
82   datetime_undef_if_invalid: 1
83   is_nullable: 1
84
85 =head2 datelastborrowed
86
87   data_type: 'date'
88   datetime_undef_if_invalid: 1
89   is_nullable: 1
90
91 =head2 datelastseen
92
93   data_type: 'date'
94   datetime_undef_if_invalid: 1
95   is_nullable: 1
96
97 =head2 stack
98
99   data_type: 'tinyint'
100   is_nullable: 1
101
102 =head2 notforloan
103
104   data_type: 'tinyint'
105   default_value: 0
106   is_nullable: 0
107
108 =head2 damaged
109
110   data_type: 'tinyint'
111   default_value: 0
112   is_nullable: 0
113
114 =head2 damaged_on
115
116   data_type: 'datetime'
117   datetime_undef_if_invalid: 1
118   is_nullable: 1
119
120 =head2 itemlost
121
122   data_type: 'tinyint'
123   default_value: 0
124   is_nullable: 0
125
126 =head2 itemlost_on
127
128   data_type: 'datetime'
129   datetime_undef_if_invalid: 1
130   is_nullable: 1
131
132 =head2 withdrawn
133
134   data_type: 'tinyint'
135   default_value: 0
136   is_nullable: 0
137
138 =head2 withdrawn_on
139
140   data_type: 'datetime'
141   datetime_undef_if_invalid: 1
142   is_nullable: 1
143
144 =head2 itemcallnumber
145
146   data_type: 'varchar'
147   is_nullable: 1
148   size: 255
149
150 =head2 coded_location_qualifier
151
152   data_type: 'varchar'
153   is_nullable: 1
154   size: 10
155
156 =head2 issues
157
158   data_type: 'smallint'
159   default_value: 0
160   is_nullable: 1
161
162 =head2 renewals
163
164   data_type: 'smallint'
165   is_nullable: 1
166
167 =head2 reserves
168
169   data_type: 'smallint'
170   is_nullable: 1
171
172 =head2 restricted
173
174   data_type: 'tinyint'
175   is_nullable: 1
176
177 =head2 itemnotes
178
179   data_type: 'longtext'
180   is_nullable: 1
181
182 =head2 itemnotes_nonpublic
183
184   data_type: 'longtext'
185   is_nullable: 1
186
187 =head2 holdingbranch
188
189   data_type: 'varchar'
190   is_nullable: 1
191   size: 10
192
193 =head2 paidfor
194
195   data_type: 'longtext'
196   is_nullable: 1
197
198 =head2 timestamp
199
200   data_type: 'timestamp'
201   datetime_undef_if_invalid: 1
202   default_value: current_timestamp
203   is_nullable: 0
204
205 =head2 location
206
207   data_type: 'varchar'
208   is_nullable: 1
209   size: 80
210
211 =head2 permanent_location
212
213   data_type: 'varchar'
214   is_nullable: 1
215   size: 80
216
217 =head2 onloan
218
219   data_type: 'date'
220   datetime_undef_if_invalid: 1
221   is_nullable: 1
222
223 =head2 cn_source
224
225   data_type: 'varchar'
226   is_nullable: 1
227   size: 10
228
229 =head2 cn_sort
230
231   data_type: 'varchar'
232   is_nullable: 1
233   size: 255
234
235 =head2 ccode
236
237   data_type: 'varchar'
238   is_nullable: 1
239   size: 80
240
241 =head2 materials
242
243   data_type: 'mediumtext'
244   is_nullable: 1
245
246 =head2 uri
247
248   data_type: 'mediumtext'
249   is_nullable: 1
250
251 =head2 itype
252
253   data_type: 'varchar'
254   is_nullable: 1
255   size: 10
256
257 =head2 more_subfields_xml
258
259   data_type: 'longtext'
260   is_nullable: 1
261
262 =head2 enumchron
263
264   data_type: 'mediumtext'
265   is_nullable: 1
266
267 =head2 copynumber
268
269   data_type: 'varchar'
270   is_nullable: 1
271   size: 32
272
273 =head2 stocknumber
274
275   data_type: 'varchar'
276   is_nullable: 1
277   size: 32
278
279 =head2 new_status
280
281   data_type: 'varchar'
282   is_nullable: 1
283   size: 32
284
285 =head2 exclude_from_local_holds_priority
286
287   data_type: 'tinyint'
288   is_nullable: 1
289
290 =cut
291
292 __PACKAGE__->add_columns(
293   "itemnumber",
294   { data_type => "integer", default_value => 0, is_nullable => 0 },
295   "biblionumber",
296   { data_type => "integer", default_value => 0, is_nullable => 0 },
297   "biblioitemnumber",
298   { data_type => "integer", default_value => 0, is_nullable => 0 },
299   "barcode",
300   { data_type => "varchar", is_nullable => 1, size => 20 },
301   "dateaccessioned",
302   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
303   "booksellerid",
304   { data_type => "longtext", is_nullable => 1 },
305   "homebranch",
306   { data_type => "varchar", is_nullable => 1, size => 10 },
307   "price",
308   { data_type => "decimal", is_nullable => 1, size => [8, 2] },
309   "replacementprice",
310   { data_type => "decimal", is_nullable => 1, size => [8, 2] },
311   "replacementpricedate",
312   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
313   "datelastborrowed",
314   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
315   "datelastseen",
316   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
317   "stack",
318   { data_type => "tinyint", is_nullable => 1 },
319   "notforloan",
320   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
321   "damaged",
322   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
323   "damaged_on",
324   {
325     data_type => "datetime",
326     datetime_undef_if_invalid => 1,
327     is_nullable => 1,
328   },
329   "itemlost",
330   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
331   "itemlost_on",
332   {
333     data_type => "datetime",
334     datetime_undef_if_invalid => 1,
335     is_nullable => 1,
336   },
337   "withdrawn",
338   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
339   "withdrawn_on",
340   {
341     data_type => "datetime",
342     datetime_undef_if_invalid => 1,
343     is_nullable => 1,
344   },
345   "itemcallnumber",
346   { data_type => "varchar", is_nullable => 1, size => 255 },
347   "coded_location_qualifier",
348   { data_type => "varchar", is_nullable => 1, size => 10 },
349   "issues",
350   { data_type => "smallint", default_value => 0, is_nullable => 1 },
351   "renewals",
352   { data_type => "smallint", is_nullable => 1 },
353   "reserves",
354   { data_type => "smallint", is_nullable => 1 },
355   "restricted",
356   { data_type => "tinyint", is_nullable => 1 },
357   "itemnotes",
358   { data_type => "longtext", is_nullable => 1 },
359   "itemnotes_nonpublic",
360   { data_type => "longtext", is_nullable => 1 },
361   "holdingbranch",
362   { data_type => "varchar", is_nullable => 1, size => 10 },
363   "paidfor",
364   { data_type => "longtext", is_nullable => 1 },
365   "timestamp",
366   {
367     data_type => "timestamp",
368     datetime_undef_if_invalid => 1,
369     default_value => \"current_timestamp",
370     is_nullable => 0,
371   },
372   "location",
373   { data_type => "varchar", is_nullable => 1, size => 80 },
374   "permanent_location",
375   { data_type => "varchar", is_nullable => 1, size => 80 },
376   "onloan",
377   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
378   "cn_source",
379   { data_type => "varchar", is_nullable => 1, size => 10 },
380   "cn_sort",
381   { data_type => "varchar", is_nullable => 1, size => 255 },
382   "ccode",
383   { data_type => "varchar", is_nullable => 1, size => 80 },
384   "materials",
385   { data_type => "mediumtext", is_nullable => 1 },
386   "uri",
387   { data_type => "mediumtext", is_nullable => 1 },
388   "itype",
389   { data_type => "varchar", is_nullable => 1, size => 10 },
390   "more_subfields_xml",
391   { data_type => "longtext", is_nullable => 1 },
392   "enumchron",
393   { data_type => "mediumtext", is_nullable => 1 },
394   "copynumber",
395   { data_type => "varchar", is_nullable => 1, size => 32 },
396   "stocknumber",
397   { data_type => "varchar", is_nullable => 1, size => 32 },
398   "new_status",
399   { data_type => "varchar", is_nullable => 1, size => 32 },
400   "exclude_from_local_holds_priority",
401   { data_type => "tinyint", is_nullable => 1 },
402 );
403
404 =head1 PRIMARY KEY
405
406 =over 4
407
408 =item * L</itemnumber>
409
410 =back
411
412 =cut
413
414 __PACKAGE__->set_primary_key("itemnumber");
415
416
417 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-06-05 20:21:47
418 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4xydPpkFXE+oOR46jY5L8Q
419
420 __PACKAGE__->add_columns(
421     '+exclude_from_local_holds_priority' => { is_boolean => 1 },
422 );
423
424 sub koha_objects_class {
425     'Koha::Old::Items';
426 }
427 sub koha_object_class {
428     'Koha::Old::Item';
429 }
430
431 1;