2 package Koha::Schema::Result::Patronimage;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Patronimage
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<patronimage>
22 __PACKAGE__->table("patronimage");
32 the borrowernumber of the patron this image is attached to (borrowers.borrowernumber)
40 the format of the image (png, jpg, etc)
44 data_type: 'mediumblob'
51 __PACKAGE__->add_columns(
53 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
55 { data_type => "varchar", is_nullable => 0, size => 15 },
57 { data_type => "mediumblob", is_nullable => 0 },
64 =item * L</borrowernumber>
70 __PACKAGE__->set_primary_key("borrowernumber");
78 Related object: L<Koha::Schema::Result::Borrower>
82 __PACKAGE__->belongs_to(
84 "Koha::Schema::Result::Borrower",
85 { borrowernumber => "borrowernumber" },
86 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
90 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
91 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:DWbMgbxlYcZhGF1YK9fDIA
93 sub koha_object_class {
94 'Koha::Patron::Image';
96 sub koha_objects_class {
97 'Koha::Patron::Images';