2 package Koha::Schema::Result::Biblioitem;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Biblioitem
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<biblioitems>
22 __PACKAGE__->table("biblioitems");
26 =head2 biblioitemnumber
70 =head2 publicationyear
72 data_type: 'mediumtext'
84 datetime_undef_if_invalid: 1
89 data_type: 'mediumtext'
92 =head2 collectiontitle
99 data_type: 'mediumtext'
102 =head2 collectionvolume
104 data_type: 'longtext'
107 =head2 editionstatement
109 data_type: 'mediumtext'
112 =head2 editionresponsibility
114 data_type: 'mediumtext'
119 data_type: 'timestamp'
120 datetime_undef_if_invalid: 1
121 default_value: current_timestamp
138 data_type: 'longtext'
161 data_type: 'mediumtext'
194 =head2 agerestriction
207 __PACKAGE__->add_columns(
209 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
212 data_type => "integer",
218 { data_type => "longtext", is_nullable => 1 },
220 { data_type => "longtext", is_nullable => 1 },
222 { data_type => "varchar", is_nullable => 1, size => 10 },
224 { data_type => "longtext", is_nullable => 1 },
226 { data_type => "longtext", is_nullable => 1 },
228 { data_type => "longtext", is_nullable => 1 },
230 { data_type => "mediumtext", is_nullable => 1 },
232 { data_type => "varchar", is_nullable => 1, size => 255 },
234 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
236 { data_type => "mediumtext", is_nullable => 1 },
238 { data_type => "longtext", is_nullable => 1 },
240 { data_type => "mediumtext", is_nullable => 1 },
242 { data_type => "longtext", is_nullable => 1 },
244 { data_type => "mediumtext", is_nullable => 1 },
245 "editionresponsibility",
246 { data_type => "mediumtext", is_nullable => 1 },
249 data_type => "timestamp",
250 datetime_undef_if_invalid => 1,
251 default_value => \"current_timestamp",
255 { data_type => "varchar", is_nullable => 1, size => 255 },
257 { data_type => "varchar", is_nullable => 1, size => 255 },
259 { data_type => "longtext", is_nullable => 1 },
261 { data_type => "varchar", is_nullable => 1, size => 255 },
263 { data_type => "varchar", is_nullable => 1, size => 255 },
265 { data_type => "varchar", is_nullable => 1, size => 25 },
267 { data_type => "mediumtext", is_nullable => 1 },
269 { data_type => "varchar", is_nullable => 1, size => 10 },
271 { data_type => "varchar", is_nullable => 1, size => 30 },
273 { data_type => "varchar", is_nullable => 1, size => 10 },
275 { data_type => "varchar", is_nullable => 1, size => 10 },
277 { data_type => "varchar", is_nullable => 1, size => 255 },
279 { data_type => "varchar", is_nullable => 1, size => 255 },
281 { data_type => "integer", is_nullable => 1 },
288 =item * L</biblioitemnumber>
294 __PACKAGE__->set_primary_key("biblioitemnumber");
302 Related object: L<Koha::Schema::Result::Biblio>
306 __PACKAGE__->belongs_to(
308 "Koha::Schema::Result::Biblio",
309 { biblionumber => "biblionumber" },
310 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
317 Related object: L<Koha::Schema::Result::Item>
321 __PACKAGE__->has_many(
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" );