Bug 29234: Further clean Z3950 Tests
[koha-ffzg.git] / 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 primary key and unique identifier added by Koha
33
34 =head2 biblionumber
35
36   data_type: 'integer'
37   default_value: 0
38   is_nullable: 0
39
40 foreign key from biblio table used to link this item to the right bib record
41
42 =head2 biblioitemnumber
43
44   data_type: 'integer'
45   default_value: 0
46   is_nullable: 0
47
48 foreign key from the biblioitems table to link to item to additional information
49
50 =head2 barcode
51
52   data_type: 'varchar'
53   is_nullable: 1
54   size: 20
55
56 item barcode (MARC21 952$p)
57
58 =head2 dateaccessioned
59
60   data_type: 'date'
61   datetime_undef_if_invalid: 1
62   is_nullable: 1
63
64 date the item was acquired or added to Koha (MARC21 952$d)
65
66 =head2 booksellerid
67
68   data_type: 'longtext'
69   is_nullable: 1
70
71 where the item was purchased (MARC21 952$e)
72
73 =head2 homebranch
74
75   data_type: 'varchar'
76   is_nullable: 1
77   size: 10
78
79 foreign key from the branches table for the library that owns this item (MARC21 952$a)
80
81 =head2 price
82
83   data_type: 'decimal'
84   is_nullable: 1
85   size: [8,2]
86
87 purchase price (MARC21 952$g)
88
89 =head2 replacementprice
90
91   data_type: 'decimal'
92   is_nullable: 1
93   size: [8,2]
94
95 cost the library charges to replace the item if it has been marked lost (MARC21 952$v)
96
97 =head2 replacementpricedate
98
99   data_type: 'date'
100   datetime_undef_if_invalid: 1
101   is_nullable: 1
102
103 the date the price is effective from (MARC21 952$w)
104
105 =head2 datelastborrowed
106
107   data_type: 'date'
108   datetime_undef_if_invalid: 1
109   is_nullable: 1
110
111 the date the item was last checked out
112
113 =head2 datelastseen
114
115   data_type: 'date'
116   datetime_undef_if_invalid: 1
117   is_nullable: 1
118
119 the date the item was last see (usually the last time the barcode was scanned or inventory was done)
120
121 =head2 stack
122
123   data_type: 'tinyint'
124   is_nullable: 1
125
126 =head2 notforloan
127
128   data_type: 'tinyint'
129   default_value: 0
130   is_nullable: 0
131
132 authorized value defining why this item is not for loan (MARC21 952$7)
133
134 =head2 damaged
135
136   data_type: 'tinyint'
137   default_value: 0
138   is_nullable: 0
139
140 authorized value defining this item as damaged (MARC21 952$4)
141
142 =head2 damaged_on
143
144   data_type: 'datetime'
145   datetime_undef_if_invalid: 1
146   is_nullable: 1
147
148 the date and time an item was last marked as damaged, NULL if not damaged
149
150 =head2 itemlost
151
152   data_type: 'tinyint'
153   default_value: 0
154   is_nullable: 0
155
156 authorized value defining this item as lost (MARC21 952$1)
157
158 =head2 itemlost_on
159
160   data_type: 'datetime'
161   datetime_undef_if_invalid: 1
162   is_nullable: 1
163
164 the date and time an item was last marked as lost, NULL if not lost
165
166 =head2 withdrawn
167
168   data_type: 'tinyint'
169   default_value: 0
170   is_nullable: 0
171
172 authorized value defining this item as withdrawn (MARC21 952$0)
173
174 =head2 withdrawn_on
175
176   data_type: 'datetime'
177   datetime_undef_if_invalid: 1
178   is_nullable: 1
179
180 the date and time an item was last marked as withdrawn, NULL if not withdrawn
181
182 =head2 itemcallnumber
183
184   data_type: 'varchar'
185   is_nullable: 1
186   size: 255
187
188 call number for this item (MARC21 952$o)
189
190 =head2 coded_location_qualifier
191
192   data_type: 'varchar'
193   is_nullable: 1
194   size: 10
195
196 coded location qualifier(MARC21 952$f)
197
198 =head2 issues
199
200   data_type: 'smallint'
201   default_value: 0
202   is_nullable: 1
203
204 number of times this item has been checked out
205
206 =head2 renewals
207
208   data_type: 'smallint'
209   is_nullable: 1
210
211 number of times this item has been renewed
212
213 =head2 reserves
214
215   data_type: 'smallint'
216   is_nullable: 1
217
218 number of times this item has been placed on hold/reserved
219
220 =head2 restricted
221
222   data_type: 'tinyint'
223   is_nullable: 1
224
225 authorized value defining use restrictions for this item (MARC21 952$5)
226
227 =head2 itemnotes
228
229   data_type: 'longtext'
230   is_nullable: 1
231
232 public notes on this item (MARC21 952$z)
233
234 =head2 itemnotes_nonpublic
235
236   data_type: 'longtext'
237   is_nullable: 1
238
239 non-public notes on this item (MARC21 952$x)
240
241 =head2 holdingbranch
242
243   data_type: 'varchar'
244   is_nullable: 1
245   size: 10
246
247 foreign key from the branches table for the library that is currently in possession item (MARC21 952$b)
248
249 =head2 timestamp
250
251   data_type: 'timestamp'
252   datetime_undef_if_invalid: 1
253   default_value: current_timestamp
254   is_nullable: 0
255
256 date and time this item was last altered
257
258 =head2 deleted_on
259
260   data_type: 'datetime'
261   datetime_undef_if_invalid: 1
262   is_nullable: 1
263
264 date/time of deletion
265
266 =head2 location
267
268   data_type: 'varchar'
269   is_nullable: 1
270   size: 80
271
272 authorized value for the shelving location for this item (MARC21 952$c)
273
274 =head2 permanent_location
275
276   data_type: 'varchar'
277   is_nullable: 1
278   size: 80
279
280 linked to the CART and PROC temporary locations feature, stores the permanent shelving location
281
282 =head2 onloan
283
284   data_type: 'date'
285   datetime_undef_if_invalid: 1
286   is_nullable: 1
287
288 defines if item is checked out (NULL for not checked out, and due date for checked out)
289
290 =head2 cn_source
291
292   data_type: 'varchar'
293   is_nullable: 1
294   size: 10
295
296 classification source used on this item (MARC21 952$2)
297
298 =head2 cn_sort
299
300   data_type: 'varchar'
301   is_nullable: 1
302   size: 255
303
304 normalized form of the call number (MARC21 952$o) used for sorting
305
306 =head2 ccode
307
308   data_type: 'varchar'
309   is_nullable: 1
310   size: 80
311
312 authorized value for the collection code associated with this item (MARC21 952$8)
313
314 =head2 materials
315
316   data_type: 'mediumtext'
317   is_nullable: 1
318
319 materials specified (MARC21 952$3)
320
321 =head2 uri
322
323   data_type: 'mediumtext'
324   is_nullable: 1
325
326 URL for the item (MARC21 952$u)
327
328 =head2 itype
329
330   data_type: 'varchar'
331   is_nullable: 1
332   size: 10
333
334 foreign key from the itemtypes table defining the type for this item (MARC21 952$y)
335
336 =head2 more_subfields_xml
337
338   data_type: 'longtext'
339   is_nullable: 1
340
341 additional 952 subfields in XML format
342
343 =head2 enumchron
344
345   data_type: 'mediumtext'
346   is_nullable: 1
347
348 serial enumeration/chronology for the item (MARC21 952$h)
349
350 =head2 copynumber
351
352   data_type: 'varchar'
353   is_nullable: 1
354   size: 32
355
356 copy number (MARC21 952$t)
357
358 =head2 stocknumber
359
360   data_type: 'varchar'
361   is_nullable: 1
362   size: 32
363
364 inventory number (MARC21 952$i)
365
366 =head2 new_status
367
368   data_type: 'varchar'
369   is_nullable: 1
370   size: 32
371
372 'new' value, you can put whatever free-text information. This field is intented to be managed by the automatic_item_modification_by_age cronjob.
373
374 =head2 exclude_from_local_holds_priority
375
376   data_type: 'tinyint'
377   is_nullable: 1
378
379 Exclude this item from local holds priority
380
381 =cut
382
383 __PACKAGE__->add_columns(
384   "itemnumber",
385   { data_type => "integer", default_value => 0, is_nullable => 0 },
386   "biblionumber",
387   { data_type => "integer", default_value => 0, is_nullable => 0 },
388   "biblioitemnumber",
389   { data_type => "integer", default_value => 0, is_nullable => 0 },
390   "barcode",
391   { data_type => "varchar", is_nullable => 1, size => 20 },
392   "dateaccessioned",
393   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
394   "booksellerid",
395   { data_type => "longtext", is_nullable => 1 },
396   "homebranch",
397   { data_type => "varchar", is_nullable => 1, size => 10 },
398   "price",
399   { data_type => "decimal", is_nullable => 1, size => [8, 2] },
400   "replacementprice",
401   { data_type => "decimal", is_nullable => 1, size => [8, 2] },
402   "replacementpricedate",
403   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
404   "datelastborrowed",
405   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
406   "datelastseen",
407   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
408   "stack",
409   { data_type => "tinyint", is_nullable => 1 },
410   "notforloan",
411   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
412   "damaged",
413   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
414   "damaged_on",
415   {
416     data_type => "datetime",
417     datetime_undef_if_invalid => 1,
418     is_nullable => 1,
419   },
420   "itemlost",
421   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
422   "itemlost_on",
423   {
424     data_type => "datetime",
425     datetime_undef_if_invalid => 1,
426     is_nullable => 1,
427   },
428   "withdrawn",
429   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
430   "withdrawn_on",
431   {
432     data_type => "datetime",
433     datetime_undef_if_invalid => 1,
434     is_nullable => 1,
435   },
436   "itemcallnumber",
437   { data_type => "varchar", is_nullable => 1, size => 255 },
438   "coded_location_qualifier",
439   { data_type => "varchar", is_nullable => 1, size => 10 },
440   "issues",
441   { data_type => "smallint", default_value => 0, is_nullable => 1 },
442   "renewals",
443   { data_type => "smallint", is_nullable => 1 },
444   "reserves",
445   { data_type => "smallint", is_nullable => 1 },
446   "restricted",
447   { data_type => "tinyint", is_nullable => 1 },
448   "itemnotes",
449   { data_type => "longtext", is_nullable => 1 },
450   "itemnotes_nonpublic",
451   { data_type => "longtext", is_nullable => 1 },
452   "holdingbranch",
453   { data_type => "varchar", is_nullable => 1, size => 10 },
454   "timestamp",
455   {
456     data_type => "timestamp",
457     datetime_undef_if_invalid => 1,
458     default_value => \"current_timestamp",
459     is_nullable => 0,
460   },
461   "deleted_on",
462   {
463     data_type => "datetime",
464     datetime_undef_if_invalid => 1,
465     is_nullable => 1,
466   },
467   "location",
468   { data_type => "varchar", is_nullable => 1, size => 80 },
469   "permanent_location",
470   { data_type => "varchar", is_nullable => 1, size => 80 },
471   "onloan",
472   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
473   "cn_source",
474   { data_type => "varchar", is_nullable => 1, size => 10 },
475   "cn_sort",
476   { data_type => "varchar", is_nullable => 1, size => 255 },
477   "ccode",
478   { data_type => "varchar", is_nullable => 1, size => 80 },
479   "materials",
480   { data_type => "mediumtext", is_nullable => 1 },
481   "uri",
482   { data_type => "mediumtext", is_nullable => 1 },
483   "itype",
484   { data_type => "varchar", is_nullable => 1, size => 10 },
485   "more_subfields_xml",
486   { data_type => "longtext", is_nullable => 1 },
487   "enumchron",
488   { data_type => "mediumtext", is_nullable => 1 },
489   "copynumber",
490   { data_type => "varchar", is_nullable => 1, size => 32 },
491   "stocknumber",
492   { data_type => "varchar", is_nullable => 1, size => 32 },
493   "new_status",
494   { data_type => "varchar", is_nullable => 1, size => 32 },
495   "exclude_from_local_holds_priority",
496   { data_type => "tinyint", is_nullable => 1 },
497 );
498
499 =head1 PRIMARY KEY
500
501 =over 4
502
503 =item * L</itemnumber>
504
505 =back
506
507 =cut
508
509 __PACKAGE__->set_primary_key("itemnumber");
510
511
512 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-08-01 17:33:12
513 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RMuehNvH+0WSXxEurJks/g
514
515 __PACKAGE__->add_columns(
516     '+exclude_from_local_holds_priority' => { is_boolean => 1 },
517 );
518
519 sub koha_objects_class {
520     'Koha::Old::Items';
521 }
522 sub koha_object_class {
523     'Koha::Old::Item';
524 }
525
526 1;