Bug 25501: Supress warnings on installing translation
[koha.git] / Koha / Schema / Result / Biblioitem.pm
blob49e52e7678a2d589735ffc715c01ee30668b28d2
1 use utf8;
2 package Koha::Schema::Result::Biblioitem;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::Biblioitem
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<biblioitems>
20 =cut
22 __PACKAGE__->table("biblioitems");
24 =head1 ACCESSORS
26 =head2 biblioitemnumber
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
32 =head2 biblionumber
34 data_type: 'integer'
35 default_value: 0
36 is_foreign_key: 1
37 is_nullable: 0
39 =head2 volume
41 data_type: 'longtext'
42 is_nullable: 1
44 =head2 number
46 data_type: 'longtext'
47 is_nullable: 1
49 =head2 itemtype
51 data_type: 'varchar'
52 is_nullable: 1
53 size: 10
55 =head2 isbn
57 data_type: 'longtext'
58 is_nullable: 1
60 =head2 issn
62 data_type: 'longtext'
63 is_nullable: 1
65 =head2 ean
67 data_type: 'longtext'
68 is_nullable: 1
70 =head2 publicationyear
72 data_type: 'mediumtext'
73 is_nullable: 1
75 =head2 publishercode
77 data_type: 'varchar'
78 is_nullable: 1
79 size: 255
81 =head2 volumedate
83 data_type: 'date'
84 datetime_undef_if_invalid: 1
85 is_nullable: 1
87 =head2 volumedesc
89 data_type: 'mediumtext'
90 is_nullable: 1
92 =head2 collectiontitle
94 data_type: 'longtext'
95 is_nullable: 1
97 =head2 collectionissn
99 data_type: 'mediumtext'
100 is_nullable: 1
102 =head2 collectionvolume
104 data_type: 'longtext'
105 is_nullable: 1
107 =head2 editionstatement
109 data_type: 'mediumtext'
110 is_nullable: 1
112 =head2 editionresponsibility
114 data_type: 'mediumtext'
115 is_nullable: 1
117 =head2 timestamp
119 data_type: 'timestamp'
120 datetime_undef_if_invalid: 1
121 default_value: current_timestamp
122 is_nullable: 0
124 =head2 illus
126 data_type: 'varchar'
127 is_nullable: 1
128 size: 255
130 =head2 pages
132 data_type: 'varchar'
133 is_nullable: 1
134 size: 255
136 =head2 notes
138 data_type: 'longtext'
139 is_nullable: 1
141 =head2 size
143 data_type: 'varchar'
144 is_nullable: 1
145 size: 255
147 =head2 place
149 data_type: 'varchar'
150 is_nullable: 1
151 size: 255
153 =head2 lccn
155 data_type: 'varchar'
156 is_nullable: 1
157 size: 25
159 =head2 url
161 data_type: 'mediumtext'
162 is_nullable: 1
164 =head2 cn_source
166 data_type: 'varchar'
167 is_nullable: 1
168 size: 10
170 =head2 cn_class
172 data_type: 'varchar'
173 is_nullable: 1
174 size: 30
176 =head2 cn_item
178 data_type: 'varchar'
179 is_nullable: 1
180 size: 10
182 =head2 cn_suffix
184 data_type: 'varchar'
185 is_nullable: 1
186 size: 10
188 =head2 cn_sort
190 data_type: 'varchar'
191 is_nullable: 1
192 size: 255
194 =head2 agerestriction
196 data_type: 'varchar'
197 is_nullable: 1
198 size: 255
200 =head2 totalissues
202 data_type: 'integer'
203 is_nullable: 1
205 =cut
207 __PACKAGE__->add_columns(
208 "biblioitemnumber",
209 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
210 "biblionumber",
212 data_type => "integer",
213 default_value => 0,
214 is_foreign_key => 1,
215 is_nullable => 0,
217 "volume",
218 { data_type => "longtext", is_nullable => 1 },
219 "number",
220 { data_type => "longtext", is_nullable => 1 },
221 "itemtype",
222 { data_type => "varchar", is_nullable => 1, size => 10 },
223 "isbn",
224 { data_type => "longtext", is_nullable => 1 },
225 "issn",
226 { data_type => "longtext", is_nullable => 1 },
227 "ean",
228 { data_type => "longtext", is_nullable => 1 },
229 "publicationyear",
230 { data_type => "mediumtext", is_nullable => 1 },
231 "publishercode",
232 { data_type => "varchar", is_nullable => 1, size => 255 },
233 "volumedate",
234 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
235 "volumedesc",
236 { data_type => "mediumtext", is_nullable => 1 },
237 "collectiontitle",
238 { data_type => "longtext", is_nullable => 1 },
239 "collectionissn",
240 { data_type => "mediumtext", is_nullable => 1 },
241 "collectionvolume",
242 { data_type => "longtext", is_nullable => 1 },
243 "editionstatement",
244 { data_type => "mediumtext", is_nullable => 1 },
245 "editionresponsibility",
246 { data_type => "mediumtext", is_nullable => 1 },
247 "timestamp",
249 data_type => "timestamp",
250 datetime_undef_if_invalid => 1,
251 default_value => \"current_timestamp",
252 is_nullable => 0,
254 "illus",
255 { data_type => "varchar", is_nullable => 1, size => 255 },
256 "pages",
257 { data_type => "varchar", is_nullable => 1, size => 255 },
258 "notes",
259 { data_type => "longtext", is_nullable => 1 },
260 "size",
261 { data_type => "varchar", is_nullable => 1, size => 255 },
262 "place",
263 { data_type => "varchar", is_nullable => 1, size => 255 },
264 "lccn",
265 { data_type => "varchar", is_nullable => 1, size => 25 },
266 "url",
267 { data_type => "mediumtext", is_nullable => 1 },
268 "cn_source",
269 { data_type => "varchar", is_nullable => 1, size => 10 },
270 "cn_class",
271 { data_type => "varchar", is_nullable => 1, size => 30 },
272 "cn_item",
273 { data_type => "varchar", is_nullable => 1, size => 10 },
274 "cn_suffix",
275 { data_type => "varchar", is_nullable => 1, size => 10 },
276 "cn_sort",
277 { data_type => "varchar", is_nullable => 1, size => 255 },
278 "agerestriction",
279 { data_type => "varchar", is_nullable => 1, size => 255 },
280 "totalissues",
281 { data_type => "integer", is_nullable => 1 },
284 =head1 PRIMARY KEY
286 =over 4
288 =item * L</biblioitemnumber>
290 =back
292 =cut
294 __PACKAGE__->set_primary_key("biblioitemnumber");
296 =head1 RELATIONS
298 =head2 biblionumber
300 Type: belongs_to
302 Related object: L<Koha::Schema::Result::Biblio>
304 =cut
306 __PACKAGE__->belongs_to(
307 "biblionumber",
308 "Koha::Schema::Result::Biblio",
309 { biblionumber => "biblionumber" },
310 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
313 =head2 items
315 Type: has_many
317 Related object: L<Koha::Schema::Result::Item>
319 =cut
321 __PACKAGE__->has_many(
322 "items",
323 "Koha::Schema::Result::Item",
324 { "foreign.biblioitemnumber" => "self.biblioitemnumber" },
325 { cascade_copy => 0, cascade_delete => 0 },
329 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
330 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ogVRTKNaUQSI3BE2xC2lww
332 __PACKAGE__->belongs_to( biblio => "Koha::Schema::Result::Biblio", "biblionumber" );