kivitendo/SL/DB/MetaSetup/Project.pm @ e237d75a
82515b2d | Sven Schöling | # This file has been auto-generated. Do not modify it; it will be overwritten
|
||
# by rose_auto_create_model.pl automatically.
|
||||
package SL::DB::Project;
|
||||
use strict;
|
||||
use base qw(SL::DB::Object);
|
||||
__PACKAGE__->meta->setup(
|
||||
table => 'project',
|
||||
columns => [
|
||||
id => { type => 'integer', not_null => 1, sequence => 'id' },
|
||||
projectnumber => { type => 'text' },
|
||||
description => { type => 'text' },
|
||||
itime => { type => 'timestamp', default => 'now()' },
|
||||
mtime => { type => 'timestamp' },
|
||||
active => { type => 'boolean', default => 'true' },
|
||||
5c5c1eef | Moritz Bunkus | customer_id => { type => 'integer' },
|
||
type => { type => 'text' },
|
||||
valid => { type => 'boolean', default => 'true' },
|
||||
82515b2d | Sven Schöling | ],
|
||
primary_key_columns => [ 'id' ],
|
||||
unique_key => [ 'projectnumber' ],
|
||||
allow_inline_column_values => 1,
|
||||
5c5c1eef | Moritz Bunkus | |||
foreign_keys => [
|
||||
customer => {
|
||||
class => 'SL::DB::Customer',
|
||||
key_columns => { customer_id => 'id' },
|
||||
},
|
||||
],
|
||||
82515b2d | Sven Schöling | );
|
||
1;
|
||||
;
|