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::FileVersion;
7 use parent qw(SL::DB::Object);
9 __PACKAGE__->meta->table('file_versions');
11 __PACKAGE__->meta->columns(
12 backend => { type => 'text', not_null => 1 },
13 doc_path => { type => 'text', not_null => 1 },
14 file_id => { type => 'integer', not_null => 1 },
15 file_location => { type => 'text', not_null => 1 },
16 guid => { type => 'text', not_null => 1 },
17 itime => { type => 'timestamp', default => 'now()', not_null => 1 },
18 mtime => { type => 'timestamp' },
19 version => { type => 'integer', not_null => 1 },
22 __PACKAGE__->meta->primary_key_columns([ 'guid' ]);
24 __PACKAGE__->meta->allow_inline_column_values(1);
26 __PACKAGE__->meta->foreign_keys(
28 class => 'SL::DB::File',
29 key_columns => { file_id => 'id' },