2 package Koha::Schema::Result::CoverImage;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::CoverImage
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<cover_images>
22 __PACKAGE__->table("cover_images");
52 data_type: 'mediumblob'
57 data_type: 'mediumblob'
62 data_type: 'timestamp'
63 datetime_undef_if_invalid: 1
64 default_value: current_timestamp
69 __PACKAGE__->add_columns(
71 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
73 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
75 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
77 { data_type => "varchar", is_nullable => 0, size => 15 },
79 { data_type => "mediumblob", is_nullable => 0 },
81 { data_type => "mediumblob", is_nullable => 0 },
84 data_type => "timestamp",
85 datetime_undef_if_invalid => 1,
86 default_value => \"current_timestamp",
95 =item * L</imagenumber>
101 __PACKAGE__->set_primary_key("imagenumber");
109 Related object: L<Koha::Schema::Result::Biblio>
113 __PACKAGE__->belongs_to(
115 "Koha::Schema::Result::Biblio",
116 { biblionumber => "biblionumber" },
120 on_delete => "CASCADE",
121 on_update => "CASCADE",
129 Related object: L<Koha::Schema::Result::Item>
133 __PACKAGE__->belongs_to(
135 "Koha::Schema::Result::Item",
136 { itemnumber => "itemnumber" },
140 on_delete => "CASCADE",
141 on_update => "CASCADE",
146 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-10-12 09:13:32
147 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:F8pfwsORemCIxoVAPIohXw
150 # You can replace this text with custom code or comments, and it will be preserved on regeneration