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'
162 data_type: 'longblob'
200 =head2 agerestriction
213 data_type: 'longtext'
218 __PACKAGE__
->add_columns(
220 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
223 data_type
=> "integer",
229 { data_type
=> "mediumtext", is_nullable
=> 1 },
231 { data_type
=> "mediumtext", is_nullable
=> 1 },
233 { data_type
=> "varchar", is_nullable
=> 1, size
=> 10 },
235 { data_type
=> "mediumtext", is_nullable
=> 1 },
237 { data_type
=> "mediumtext", is_nullable
=> 1 },
239 { data_type
=> "varchar", is_nullable
=> 1, size
=> 13 },
241 { data_type
=> "text", is_nullable
=> 1 },
243 { data_type
=> "varchar", is_nullable
=> 1, size
=> 255 },
245 { data_type
=> "date", datetime_undef_if_invalid
=> 1, is_nullable
=> 1 },
247 { data_type
=> "text", is_nullable
=> 1 },
249 { data_type
=> "mediumtext", is_nullable
=> 1 },
251 { data_type
=> "text", is_nullable
=> 1 },
253 { data_type
=> "mediumtext", is_nullable
=> 1 },
255 { data_type
=> "text", is_nullable
=> 1 },
256 "editionresponsibility",
257 { data_type
=> "text", is_nullable
=> 1 },
260 data_type
=> "timestamp",
261 datetime_undef_if_invalid
=> 1,
262 default_value
=> \"current_timestamp
",
266 { data_type => "varchar
", is_nullable => 1, size => 255 },
268 { data_type => "varchar
", is_nullable => 1, size => 255 },
270 { data_type => "mediumtext
", is_nullable => 1 },
272 { data_type => "varchar
", is_nullable => 1, size => 255 },
274 { data_type => "varchar
", is_nullable => 1, size => 255 },
276 { data_type => "varchar
", is_nullable => 1, size => 25 },
278 { data_type => "longblob
", is_nullable => 1 },
280 { data_type => "text
", is_nullable => 1 },
282 { data_type => "varchar
", is_nullable => 1, size => 10 },
284 { data_type => "varchar
", is_nullable => 1, size => 30 },
286 { data_type => "varchar
", is_nullable => 1, size => 10 },
288 { data_type => "varchar
", is_nullable => 1, size => 10 },
290 { data_type => "varchar
", is_nullable => 1, size => 255 },
292 { data_type => "varchar
", is_nullable => 1, size => 255 },
294 { data_type => "integer
", is_nullable => 1 },
296 { data_type => "longtext
", is_nullable => 1 },
303 =item * L</biblioitemnumber>
309 __PACKAGE__->set_primary_key("biblioitemnumber
");
317 Related object: L<Koha::Schema::Result::Biblio>
321 __PACKAGE__->belongs_to(
323 "Koha
::Schema
::Result
::Biblio
",
324 { biblionumber => "biblionumber
" },
325 { is_deferrable => 1, on_delete => "CASCADE
", on_update => "CASCADE
" },
332 Related object: L<Koha::Schema::Result::Item>
336 __PACKAGE__->has_many(
338 "Koha
::Schema
::Result
::Item
",
339 { "foreign
.biblioitemnumber
" => "self
.biblioitemnumber
" },
340 { cascade_copy => 0, cascade_delete => 0 },
344 # Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-02-24 14:19:57
345 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:A/4lKYlKWWd8TcMVzMRtCg
347 __PACKAGE__->belongs_to( biblio => "Koha
::Schema
::Result
::Biblio
", "biblionumber
" );