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;
7 use base qw(SL::DB::Object);
9 __PACKAGE__->meta->setup(
10 table => 'requirement_specs',
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' },
30 primary_key_columns => [ 'id' ],
32 allow_inline_column_values => 1,
36 class => 'SL::DB::Customer',
37 key_columns => { customer_id => 'id' },
41 class => 'SL::DB::Project',
42 key_columns => { project_id => 'id' },
46 class => 'SL::DB::RequirementSpecStatus',
47 key_columns => { status_id => 'id' },
51 class => 'SL::DB::RequirementSpecType',
52 key_columns => { type_id => 'id' },
56 class => 'SL::DB::RequirementSpecVersion',
57 key_columns => { version_id => 'id' },
61 class => 'SL::DB::RequirementSpec',
62 key_columns => { working_copy_id => 'id' },