Bug 3050: (follow-up) update DBIC schema classes
[koha.git] / Koha / Schema / Result / MiscFile.pm
1 use utf8;
2 package Koha::Schema::Result::MiscFile;
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::MiscFile
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<misc_files>
19
20 =cut
21
22 __PACKAGE__->table("misc_files");
23
24 =head1 ACCESSORS
25
26 =head2 file_id
27
28   data_type: 'integer'
29   is_auto_increment: 1
30   is_nullable: 0
31
32 =head2 table_tag
33
34   data_type: 'varchar'
35   is_nullable: 0
36   size: 255
37
38 =head2 record_id
39
40   data_type: 'integer'
41   is_nullable: 0
42
43 =head2 file_name
44
45   data_type: 'varchar'
46   is_nullable: 0
47   size: 255
48
49 =head2 file_type
50
51   data_type: 'varchar'
52   is_nullable: 0
53   size: 255
54
55 =head2 file_description
56
57   data_type: 'varchar'
58   is_nullable: 1
59   size: 255
60
61 =head2 file_content
62
63   data_type: 'longblob'
64   is_nullable: 0
65
66 =head2 date_uploaded
67
68   data_type: 'timestamp'
69   datetime_undef_if_invalid: 1
70   default_value: current_timestamp
71   is_nullable: 0
72
73 =cut
74
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",
91   {
92     data_type => "timestamp",
93     datetime_undef_if_invalid => 1,
94     default_value => \"current_timestamp",
95     is_nullable => 0,
96   },
97 );
98
99 =head1 PRIMARY KEY
100
101 =over 4
102
103 =item * L</file_id>
104
105 =back
106
107 =cut
108
109 __PACKAGE__->set_primary_key("file_id");
110
111
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
114
115
116 # You can replace this text with custom code or comments, and it will be preserved on regeneration
117 1;