2 package Koha::Schema::Result::Biblio;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Biblio
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<biblio>
22 __PACKAGE__->table("biblio");
35 default_value: (empty string)
96 data_type: 'timestamp'
97 datetime_undef_if_invalid: 1
98 default_value: 'current_timestamp()'
104 datetime_undef_if_invalid: 1
109 data_type: 'longtext'
114 __PACKAGE__->add_columns(
116 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
118 { data_type => "varchar", default_value => "", is_nullable => 0, size => 4 },
120 { data_type => "longtext", is_nullable => 1 },
122 { data_type => "longtext", is_nullable => 1 },
124 { data_type => "longtext", is_nullable => 1 },
126 { data_type => "longtext", is_nullable => 1 },
128 { data_type => "longtext", is_nullable => 1 },
130 { data_type => "longtext", is_nullable => 1 },
132 { data_type => "longtext", is_nullable => 1 },
134 { data_type => "longtext", is_nullable => 1 },
136 { data_type => "tinyint", is_nullable => 1 },
138 { data_type => "longtext", is_nullable => 1 },
140 { data_type => "smallint", is_nullable => 1 },
143 data_type => "timestamp",
144 datetime_undef_if_invalid => 1,
145 default_value => "current_timestamp()",
149 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 0 },
151 { data_type => "longtext", is_nullable => 1 },
158 =item * L</biblionumber>
164 __PACKAGE__->set_primary_key("biblionumber");
172 Related object: L<Koha::Schema::Result::Aqorder>
176 __PACKAGE__->has_many(
178 "Koha::Schema::Result::Aqorder",
179 { "foreign.biblionumber" => "self.biblionumber" },
180 { cascade_copy => 0, cascade_delete => 0 },
183 =head2 article_requests
187 Related object: L<Koha::Schema::Result::ArticleRequest>
191 __PACKAGE__->has_many(
193 "Koha::Schema::Result::ArticleRequest",
194 { "foreign.biblionumber" => "self.biblionumber" },
195 { cascade_copy => 0, cascade_delete => 0 },
198 =head2 biblio_metadatas
202 Related object: L<Koha::Schema::Result::BiblioMetadata>
206 __PACKAGE__->has_many(
208 "Koha::Schema::Result::BiblioMetadata",
209 { "foreign.biblionumber" => "self.biblionumber" },
210 { cascade_copy => 0, cascade_delete => 0 },
217 Related object: L<Koha::Schema::Result::Biblioimage>
221 __PACKAGE__->has_many(
223 "Koha::Schema::Result::Biblioimage",
224 { "foreign.biblionumber" => "self.biblionumber" },
225 { cascade_copy => 0, cascade_delete => 0 },
232 Related object: L<Koha::Schema::Result::Biblioitem>
236 __PACKAGE__->has_many(
238 "Koha::Schema::Result::Biblioitem",
239 { "foreign.biblionumber" => "self.biblionumber" },
240 { cascade_copy => 0, cascade_delete => 0 },
243 =head2 hold_fill_targets
247 Related object: L<Koha::Schema::Result::HoldFillTarget>
251 __PACKAGE__->has_many(
253 "Koha::Schema::Result::HoldFillTarget",
254 { "foreign.biblionumber" => "self.biblionumber" },
255 { cascade_copy => 0, cascade_delete => 0 },
262 Related object: L<Koha::Schema::Result::Item>
266 __PACKAGE__->has_many(
268 "Koha::Schema::Result::Item",
269 { "foreign.biblionumber" => "self.biblionumber" },
270 { cascade_copy => 0, cascade_delete => 0 },
277 Related object: L<Koha::Schema::Result::OldReserve>
281 __PACKAGE__->has_many(
283 "Koha::Schema::Result::OldReserve",
284 { "foreign.biblionumber" => "self.biblionumber" },
285 { cascade_copy => 0, cascade_delete => 0 },
292 Related object: L<Koha::Schema::Result::Rating>
296 __PACKAGE__->has_many(
298 "Koha::Schema::Result::Rating",
299 { "foreign.biblionumber" => "self.biblionumber" },
300 { cascade_copy => 0, cascade_delete => 0 },
307 Related object: L<Koha::Schema::Result::Reserve>
311 __PACKAGE__->has_many(
313 "Koha::Schema::Result::Reserve",
314 { "foreign.biblionumber" => "self.biblionumber" },
315 { cascade_copy => 0, cascade_delete => 0 },
322 Related object: L<Koha::Schema::Result::Review>
326 __PACKAGE__->has_many(
328 "Koha::Schema::Result::Review",
329 { "foreign.biblionumber" => "self.biblionumber" },
330 { cascade_copy => 0, cascade_delete => 0 },
337 Related object: L<Koha::Schema::Result::Suggestion>
341 __PACKAGE__->has_many(
343 "Koha::Schema::Result::Suggestion",
344 { "foreign.biblionumber" => "self.biblionumber" },
345 { cascade_copy => 0, cascade_delete => 0 },
352 Related object: L<Koha::Schema::Result::TagAll>
356 __PACKAGE__->has_many(
358 "Koha::Schema::Result::TagAll",
359 { "foreign.biblionumber" => "self.biblionumber" },
360 { cascade_copy => 0, cascade_delete => 0 },
367 Related object: L<Koha::Schema::Result::TagsIndex>
371 __PACKAGE__->has_many(
373 "Koha::Schema::Result::TagsIndex",
374 { "foreign.biblionumber" => "self.biblionumber" },
375 { cascade_copy => 0, cascade_delete => 0 },
378 =head2 virtualshelfcontents
382 Related object: L<Koha::Schema::Result::Virtualshelfcontent>
386 __PACKAGE__->has_many(
387 "virtualshelfcontents",
388 "Koha::Schema::Result::Virtualshelfcontent",
389 { "foreign.biblionumber" => "self.biblionumber" },
390 { cascade_copy => 0, cascade_delete => 0 },
394 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2019-03-15 16:45:45
395 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:61+Di/Fke60nCaASGeXbvw
398 __PACKAGE__->has_one(
400 "Koha::Schema::Result::BiblioMetadata",
401 { "foreign.biblionumber" => "self.biblionumber" },
402 { cascade_copy => 0, cascade_delete => 0 },