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
41 data_type: 'mediumtext'
46 data_type: 'mediumtext'
73 =head2 publicationyear
87 datetime_undef_if_invalid: 1
95 =head2 collectiontitle
97 data_type: 'mediumtext'
100 =head2 collectionissn
105 =head2 collectionvolume
107 data_type: 'mediumtext'
110 =head2 editionstatement
115 =head2 editionresponsibility
122 data_type: 'timestamp'
123 datetime_undef_if_invalid: 1
124 default_value: current_timestamp
141 data_type: 'mediumtext'
164 data_type: 'longblob'
203 =head2 agerestriction
216 data_type: 'longtext'
221 __PACKAGE__->add_columns(
223 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
226 data_type => "integer",
232 { data_type => "mediumtext", is_nullable => 1 },
234 { data_type => "mediumtext", is_nullable => 1 },
236 { data_type => "varchar", is_nullable => 1, size => 10 },
238 { data_type => "varchar", is_nullable => 1, size => 30 },
240 { data_type => "varchar", is_nullable => 1, size => 9 },
242 { data_type => "varchar", is_nullable => 1, size => 13 },
244 { data_type => "text", is_nullable => 1 },
246 { data_type => "varchar", is_nullable => 1, size => 255 },
248 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
250 { data_type => "text", is_nullable => 1 },
252 { data_type => "mediumtext", is_nullable => 1 },
254 { data_type => "text", is_nullable => 1 },
256 { data_type => "mediumtext", is_nullable => 1 },
258 { data_type => "text", is_nullable => 1 },
259 "editionresponsibility",
260 { data_type => "text", is_nullable => 1 },
263 data_type => "timestamp",
264 datetime_undef_if_invalid => 1,
265 default_value => \"current_timestamp",
269 { data_type => "varchar", is_nullable => 1, size => 255 },
271 { data_type => "varchar", is_nullable => 1, size => 255 },
273 { data_type => "mediumtext", is_nullable => 1 },
275 { data_type => "varchar", is_nullable => 1, size => 255 },
277 { data_type => "varchar", is_nullable => 1, size => 255 },
279 { data_type => "varchar", is_nullable => 1, size => 25 },
281 { data_type => "longblob", is_nullable => 1 },
283 { data_type => "varchar", is_nullable => 1, size => 255 },
285 { data_type => "varchar", is_nullable => 1, size => 10 },
287 { data_type => "varchar", is_nullable => 1, size => 30 },
289 { data_type => "varchar", is_nullable => 1, size => 10 },
291 { data_type => "varchar", is_nullable => 1, size => 10 },
293 { data_type => "varchar", is_nullable => 1, size => 30 },
295 { data_type => "varchar", is_nullable => 1, size => 255 },
297 { data_type => "integer", is_nullable => 1 },
299 { data_type => "longtext", is_nullable => 0 },
306 =item * L</biblioitemnumber>
312 __PACKAGE__->set_primary_key("biblioitemnumber");
320 Related object: L<Koha::Schema::Result::Biblio>
324 __PACKAGE__->belongs_to(
326 "Koha::Schema::Result::Biblio",
327 { biblionumber => "biblionumber" },
328 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
335 Related object: L<Koha::Schema::Result::Item>
339 __PACKAGE__->has_many(
341 "Koha::Schema::Result::Item",
342 { "foreign.biblioitemnumber" => "self.biblioitemnumber" },
343 { cascade_copy => 0, cascade_delete => 0 },
347 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
348 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Vyrs9pWYoqhWJw+cRy1EVg
351 # You can replace this text with custom content, and it will be preserved on regeneration