use parent statt use base in MetaSetup
[kivitendo-erp.git] / SL / DB / MetaSetup / RequirementSpecPart.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::RequirementSpecPart;
4
5 use strict;
6
7 use parent qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('requirement_spec_parts');
10
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 },
19 );
20
21 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
22
23 __PACKAGE__->meta->foreign_keys(
24   part => {
25     class       => 'SL::DB::Part',
26     key_columns => { part_id => 'id' },
27   },
28
29   requirement_spec => {
30     class       => 'SL::DB::RequirementSpec',
31     key_columns => { requirement_spec_id => 'id' },
32   },
33
34   unit => {
35     class       => 'SL::DB::Unit',
36     key_columns => { unit_id => 'id' },
37   },
38 );
39
40 1;
41 ;