Bug 12478: update the schema
[koha.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 =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: 'mediumtext'
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 itemlost
115
116   data_type: 'tinyint'
117   default_value: 0
118   is_nullable: 0
119
120 =head2 itemlost_on
121
122   data_type: 'datetime'
123   datetime_undef_if_invalid: 1
124   is_nullable: 1
125
126 =head2 withdrawn
127
128   data_type: 'tinyint'
129   default_value: 0
130   is_nullable: 0
131
132 =head2 withdrawn_on
133
134   data_type: 'datetime'
135   datetime_undef_if_invalid: 1
136   is_nullable: 1
137
138 =head2 itemcallnumber
139
140   data_type: 'varchar'
141   is_nullable: 1
142   size: 255
143
144 =head2 coded_location_qualifier
145
146   data_type: 'varchar'
147   is_nullable: 1
148   size: 10
149
150 =head2 issues
151
152   data_type: 'smallint'
153   is_nullable: 1
154
155 =head2 renewals
156
157   data_type: 'smallint'
158   is_nullable: 1
159
160 =head2 reserves
161
162   data_type: 'smallint'
163   is_nullable: 1
164
165 =head2 restricted
166
167   data_type: 'tinyint'
168   is_nullable: 1
169
170 =head2 itemnotes
171
172   data_type: 'mediumtext'
173   is_nullable: 1
174
175 =head2 itemnotes_nonpublic
176
177   data_type: 'mediumtext'
178   is_nullable: 1
179
180 =head2 holdingbranch
181
182   data_type: 'varchar'
183   is_nullable: 1
184   size: 10
185
186 =head2 paidfor
187
188   data_type: 'mediumtext'
189   is_nullable: 1
190
191 =head2 timestamp
192
193   data_type: 'timestamp'
194   datetime_undef_if_invalid: 1
195   default_value: current_timestamp
196   is_nullable: 0
197
198 =head2 location
199
200   data_type: 'varchar'
201   is_nullable: 1
202   size: 80
203
204 =head2 permanent_location
205
206   data_type: 'varchar'
207   is_nullable: 1
208   size: 80
209
210 =head2 onloan
211
212   data_type: 'date'
213   datetime_undef_if_invalid: 1
214   is_nullable: 1
215
216 =head2 cn_source
217
218   data_type: 'varchar'
219   is_nullable: 1
220   size: 10
221
222 =head2 cn_sort
223
224   data_type: 'varchar'
225   is_nullable: 1
226   size: 255
227
228 =head2 ccode
229
230   data_type: 'varchar'
231   is_nullable: 1
232   size: 10
233
234 =head2 materials
235
236   data_type: 'text'
237   is_nullable: 1
238
239 =head2 uri
240
241   data_type: 'varchar'
242   is_nullable: 1
243   size: 255
244
245 =head2 itype
246
247   data_type: 'varchar'
248   is_nullable: 1
249   size: 10
250
251 =head2 more_subfields_xml
252
253   data_type: 'longtext'
254   is_nullable: 1
255
256 =head2 enumchron
257
258   data_type: 'text'
259   is_nullable: 1
260
261 =head2 copynumber
262
263   data_type: 'varchar'
264   is_nullable: 1
265   size: 32
266
267 =head2 stocknumber
268
269   data_type: 'varchar'
270   is_nullable: 1
271   size: 32
272
273 =head2 new_status
274
275   data_type: 'varchar'
276   is_nullable: 1
277   size: 32
278
279 =cut
280
281 __PACKAGE__->add_columns(
282   "itemnumber",
283   { data_type => "integer", default_value => 0, is_nullable => 0 },
284   "biblionumber",
285   { data_type => "integer", default_value => 0, is_nullable => 0 },
286   "biblioitemnumber",
287   { data_type => "integer", default_value => 0, is_nullable => 0 },
288   "barcode",
289   { data_type => "varchar", is_nullable => 1, size => 20 },
290   "dateaccessioned",
291   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
292   "booksellerid",
293   { data_type => "mediumtext", is_nullable => 1 },
294   "homebranch",
295   { data_type => "varchar", is_nullable => 1, size => 10 },
296   "price",
297   { data_type => "decimal", is_nullable => 1, size => [8, 2] },
298   "replacementprice",
299   { data_type => "decimal", is_nullable => 1, size => [8, 2] },
300   "replacementpricedate",
301   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
302   "datelastborrowed",
303   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
304   "datelastseen",
305   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
306   "stack",
307   { data_type => "tinyint", is_nullable => 1 },
308   "notforloan",
309   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
310   "damaged",
311   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
312   "itemlost",
313   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
314   "itemlost_on",
315   {
316     data_type => "datetime",
317     datetime_undef_if_invalid => 1,
318     is_nullable => 1,
319   },
320   "withdrawn",
321   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
322   "withdrawn_on",
323   {
324     data_type => "datetime",
325     datetime_undef_if_invalid => 1,
326     is_nullable => 1,
327   },
328   "itemcallnumber",
329   { data_type => "varchar", is_nullable => 1, size => 255 },
330   "coded_location_qualifier",
331   { data_type => "varchar", is_nullable => 1, size => 10 },
332   "issues",
333   { data_type => "smallint", is_nullable => 1 },
334   "renewals",
335   { data_type => "smallint", is_nullable => 1 },
336   "reserves",
337   { data_type => "smallint", is_nullable => 1 },
338   "restricted",
339   { data_type => "tinyint", is_nullable => 1 },
340   "itemnotes",
341   { data_type => "mediumtext", is_nullable => 1 },
342   "itemnotes_nonpublic",
343   { data_type => "mediumtext", is_nullable => 1 },
344   "holdingbranch",
345   { data_type => "varchar", is_nullable => 1, size => 10 },
346   "paidfor",
347   { data_type => "mediumtext", is_nullable => 1 },
348   "timestamp",
349   {
350     data_type => "timestamp",
351     datetime_undef_if_invalid => 1,
352     default_value => \"current_timestamp",
353     is_nullable => 0,
354   },
355   "location",
356   { data_type => "varchar", is_nullable => 1, size => 80 },
357   "permanent_location",
358   { data_type => "varchar", is_nullable => 1, size => 80 },
359   "onloan",
360   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
361   "cn_source",
362   { data_type => "varchar", is_nullable => 1, size => 10 },
363   "cn_sort",
364   { data_type => "varchar", is_nullable => 1, size => 255 },
365   "ccode",
366   { data_type => "varchar", is_nullable => 1, size => 10 },
367   "materials",
368   { data_type => "text", is_nullable => 1 },
369   "uri",
370   { data_type => "varchar", is_nullable => 1, size => 255 },
371   "itype",
372   { data_type => "varchar", is_nullable => 1, size => 10 },
373   "more_subfields_xml",
374   { data_type => "longtext", is_nullable => 1 },
375   "enumchron",
376   { data_type => "text", is_nullable => 1 },
377   "copynumber",
378   { data_type => "varchar", is_nullable => 1, size => 32 },
379   "stocknumber",
380   { data_type => "varchar", is_nullable => 1, size => 32 },
381   "new_status",
382   { data_type => "varchar", is_nullable => 1, size => 32 },
383 );
384
385 =head1 PRIMARY KEY
386
387 =over 4
388
389 =item * L</itemnumber>
390
391 =back
392
393 =cut
394
395 __PACKAGE__->set_primary_key("itemnumber");
396
397
398 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-03-31 17:10:17
399 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:npNexLgE7AxLp6iVy1FxgQ
400
401
402 # You can replace this text with custom content, and it will be preserved on regeneration
403 1;