]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/DB/MetaSetup/RequirementSpecItem.pm
Pflichtenheft-Angebot/Auftrag: DB-Schema & Models
[kivitendo-erp.git] / SL / DB / MetaSetup / RequirementSpecItem.pm
index dfce581666b49e852d4c5b5f0c85292762afc6d5..63e4eecdac149b2f01cd8744411831161a8a7c0b 100644 (file)
@@ -19,6 +19,7 @@ __PACKAGE__->meta->columns(
   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 },
@@ -42,6 +43,11 @@ __PACKAGE__->meta->foreign_keys(
     key_columns => { complexity_id => 'id' },
   },
 
+  order_part => {
+    class       => 'SL::DB::Part',
+    key_columns => { order_part_id => 'id' },
+  },
+
   parent => {
     class       => 'SL::DB::RequirementSpecItem',
     key_columns => { parent_id => 'id' },