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 parent qw(SL::DB::Object);
9 __PACKAGE__->meta->table('requirement_specs');
11 __PACKAGE__->meta->columns(
12 customer_id => { type => 'integer' },
13 hourly_rate => { type => 'numeric', default => '0', not_null => 1, precision => 8, scale => 2 },
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_picture_number => { type => 'integer', default => '0', not_null => 1 },
20 previous_section_number => { type => 'integer', not_null => 1 },
21 project_id => { type => 'integer' },
22 status_id => { type => 'integer' },
23 time_estimation => { type => 'numeric', default => '0', not_null => 1, precision => 12, scale => 2 },
24 title => { type => 'text', not_null => 1 },
25 type_id => { type => 'integer', not_null => 1 },
26 working_copy_id => { type => 'integer' },
29 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
31 __PACKAGE__->meta->allow_inline_column_values(1);
33 __PACKAGE__->meta->foreign_keys(
35 class => 'SL::DB::Customer',
36 key_columns => { customer_id => 'id' },
40 class => 'SL::DB::Project',
41 key_columns => { project_id => 'id' },
45 class => 'SL::DB::RequirementSpecStatus',
46 key_columns => { status_id => 'id' },
50 class => 'SL::DB::RequirementSpecType',
51 key_columns => { type_id => 'id' },
55 class => 'SL::DB::RequirementSpec',
56 key_columns => { working_copy_id => 'id' },