Bug 14633: Patch to control.ini to add or dependency to libapache2-mpm-itk
[koha.git] / Koha / Schema / Result / BorrowerFile.pm
blob6f0982d519ffbbc5025088c0226d5dc4c10146bf
1 use utf8;
2 package Koha::Schema::Result::BorrowerFile;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::BorrowerFile
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<borrower_files>
20 =cut
22 __PACKAGE__->table("borrower_files");
24 =head1 ACCESSORS
26 =head2 file_id
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
32 =head2 borrowernumber
34 data_type: 'integer'
35 is_foreign_key: 1
36 is_nullable: 0
38 =head2 file_name
40 data_type: 'varchar'
41 is_nullable: 0
42 size: 255
44 =head2 file_type
46 data_type: 'varchar'
47 is_nullable: 0
48 size: 255
50 =head2 file_description
52 data_type: 'varchar'
53 is_nullable: 1
54 size: 255
56 =head2 file_content
58 data_type: 'longblob'
59 is_nullable: 0
61 =head2 date_uploaded
63 data_type: 'timestamp'
64 datetime_undef_if_invalid: 1
65 default_value: current_timestamp
66 is_nullable: 0
68 =cut
70 __PACKAGE__->add_columns(
71 "file_id",
72 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
73 "borrowernumber",
74 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
75 "file_name",
76 { data_type => "varchar", is_nullable => 0, size => 255 },
77 "file_type",
78 { data_type => "varchar", is_nullable => 0, size => 255 },
79 "file_description",
80 { data_type => "varchar", is_nullable => 1, size => 255 },
81 "file_content",
82 { data_type => "longblob", is_nullable => 0 },
83 "date_uploaded",
85 data_type => "timestamp",
86 datetime_undef_if_invalid => 1,
87 default_value => \"current_timestamp",
88 is_nullable => 0,
92 =head1 PRIMARY KEY
94 =over 4
96 =item * L</file_id>
98 =back
100 =cut
102 __PACKAGE__->set_primary_key("file_id");
104 =head1 RELATIONS
106 =head2 borrowernumber
108 Type: belongs_to
110 Related object: L<Koha::Schema::Result::Borrower>
112 =cut
114 __PACKAGE__->belongs_to(
115 "borrowernumber",
116 "Koha::Schema::Result::Borrower",
117 { borrowernumber => "borrowernumber" },
118 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
122 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
123 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sbkf7bvdO4CgmiBLgIwYQg
126 # You can replace this text with custom content, and it will be preserved on regeneration