20df6763005898887d2de944cd8a05416072fae6
[kivitendo-erp.git] / SL / DB / MetaSetup / ProjectPhase.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::ProjectPhase;
4
5 use strict;
6
7 use base qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('project_phases');
10
11 __PACKAGE__->meta->columns(
12   budget_cost           => { type => 'numeric', default => '0', not_null => 1, precision => 15, scale => 5 },
13   budget_minutes        => { type => 'integer', default => '0', not_null => 1 },
14   description           => { type => 'text', not_null => 1 },
15   end_date              => { type => 'date' },
16   general_cost_per_hour => { type => 'numeric', default => '0', not_null => 1, precision => 15, scale => 5 },
17   general_minutes       => { type => 'integer', default => '0', not_null => 1 },
18   id                    => { type => 'serial', not_null => 1 },
19   itime                 => { type => 'timestamp', default => 'now()' },
20   mtime                 => { type => 'timestamp' },
21   name                  => { type => 'text', not_null => 1 },
22   project_id            => { type => 'integer' },
23   start_date            => { type => 'date' },
24 );
25
26 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
27
28 __PACKAGE__->meta->allow_inline_column_values(1);
29
30 __PACKAGE__->meta->foreign_keys(
31   project => {
32     class       => 'SL::DB::Project',
33     key_columns => { project_id => 'id' },
34   },
35 );
36
37 1;
38 ;