Bug 25501: Supress warnings on installing translation
[koha.git] / Koha / Schema / Result / Patronimage.pm
blob30cf1e0dccd2fc4eefc5ec83bd48200e3e7a76db
1 use utf8;
2 package Koha::Schema::Result::Patronimage;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::Patronimage
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<patronimage>
20 =cut
22 __PACKAGE__->table("patronimage");
24 =head1 ACCESSORS
26 =head2 borrowernumber
28 data_type: 'integer'
29 is_foreign_key: 1
30 is_nullable: 0
32 =head2 mimetype
34 data_type: 'varchar'
35 is_nullable: 0
36 size: 15
38 =head2 imagefile
40 data_type: 'mediumblob'
41 is_nullable: 0
43 =cut
45 __PACKAGE__->add_columns(
46 "borrowernumber",
47 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
48 "mimetype",
49 { data_type => "varchar", is_nullable => 0, size => 15 },
50 "imagefile",
51 { data_type => "mediumblob", is_nullable => 0 },
54 =head1 PRIMARY KEY
56 =over 4
58 =item * L</borrowernumber>
60 =back
62 =cut
64 __PACKAGE__->set_primary_key("borrowernumber");
66 =head1 RELATIONS
68 =head2 borrowernumber
70 Type: belongs_to
72 Related object: L<Koha::Schema::Result::Borrower>
74 =cut
76 __PACKAGE__->belongs_to(
77 "borrowernumber",
78 "Koha::Schema::Result::Borrower",
79 { borrowernumber => "borrowernumber" },
80 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
84 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
85 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uuRGyWlemwOH1PCkvhqxdQ
87 sub koha_object_class {
88 'Koha::Patron::Image';
90 sub koha_objects_class {
91 'Koha::Patron::Images';