kivitendo/SL/DB/MetaSetup/ProjectPhase.pm @ 7b1da9c3
1561b7f3 | Moritz Bunkus | # This file has been auto-generated. Do not modify it; it will be overwritten
|
||
# by rose_auto_create_model.pl automatically.
|
||||
package SL::DB::ProjectPhase;
|
||||
use strict;
|
||||
2ea07c13 | Sven Schöling | use parent qw(SL::DB::Object);
|
||
1561b7f3 | Moritz Bunkus | |||
__PACKAGE__->meta->table('project_phases');
|
||||
__PACKAGE__->meta->columns(
|
||||
7e0130b0 | Moritz Bunkus | budget_cost => { type => 'numeric', default => '0', not_null => 1, precision => 15, scale => 5 },
|
||
1561b7f3 | Moritz Bunkus | budget_minutes => { type => 'integer', default => '0', not_null => 1 },
|
||
description => { type => 'text', not_null => 1 },
|
||||
end_date => { type => 'date' },
|
||||
7e0130b0 | Moritz Bunkus | general_cost_per_hour => { type => 'numeric', default => '0', not_null => 1, precision => 15, scale => 5 },
|
||
1561b7f3 | Moritz Bunkus | general_minutes => { type => 'integer', default => '0', not_null => 1 },
|
||
id => { type => 'serial', not_null => 1 },
|
||||
57d97e2b | Moritz Bunkus | itime => { type => 'timestamp', default => 'now()' },
|
||
1561b7f3 | Moritz Bunkus | mtime => { type => 'timestamp' },
|
||
name => { type => 'text', not_null => 1 },
|
||||
project_id => { type => 'integer' },
|
||||
start_date => { type => 'date' },
|
||||
);
|
||||
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
|
||||
57d97e2b | Moritz Bunkus | __PACKAGE__->meta->allow_inline_column_values(1);
|
||
1561b7f3 | Moritz Bunkus | __PACKAGE__->meta->foreign_keys(
|
||
project => {
|
||||
class => 'SL::DB::Project',
|
||||
key_columns => { project_id => 'id' },
|
||||
},
|
||||
);
|
||||
1;
|
||||
;
|