time_estimation in Sections richtig aktualisieren & in Pflichtenheften einführen
[kivitendo-erp.git] / SL / DB / MetaSetup / RequirementSpecItem.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::RequirementSpecItem;
4
5 use strict;
6
7 use base qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('requirement_spec_items');
10
11 __PACKAGE__->meta->columns(
12   acceptance_status_id => { type => 'integer' },
13   acceptance_text      => { type => 'text' },
14   complexity_id        => { type => 'integer' },
15   description          => { type => 'text' },
16   fb_number            => { type => 'text', not_null => 1 },
17   id                   => { type => 'serial', not_null => 1 },
18   is_flagged           => { type => 'boolean', default => 'false', not_null => 1 },
19   item_type            => { type => 'text', not_null => 1 },
20   itime                => { type => 'timestamp', default => 'now()', not_null => 1 },
21   mtime                => { type => 'timestamp' },
22   parent_id            => { type => 'integer' },
23   position             => { type => 'integer', not_null => 1 },
24   requirement_spec_id  => { type => 'integer', not_null => 1 },
25   risk_id              => { type => 'integer' },
26   time_estimation      => { type => 'numeric', default => '0', not_null => 1, precision => 2, scale => 12 },
27   title                => { type => 'text' },
28 );
29
30 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
31
32 __PACKAGE__->meta->allow_inline_column_values(1);
33
34 __PACKAGE__->meta->foreign_keys(
35   acceptance_status => {
36     class       => 'SL::DB::RequirementSpecAcceptanceStatus',
37     key_columns => { acceptance_status_id => 'id' },
38   },
39
40   complexity => {
41     class       => 'SL::DB::RequirementSpecComplexity',
42     key_columns => { complexity_id => 'id' },
43   },
44
45   parent => {
46     class       => 'SL::DB::RequirementSpecItem',
47     key_columns => { parent_id => 'id' },
48   },
49
50   requirement_spec => {
51     class       => 'SL::DB::RequirementSpec',
52     key_columns => { requirement_spec_id => 'id' },
53   },
54
55   risk => {
56     class       => 'SL::DB::RequirementSpecRisk',
57     key_columns => { risk_id => 'id' },
58   },
59 );
60
61 1;
62 ;