Bug 21395: Fix creation of PO file
[koha.git] / Koha / Schema / Result / Biblioimage.pm
blob090e6b20f61c5f158f458f85e1544b58e24d5894
1 use utf8;
2 package Koha::Schema::Result::Biblioimage;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::Biblioimage
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<biblioimages>
20 =cut
22 __PACKAGE__->table("biblioimages");
24 =head1 ACCESSORS
26 =head2 imagenumber
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
32 =head2 biblionumber
34 data_type: 'integer'
35 is_foreign_key: 1
36 is_nullable: 0
38 =head2 mimetype
40 data_type: 'varchar'
41 is_nullable: 0
42 size: 15
44 =head2 imagefile
46 data_type: 'mediumblob'
47 is_nullable: 0
49 =head2 thumbnail
51 data_type: 'mediumblob'
52 is_nullable: 0
54 =head2 timestamp
56 data_type: 'timestamp'
57 datetime_undef_if_invalid: 1
58 default_value: current_timestamp
59 is_nullable: 0
61 =cut
63 __PACKAGE__->add_columns(
64 "imagenumber",
65 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
66 "biblionumber",
67 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
68 "mimetype",
69 { data_type => "varchar", is_nullable => 0, size => 15 },
70 "imagefile",
71 { data_type => "mediumblob", is_nullable => 0 },
72 "thumbnail",
73 { data_type => "mediumblob", is_nullable => 0 },
74 "timestamp",
76 data_type => "timestamp",
77 datetime_undef_if_invalid => 1,
78 default_value => \"current_timestamp",
79 is_nullable => 0,
83 =head1 PRIMARY KEY
85 =over 4
87 =item * L</imagenumber>
89 =back
91 =cut
93 __PACKAGE__->set_primary_key("imagenumber");
95 =head1 RELATIONS
97 =head2 biblionumber
99 Type: belongs_to
101 Related object: L<Koha::Schema::Result::Biblio>
103 =cut
105 __PACKAGE__->belongs_to(
106 "biblionumber",
107 "Koha::Schema::Result::Biblio",
108 { biblionumber => "biblionumber" },
109 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
113 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-20 10:39:00
114 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:f6elSD3dDk6vWE4bUirmew
117 # You can replace this text with custom content, and it will be preserved on regeneration