use parent statt use base in MetaSetup
[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 parent qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('requirement_specs');
10
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' },
27 );
28
29 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
30
31 __PACKAGE__->meta->allow_inline_column_values(1);
32
33 __PACKAGE__->meta->foreign_keys(
34   customer => {
35     class       => 'SL::DB::Customer',
36     key_columns => { customer_id => 'id' },
37   },
38
39   project => {
40     class       => 'SL::DB::Project',
41     key_columns => { project_id => 'id' },
42   },
43
44   status => {
45     class       => 'SL::DB::RequirementSpecStatus',
46     key_columns => { status_id => 'id' },
47   },
48
49   type => {
50     class       => 'SL::DB::RequirementSpecType',
51     key_columns => { type_id => 'id' },
52   },
53
54   working_copy => {
55     class       => 'SL::DB::RequirementSpec',
56     key_columns => { working_copy_id => 'id' },
57   },
58 );
59
60 1;
61 ;