Pflichtenhefte: Datenbankschema und Rose-DB-Models
[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->setup(
10   table   => 'requirement_specs',
11
12   columns => [
13     id                      => { type => 'serial', not_null => 1 },
14     type_id                 => { type => 'integer', not_null => 1 },
15     status_id               => { type => 'integer', not_null => 1 },
16     version_id              => { type => 'integer' },
17     customer_id             => { type => 'integer', not_null => 1 },
18     project_id              => { type => 'integer' },
19     title                   => { type => 'text', not_null => 1 },
20     hourly_rate             => { type => 'numeric', default => '0', not_null => 1, precision => 2, scale => 8 },
21     net_sum                 => { type => 'numeric', default => '0', not_null => 1, precision => 2, scale => 12 },
22     working_copy_id         => { type => 'integer' },
23     previous_section_number => { type => 'integer', not_null => 1 },
24     previous_fb_number      => { type => 'integer', not_null => 1 },
25     is_template             => { type => 'boolean', default => 'false' },
26     itime                   => { type => 'timestamp', default => 'now()' },
27     mtime                   => { type => 'timestamp' },
28   ],
29
30   primary_key_columns => [ 'id' ],
31
32   allow_inline_column_values => 1,
33
34   foreign_keys => [
35     customer => {
36       class       => 'SL::DB::Customer',
37       key_columns => { customer_id => 'id' },
38     },
39
40     project => {
41       class       => 'SL::DB::Project',
42       key_columns => { project_id => 'id' },
43     },
44
45     status => {
46       class       => 'SL::DB::RequirementSpecStatus',
47       key_columns => { status_id => 'id' },
48     },
49
50     type => {
51       class       => 'SL::DB::RequirementSpecType',
52       key_columns => { type_id => 'id' },
53     },
54
55     version => {
56       class       => 'SL::DB::RequirementSpecVersion',
57       key_columns => { version_id => 'id' },
58     },
59
60     working_copy => {
61       class       => 'SL::DB::RequirementSpec',
62       key_columns => { working_copy_id => 'id' },
63     },
64   ],
65 );
66
67 1;
68 ;