Dateimanagement: Basiserweiterung
[kivitendo-erp.git] / SL / DB / MetaSetup / File.pm
1 # This file has been auto-generated. Do not modify it; it will be overwritten
2 # by rose_auto_create_model.pl automatically.
3 package SL::DB::File;
4
5 use strict;
6
7 use parent qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('files');
10
11 __PACKAGE__->meta->columns(
12   backend      => { type => 'text' },
13   backend_data => { type => 'text' },
14   description  => { type => 'text' },
15   file_name    => { type => 'text', not_null => 1 },
16   file_type    => { type => 'text', not_null => 1 },
17   id           => { type => 'serial', not_null => 1 },
18   itime        => { type => 'timestamp', default => 'now()' },
19   mime_type    => { type => 'text', not_null => 1 },
20   mtime        => { type => 'timestamp' },
21   object_id    => { type => 'integer', not_null => 1 },
22   object_type  => { type => 'text', not_null => 1 },
23   source       => { type => 'text', not_null => 1 },
24   title        => { type => 'varchar', length => 45 },
25 );
26
27 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
28
29 __PACKAGE__->meta->allow_inline_column_values(1);
30
31 1;
32 ;