bb37ba6e3fc15fc64592104784f28ae92cd51820
[kivitendo-erp.git] / SL / DB / MetaSetup / RequirementSpec.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::RequirementSpec;
4
5 use strict;
6
7 use base qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('requirement_specs');
10
11 __PACKAGE__->meta->columns(
12   customer_id             => { type => 'integer' },
13   hourly_rate             => { type => 'numeric', default => '0', not_null => 1, precision => 2, scale => 8 },
14   id                      => { type => 'serial', not_null => 1 },
15   is_template             => { type => 'boolean', default => 'false' },
16   itime                   => { type => 'timestamp', default => 'now()' },
17   mtime                   => { type => 'timestamp' },
18   previous_fb_number      => { type => 'integer', not_null => 1 },
19   previous_section_number => { type => 'integer', not_null => 1 },
20   project_id              => { type => 'integer' },
21   status_id               => { type => 'integer' },
22   time_estimation         => { type => 'numeric', default => '0', not_null => 1, precision => 2, scale => 12 },
23   title                   => { type => 'text', not_null => 1 },
24   type_id                 => { type => 'integer' },
25   working_copy_id         => { type => 'integer' },
26 );
27
28 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
29
30 __PACKAGE__->meta->allow_inline_column_values(1);
31
32 __PACKAGE__->meta->foreign_keys(
33   customer => {
34     class       => 'SL::DB::Customer',
35     key_columns => { customer_id => 'id' },
36   },
37
38   project => {
39     class       => 'SL::DB::Project',
40     key_columns => { project_id => 'id' },
41   },
42
43   status => {
44     class       => 'SL::DB::RequirementSpecStatus',
45     key_columns => { status_id => 'id' },
46   },
47
48   type => {
49     class       => 'SL::DB::RequirementSpecType',
50     key_columns => { type_id => 'id' },
51   },
52
53   working_copy => {
54     class       => 'SL::DB::RequirementSpec',
55     key_columns => { working_copy_id => 'id' },
56   },
57 );
58
59 1;
60 ;