Bug 16829: DBIx update
[koha.git] / Koha / Schema / Result / MiscFile.pm
blobc194ce0fa03e94a4af7d2461edf72ec2a334624d
1 use utf8;
2 package Koha::Schema::Result::MiscFile;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::MiscFile
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<misc_files>
20 =cut
22 __PACKAGE__->table("misc_files");
24 =head1 ACCESSORS
26 =head2 file_id
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
32 =head2 table_tag
34 data_type: 'varchar'
35 is_nullable: 0
36 size: 255
38 =head2 record_id
40 data_type: 'integer'
41 is_nullable: 0
43 =head2 file_name
45 data_type: 'varchar'
46 is_nullable: 0
47 size: 255
49 =head2 file_type
51 data_type: 'varchar'
52 is_nullable: 0
53 size: 255
55 =head2 file_description
57 data_type: 'varchar'
58 is_nullable: 1
59 size: 255
61 =head2 file_content
63 data_type: 'longblob'
64 is_nullable: 0
66 =head2 date_uploaded
68 data_type: 'timestamp'
69 datetime_undef_if_invalid: 1
70 default_value: current_timestamp
71 is_nullable: 0
73 =cut
75 __PACKAGE__->add_columns(
76 "file_id",
77 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
78 "table_tag",
79 { data_type => "varchar", is_nullable => 0, size => 255 },
80 "record_id",
81 { data_type => "integer", is_nullable => 0 },
82 "file_name",
83 { data_type => "varchar", is_nullable => 0, size => 255 },
84 "file_type",
85 { data_type => "varchar", is_nullable => 0, size => 255 },
86 "file_description",
87 { data_type => "varchar", is_nullable => 1, size => 255 },
88 "file_content",
89 { data_type => "longblob", is_nullable => 0 },
90 "date_uploaded",
92 data_type => "timestamp",
93 datetime_undef_if_invalid => 1,
94 default_value => \"current_timestamp",
95 is_nullable => 0,
99 =head1 PRIMARY KEY
101 =over 4
103 =item * L</file_id>
105 =back
107 =cut
109 __PACKAGE__->set_primary_key("file_id");
112 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2014-05-25 21:17:02
113 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VWGyKXxK0dqymMsEGCjJxg
116 # You can replace this text with custom code or comments, and it will be preserved on regeneration