Pflichtenheftitems: Typen direkt in Tabelle speichern
[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->setup(
10   table   => 'requirement_spec_items',
11
12   columns => [
13     id                   => { type => 'serial', not_null => 1 },
14     requirement_spec_id  => { type => 'integer', not_null => 1 },
15     item_type            => { type => 'text', not_null => 1 },
16     parent_id            => { type => 'integer' },
17     position             => { type => 'integer', not_null => 1 },
18     fb_number            => { type => 'text', not_null => 1 },
19     title                => { type => 'text' },
20     description          => { type => 'text' },
21     complexity_id        => { type => 'integer' },
22     risk_id              => { type => 'integer' },
23     time_estimation      => { type => 'numeric', default => '0', not_null => 1, precision => 2, scale => 12 },
24     net_sum              => { type => 'numeric', default => '0', not_null => 1, precision => 2, scale => 12 },
25     is_flagged           => { type => 'boolean', default => 'false', not_null => 1 },
26     acceptance_status_id => { type => 'integer' },
27     acceptance_text      => { type => 'text' },
28     itime                => { type => 'timestamp', default => 'now()', not_null => 1 },
29     mtime                => { type => 'timestamp' },
30   ],
31
32   primary_key_columns => [ 'id' ],
33
34   allow_inline_column_values => 1,
35
36   foreign_keys => [
37     acceptance_status => {
38       class       => 'SL::DB::RequirementSpecAcceptanceStatus',
39       key_columns => { acceptance_status_id => 'id' },
40     },
41
42     complexity => {
43       class       => 'SL::DB::RequirementSpecComplexity',
44       key_columns => { complexity_id => 'id' },
45     },
46
47     parent => {
48       class       => 'SL::DB::RequirementSpecItem',
49       key_columns => { parent_id => 'id' },
50     },
51
52     requirement_spec => {
53       class       => 'SL::DB::RequirementSpec',
54       key_columns => { requirement_spec_id => 'id' },
55     },
56
57     risk => {
58       class       => 'SL::DB::RequirementSpecRisk',
59       key_columns => { risk_id => 'id' },
60     },
61   ],
62 );
63
64 1;
65 ;