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;
 
   7 use base qw(SL::DB::Object);
 
   9 __PACKAGE__->meta->setup(
 
  10   table   => 'requirement_spec_items',
 
  13     id                   => { type => 'serial', not_null => 1 },
 
  14     requirement_spec_id  => { type => 'integer', not_null => 1 },
 
  15     parent_id            => { type => 'integer' },
 
  16     position             => { type => 'integer', not_null => 1 },
 
  17     fb_number            => { type => 'text', not_null => 1 },
 
  18     title                => { type => 'text' },
 
  19     description          => { type => 'text' },
 
  20     complexity_id        => { type => 'integer' },
 
  21     risk_id              => { type => 'integer' },
 
  22     time_estimation      => { type => 'numeric', default => '0', not_null => 1, precision => 2, scale => 12 },
 
  23     net_sum              => { type => 'numeric', default => '0', not_null => 1, precision => 2, scale => 12 },
 
  24     is_flagged           => { type => 'boolean', default => 'false', not_null => 1 },
 
  25     acceptance_status_id => { type => 'integer' },
 
  26     acceptance_text      => { type => 'text' },
 
  27     itime                => { type => 'timestamp', default => 'now()', not_null => 1 },
 
  28     mtime                => { type => 'timestamp' },
 
  31   primary_key_columns => [ 'id' ],
 
  33   allow_inline_column_values => 1,
 
  36     acceptance_status => {
 
  37       class       => 'SL::DB::RequirementSpecAcceptanceStatus',
 
  38       key_columns => { acceptance_status_id => 'id' },
 
  42       class       => 'SL::DB::RequirementSpecComplexity',
 
  43       key_columns => { complexity_id => 'id' },
 
  47       class       => 'SL::DB::RequirementSpecItem',
 
  48       key_columns => { parent_id => 'id' },
 
  54       map_class => 'SL::DB::RequirementSpecDependency',
 
  55       map_from  => 'depending_item',
 
  56       map_to    => 'depended_item',
 
  57       type      => 'many to many',
 
  61       map_class => 'SL::DB::RequirementSpecDependency',
 
  62       map_from  => 'depended_item',
 
  63       map_to    => 'depending_item',
 
  64       type      => 'many to many',