Bug 22521: DBRev 18.12.00.055
[koha.git] / Koha / Schema / Result / UploadedFile.pm
1 use utf8;
2 package Koha::Schema::Result::UploadedFile;
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::UploadedFile
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<uploaded_files>
19
20 =cut
21
22 __PACKAGE__->table("uploaded_files");
23
24 =head1 ACCESSORS
25
26 =head2 id
27
28   data_type: 'integer'
29   is_auto_increment: 1
30   is_nullable: 0
31
32 =head2 hashvalue
33
34   data_type: 'char'
35   is_nullable: 0
36   size: 40
37
38 =head2 filename
39
40   data_type: 'mediumtext'
41   is_nullable: 0
42
43 =head2 dir
44
45   data_type: 'mediumtext'
46   is_nullable: 0
47
48 =head2 filesize
49
50   data_type: 'integer'
51   is_nullable: 1
52
53 =head2 dtcreated
54
55   data_type: 'timestamp'
56   datetime_undef_if_invalid: 1
57   default_value: current_timestamp
58   is_nullable: 0
59
60 =head2 uploadcategorycode
61
62   data_type: 'text'
63   is_nullable: 1
64
65 =head2 owner
66
67   data_type: 'integer'
68   is_nullable: 1
69
70 =head2 public
71
72   data_type: 'tinyint'
73   is_nullable: 1
74
75 =head2 permanent
76
77   data_type: 'tinyint'
78   is_nullable: 1
79
80 =cut
81
82 __PACKAGE__->add_columns(
83   "id",
84   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
85   "hashvalue",
86   { data_type => "char", is_nullable => 0, size => 40 },
87   "filename",
88   { data_type => "mediumtext", is_nullable => 0 },
89   "dir",
90   { data_type => "mediumtext", is_nullable => 0 },
91   "filesize",
92   { data_type => "integer", is_nullable => 1 },
93   "dtcreated",
94   {
95     data_type => "timestamp",
96     datetime_undef_if_invalid => 1,
97     default_value => \"current_timestamp",
98     is_nullable => 0,
99   },
100   "uploadcategorycode",
101   { data_type => "text", is_nullable => 1 },
102   "owner",
103   { data_type => "integer", is_nullable => 1 },
104   "public",
105   { data_type => "tinyint", is_nullable => 1 },
106   "permanent",
107   { data_type => "tinyint", is_nullable => 1 },
108 );
109
110 =head1 PRIMARY KEY
111
112 =over 4
113
114 =item * L</id>
115
116 =back
117
118 =cut
119
120 __PACKAGE__->set_primary_key("id");
121
122
123 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:54
124 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kJUbIULQMBo3t51HvWC8cg
125
126
127 # You can replace this text with custom code or comments, and it will be preserved on regeneration
128 1;