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'
57 data_type: 'mediumtext'
62 data_type: 'mediumtext'
71 =head2 publicationyear
85 datetime_undef_if_invalid: 1
93 =head2 collectiontitle
95 data_type: 'mediumtext'
103 =head2 collectionvolume
105 data_type: 'mediumtext'
108 =head2 editionstatement
113 =head2 editionresponsibility
120 data_type: 'timestamp'
121 datetime_undef_if_invalid: 1
122 default_value: current_timestamp
139 data_type: 'mediumtext'
195 =head2 agerestriction
208 __PACKAGE__->add_columns(
210 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
213 data_type => "integer",
219 { data_type => "mediumtext", is_nullable => 1 },
221 { data_type => "mediumtext", is_nullable => 1 },
223 { data_type => "varchar", is_nullable => 1, size => 10 },
225 { data_type => "mediumtext", is_nullable => 1 },
227 { data_type => "mediumtext", is_nullable => 1 },
229 { data_type => "varchar", is_nullable => 1, size => 13 },
231 { data_type => "text", is_nullable => 1 },
233 { data_type => "varchar", is_nullable => 1, size => 255 },
235 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
237 { data_type => "text", is_nullable => 1 },
239 { data_type => "mediumtext", is_nullable => 1 },
241 { data_type => "text", is_nullable => 1 },
243 { data_type => "mediumtext", is_nullable => 1 },
245 { data_type => "text", is_nullable => 1 },
246 "editionresponsibility",
247 { data_type => "text", is_nullable => 1 },
250 data_type => "timestamp",
251 datetime_undef_if_invalid => 1,
252 default_value => \"current_timestamp",
256 { data_type => "varchar", is_nullable => 1, size => 255 },
258 { data_type => "varchar", is_nullable => 1, size => 255 },
260 { data_type => "mediumtext", is_nullable => 1 },
262 { data_type => "varchar", is_nullable => 1, size => 255 },
264 { data_type => "varchar", is_nullable => 1, size => 255 },
266 { data_type => "varchar", is_nullable => 1, size => 25 },
268 { data_type => "text", is_nullable => 1 },
270 { data_type => "varchar", is_nullable => 1, size => 10 },
272 { data_type => "varchar", is_nullable => 1, size => 30 },
274 { data_type => "varchar", is_nullable => 1, size => 10 },
276 { data_type => "varchar", is_nullable => 1, size => 10 },
278 { data_type => "varchar", is_nullable => 1, size => 255 },
280 { data_type => "varchar", is_nullable => 1, size => 255 },
282 { data_type => "integer", is_nullable => 1 },
289 =item * L</biblioitemnumber>
295 __PACKAGE__->set_primary_key("biblioitemnumber");
303 Related object: L<Koha::Schema::Result::Biblio>
307 __PACKAGE__->belongs_to(
309 "Koha::Schema::Result::Biblio",
310 { biblionumber => "biblionumber" },
311 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
318 Related object: L<Koha::Schema::Result::Item>
322 __PACKAGE__->has_many(
324 "Koha::Schema::Result::Item",
325 { "foreign.biblioitemnumber" => "self.biblioitemnumber" },
326 { cascade_copy => 0, cascade_delete => 0 },
330 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-01-13 08:36:25
331 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cAlg2aIZ7hxeq+Hgl1AJcA
333 __PACKAGE__->belongs_to( biblio => "Koha::Schema::Result::Biblio", "biblionumber" );