2 package Koha::Schema::Result::MiscFile;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::MiscFile
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<misc_files>
22 __PACKAGE__->table("misc_files");
32 unique id for the file record
40 usually table name, or arbitrary unique tag
47 record id from the table this file is associated to
65 =head2 file_description
71 description given to the file
82 data_type: 'timestamp'
83 datetime_undef_if_invalid: 1
84 default_value: current_timestamp
87 date and time the file was added
91 __PACKAGE__->add_columns(
93 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
95 { data_type => "varchar", is_nullable => 0, size => 255 },
97 { data_type => "integer", is_nullable => 0 },
99 { data_type => "varchar", is_nullable => 0, size => 255 },
101 { data_type => "varchar", is_nullable => 0, size => 255 },
103 { data_type => "varchar", is_nullable => 1, size => 255 },
105 { data_type => "longblob", is_nullable => 0 },
108 data_type => "timestamp",
109 datetime_undef_if_invalid => 1,
110 default_value => \"current_timestamp",
125 __PACKAGE__->set_primary_key("file_id");
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
132 # You can replace this text with custom code or comments, and it will be preserved on regeneration