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::RequirementSpecPart;
7 use parent qw(SL::DB::Object);
9 __PACKAGE__->meta->table('requirement_spec_parts');
11 __PACKAGE__->meta->columns(
12 description => { type => 'text', not_null => 1 },
13 id => { type => 'serial', not_null => 1 },
14 part_id => { type => 'integer', not_null => 1 },
15 position => { type => 'integer', not_null => 1 },
16 qty => { type => 'numeric', not_null => 1, precision => 15, scale => 5 },
17 requirement_spec_id => { type => 'integer', not_null => 1 },
18 unit_id => { type => 'integer', not_null => 1 },
21 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
23 __PACKAGE__->meta->foreign_keys(
25 class => 'SL::DB::Part',
26 key_columns => { part_id => 'id' },
30 class => 'SL::DB::RequirementSpec',
31 key_columns => { requirement_spec_id => 'id' },
35 class => 'SL::DB::Unit',
36 key_columns => { unit_id => 'id' },