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'
202 =head2 agerestriction
215 data_type: 'longtext'
220 __PACKAGE__->add_columns(
222 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
225 data_type => "integer",
231 { data_type => "mediumtext", is_nullable => 1 },
233 { data_type => "mediumtext", is_nullable => 1 },
235 { data_type => "varchar", is_nullable => 1, size => 10 },
237 { data_type => "varchar", is_nullable => 1, size => 30 },
239 { data_type => "varchar", is_nullable => 1, size => 9 },
241 { data_type => "varchar", is_nullable => 1, size => 13 },
243 { data_type => "text", is_nullable => 1 },
245 { data_type => "varchar", is_nullable => 1, size => 255 },
247 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
249 { data_type => "text", is_nullable => 1 },
251 { data_type => "mediumtext", is_nullable => 1 },
253 { data_type => "text", is_nullable => 1 },
255 { data_type => "mediumtext", is_nullable => 1 },
257 { data_type => "text", is_nullable => 1 },
258 "editionresponsibility",
259 { data_type => "text", is_nullable => 1 },
262 data_type => "timestamp",
263 datetime_undef_if_invalid => 1,
264 default_value => \"current_timestamp",
268 { data_type => "varchar", is_nullable => 1, size => 255 },
270 { data_type => "varchar", is_nullable => 1, size => 255 },
272 { data_type => "mediumtext", is_nullable => 1 },
274 { data_type => "varchar", is_nullable => 1, size => 255 },
276 { data_type => "varchar", is_nullable => 1, size => 255 },
278 { data_type => "varchar", is_nullable => 1, size => 25 },
280 { data_type => "longblob", is_nullable => 1 },
282 { data_type => "text", is_nullable => 1 },
284 { data_type => "varchar", is_nullable => 1, size => 10 },
286 { data_type => "varchar", is_nullable => 1, size => 30 },
288 { data_type => "varchar", is_nullable => 1, size => 10 },
290 { data_type => "varchar", is_nullable => 1, size => 10 },
292 { data_type => "varchar", is_nullable => 1, size => 30 },
294 { data_type => "varchar", is_nullable => 1, size => 255 },
296 { data_type => "integer", is_nullable => 1 },
298 { data_type => "longtext", is_nullable => 0 },
305 =item * L</biblioitemnumber>
311 __PACKAGE__->set_primary_key("biblioitemnumber");
319 Related object: L<Koha::Schema::Result::Biblio>
323 __PACKAGE__->belongs_to(
325 "Koha::Schema::Result::Biblio",
326 { biblionumber => "biblionumber" },
327 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
334 Related object: L<Koha::Schema::Result::Item>
338 __PACKAGE__->has_many(
340 "Koha::Schema::Result::Item",
341 { "foreign.biblioitemnumber" => "self.biblioitemnumber" },
342 { cascade_copy => 0, cascade_delete => 0 },
346 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2014-01-31 15:58:34
347 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4tm44zYP5ZPJo/xINVgHVg
350 # You can replace this text with custom content, and it will be preserved on regeneration