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)
76 data_type: 'timestamp'
77 datetime_undef_if_invalid: 1
78 default_value: current_timestamp
84 datetime_undef_if_invalid: 1
94 __PACKAGE__->add_columns(
96 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
98 { data_type => "varchar", default_value => "", is_nullable => 0, size => 4 },
100 { data_type => "longtext", is_nullable => 1 },
102 { data_type => "longtext", is_nullable => 1 },
104 { data_type => "longtext", is_nullable => 1 },
106 { data_type => "longtext", is_nullable => 1 },
108 { data_type => "tinyint", is_nullable => 1 },
110 { data_type => "longtext", is_nullable => 1 },
112 { data_type => "smallint", is_nullable => 1 },
115 data_type => "timestamp",
116 datetime_undef_if_invalid => 1,
117 default_value => \"current_timestamp",
121 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 0 },
123 { data_type => "longtext", is_nullable => 1 },
130 =item * L</biblionumber>
136 __PACKAGE__->set_primary_key("biblionumber");
144 Related object: L<Koha::Schema::Result::Aqorder>
148 __PACKAGE__->has_many(
150 "Koha::Schema::Result::Aqorder",
151 { "foreign.biblionumber" => "self.biblionumber" },
152 { cascade_copy => 0, cascade_delete => 0 },
155 =head2 article_requests
159 Related object: L<Koha::Schema::Result::ArticleRequest>
163 __PACKAGE__->has_many(
165 "Koha::Schema::Result::ArticleRequest",
166 { "foreign.biblionumber" => "self.biblionumber" },
167 { cascade_copy => 0, cascade_delete => 0 },
170 =head2 biblio_metadatas
174 Related object: L<Koha::Schema::Result::BiblioMetadata>
178 __PACKAGE__->has_many(
180 "Koha::Schema::Result::BiblioMetadata",
181 { "foreign.biblionumber" => "self.biblionumber" },
182 { cascade_copy => 0, cascade_delete => 0 },
189 Related object: L<Koha::Schema::Result::Biblioimage>
193 __PACKAGE__->has_many(
195 "Koha::Schema::Result::Biblioimage",
196 { "foreign.biblionumber" => "self.biblionumber" },
197 { cascade_copy => 0, cascade_delete => 0 },
204 Related object: L<Koha::Schema::Result::Biblioitem>
208 __PACKAGE__->has_many(
210 "Koha::Schema::Result::Biblioitem",
211 { "foreign.biblionumber" => "self.biblionumber" },
212 { cascade_copy => 0, cascade_delete => 0 },
215 =head2 hold_fill_targets
219 Related object: L<Koha::Schema::Result::HoldFillTarget>
223 __PACKAGE__->has_many(
225 "Koha::Schema::Result::HoldFillTarget",
226 { "foreign.biblionumber" => "self.biblionumber" },
227 { cascade_copy => 0, cascade_delete => 0 },
234 Related object: L<Koha::Schema::Result::Item>
238 __PACKAGE__->has_many(
240 "Koha::Schema::Result::Item",
241 { "foreign.biblionumber" => "self.biblionumber" },
242 { cascade_copy => 0, cascade_delete => 0 },
249 Related object: L<Koha::Schema::Result::OldReserve>
253 __PACKAGE__->has_many(
255 "Koha::Schema::Result::OldReserve",
256 { "foreign.biblionumber" => "self.biblionumber" },
257 { cascade_copy => 0, cascade_delete => 0 },
264 Related object: L<Koha::Schema::Result::Rating>
268 __PACKAGE__->has_many(
270 "Koha::Schema::Result::Rating",
271 { "foreign.biblionumber" => "self.biblionumber" },
272 { cascade_copy => 0, cascade_delete => 0 },
279 Related object: L<Koha::Schema::Result::Reserve>
283 __PACKAGE__->has_many(
285 "Koha::Schema::Result::Reserve",
286 { "foreign.biblionumber" => "self.biblionumber" },
287 { cascade_copy => 0, cascade_delete => 0 },
294 Related object: L<Koha::Schema::Result::Review>
298 __PACKAGE__->has_many(
300 "Koha::Schema::Result::Review",
301 { "foreign.biblionumber" => "self.biblionumber" },
302 { cascade_copy => 0, cascade_delete => 0 },
309 Related object: L<Koha::Schema::Result::TagAll>
313 __PACKAGE__->has_many(
315 "Koha::Schema::Result::TagAll",
316 { "foreign.biblionumber" => "self.biblionumber" },
317 { cascade_copy => 0, cascade_delete => 0 },
324 Related object: L<Koha::Schema::Result::TagsIndex>
328 __PACKAGE__->has_many(
330 "Koha::Schema::Result::TagsIndex",
331 { "foreign.biblionumber" => "self.biblionumber" },
332 { cascade_copy => 0, cascade_delete => 0 },
335 =head2 virtualshelfcontents
339 Related object: L<Koha::Schema::Result::Virtualshelfcontent>
343 __PACKAGE__->has_many(
344 "virtualshelfcontents",
345 "Koha::Schema::Result::Virtualshelfcontent",
346 { "foreign.biblionumber" => "self.biblionumber" },
347 { cascade_copy => 0, cascade_delete => 0 },
351 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
352 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bUv00JjY09Hj2Zj4klqyxA