"Fossies" - the Fresh Open Source Software Archive 
Member "koha-19.11.15/Koha/Schema/Result/Patronimage.pm" (23 Feb 2021, 1514 Bytes) of package /linux/misc/koha-19.11.15.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Perl source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
For more information about "Patronimage.pm" see the
Fossies "Dox" file reference documentation.
1 use utf8;
2 package Koha::Schema::Result::Patronimage;
3
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7 =head1 NAME
8
9 Koha::Schema::Result::Patronimage
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<patronimage>
19
20 =cut
21
22 __PACKAGE__->table("patronimage");
23
24 =head1 ACCESSORS
25
26 =head2 borrowernumber
27
28 data_type: 'integer'
29 is_foreign_key: 1
30 is_nullable: 0
31
32 =head2 mimetype
33
34 data_type: 'varchar'
35 is_nullable: 0
36 size: 15
37
38 =head2 imagefile
39
40 data_type: 'mediumblob'
41 is_nullable: 0
42
43 =cut
44
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 },
52 );
53
54 =head1 PRIMARY KEY
55
56 =over 4
57
58 =item * L</borrowernumber>
59
60 =back
61
62 =cut
63
64 __PACKAGE__->set_primary_key("borrowernumber");
65
66 =head1 RELATIONS
67
68 =head2 borrowernumber
69
70 Type: belongs_to
71
72 Related object: L<Koha::Schema::Result::Borrower>
73
74 =cut
75
76 __PACKAGE__->belongs_to(
77 "borrowernumber",
78 "Koha::Schema::Result::Borrower",
79 { borrowernumber => "borrowernumber" },
80 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
81 );
82
83
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
86
87 sub koha_object_class {
88 'Koha::Patron::Image';
89 }
90 sub koha_objects_class {
91 'Koha::Patron::Images';
92 }
93
94 1;