kivitendo/SL/DB/MetaSetup/FileVersion.pm @ 7b1da9c3
26d55f63 | Jan Büren | # This file has been auto-generated. Do not modify it; it will be overwritten
|
||
# by rose_auto_create_model.pl automatically.
|
||||
package SL::DB::FileVersion;
|
||||
use strict;
|
||||
use parent qw(SL::DB::Object);
|
||||
__PACKAGE__->meta->table('file_versions');
|
||||
__PACKAGE__->meta->columns(
|
||||
backend => { type => 'text', not_null => 1 },
|
||||
doc_path => { type => 'text', not_null => 1 },
|
||||
file_id => { type => 'integer', not_null => 1 },
|
||||
file_location => { type => 'text', not_null => 1 },
|
||||
2dd0ba1d | Bernd Bleßmann | guid => { type => 'text', not_null => 1 },
|
||
26d55f63 | Jan Büren | itime => { type => 'timestamp', default => 'now()', not_null => 1 },
|
||
mtime => { type => 'timestamp' },
|
||||
version => { type => 'integer', not_null => 1 },
|
||||
);
|
||||
2dd0ba1d | Bernd Bleßmann | __PACKAGE__->meta->primary_key_columns([ 'guid' ]);
|
||
26d55f63 | Jan Büren | |||
__PACKAGE__->meta->allow_inline_column_values(1);
|
||||
__PACKAGE__->meta->foreign_keys(
|
||||
file => {
|
||||
class => 'SL::DB::File',
|
||||
key_columns => { file_id => 'id' },
|
||||
},
|
||||
);
|
||||
1;
|
||||
;
|