Bug 30755: Remove auto_too_soon from error count
[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 unique id for the file record
33
34 =head2 table_tag
35
36   data_type: 'varchar'
37   is_nullable: 0
38   size: 255
39
40 usually table name, or arbitrary unique tag
41
42 =head2 record_id
43
44   data_type: 'integer'
45   is_nullable: 0
46
47 record id from the table this file is associated to
48
49 =head2 file_name
50
51   data_type: 'varchar'
52   is_nullable: 0
53   size: 255
54
55 file name
56
57 =head2 file_type
58
59   data_type: 'varchar'
60   is_nullable: 0
61   size: 255
62
63 MIME type of the file
64
65 =head2 file_description
66
67   data_type: 'varchar'
68   is_nullable: 1
69   size: 255
70
71 description given to the file
72
73 =head2 file_content
74
75   data_type: 'longblob'
76   is_nullable: 0
77
78 file content
79
80 =head2 date_uploaded
81
82   data_type: 'timestamp'
83   datetime_undef_if_invalid: 1
84   default_value: current_timestamp
85   is_nullable: 0
86
87 date and time the file was added
88
89 =cut
90
91 __PACKAGE__->add_columns(
92   "file_id",
93   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
94   "table_tag",
95   { data_type => "varchar", is_nullable => 0, size => 255 },
96   "record_id",
97   { data_type => "integer", is_nullable => 0 },
98   "file_name",
99   { data_type => "varchar", is_nullable => 0, size => 255 },
100   "file_type",
101   { data_type => "varchar", is_nullable => 0, size => 255 },
102   "file_description",
103   { data_type => "varchar", is_nullable => 1, size => 255 },
104   "file_content",
105   { data_type => "longblob", is_nullable => 0 },
106   "date_uploaded",
107   {
108     data_type => "timestamp",
109     datetime_undef_if_invalid => 1,
110     default_value => \"current_timestamp",
111     is_nullable => 0,
112   },
113 );
114
115 =head1 PRIMARY KEY
116
117 =over 4
118
119 =item * L</file_id>
120
121 =back
122
123 =cut
124
125 __PACKAGE__->set_primary_key("file_id");
126
127
128 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
129 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pMegXaTV3y1vCURBL1Zsdg
130
131
132 # You can replace this text with custom code or comments, and it will be preserved on regeneration
133 1;