Bug 16829: DBIx update
[koha.git] / Koha / Schema / Result / Biblioimage.pm
blob400eef5047d51f79a85cfc01e6952eb73a4afda5
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 =cut
56 __PACKAGE__->add_columns(
57 "imagenumber",
58 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
59 "biblionumber",
60 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
61 "mimetype",
62 { data_type => "varchar", is_nullable => 0, size => 15 },
63 "imagefile",
64 { data_type => "mediumblob", is_nullable => 0 },
65 "thumbnail",
66 { data_type => "mediumblob", is_nullable => 0 },
69 =head1 PRIMARY KEY
71 =over 4
73 =item * L</imagenumber>
75 =back
77 =cut
79 __PACKAGE__->set_primary_key("imagenumber");
81 =head1 RELATIONS
83 =head2 biblionumber
85 Type: belongs_to
87 Related object: L<Koha::Schema::Result::Biblio>
89 =cut
91 __PACKAGE__->belongs_to(
92 "biblionumber",
93 "Koha::Schema::Result::Biblio",
94 { biblionumber => "biblionumber" },
95 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
99 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
100 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WdDuaUrR0IC6+8jJwlev6A
103 # You can replace this text with custom content, and it will be preserved on regeneration