- columns => [
- id => { type => 'serial', not_null => 1 },
- requirement_spec_id => { type => 'integer', not_null => 1 },
- item_type => { type => 'text', not_null => 1 },
- parent_id => { type => 'integer' },
- position => { type => 'integer', not_null => 1 },
- fb_number => { type => 'text', not_null => 1 },
- title => { type => 'text' },
- description => { type => 'text' },
- complexity_id => { type => 'integer' },
- risk_id => { type => 'integer' },
- time_estimation => { type => 'numeric', default => '0', not_null => 1, precision => 2, scale => 12 },
- net_sum => { type => 'numeric', default => '0', not_null => 1, precision => 2, scale => 12 },
- is_flagged => { type => 'boolean', default => 'false', not_null => 1 },
- acceptance_status_id => { type => 'integer' },
- acceptance_text => { type => 'text' },
- itime => { type => 'timestamp', default => 'now()', not_null => 1 },
- mtime => { type => 'timestamp' },
- ],
+__PACKAGE__->meta->columns(
+ acceptance_status_id => { type => 'integer' },
+ acceptance_text => { type => 'text' },
+ complexity_id => { type => 'integer' },
+ description => { type => 'text' },
+ fb_number => { type => 'text', not_null => 1 },
+ id => { type => 'serial', not_null => 1 },
+ is_flagged => { type => 'boolean', default => 'false', not_null => 1 },
+ item_type => { type => 'text', not_null => 1 },
+ itime => { type => 'timestamp', default => 'now()', not_null => 1 },
+ mtime => { type => 'timestamp' },
+ order_part_id => { type => 'integer' },
+ parent_id => { type => 'integer' },
+ position => { type => 'integer', not_null => 1 },
+ requirement_spec_id => { type => 'integer', not_null => 1 },
+ risk_id => { type => 'integer' },
+ time_estimation => { type => 'numeric', default => '0', not_null => 1, precision => 12, scale => 2 },
+ title => { type => 'text' },
+);
+
+__PACKAGE__->meta->primary_key_columns([ 'id' ]);