]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/DB/MetaSetup/TimeRecording.pm
Zeiterfassung: Auswählbare Artikel: DB-Upgrade und Rose
[kivitendo-erp.git] / SL / DB / MetaSetup / TimeRecording.pm
index cb3bdd50a1b607abb85390834d08a2e1bd9f7ca0..4fca65738fa07b379113565ee6498437d67fb727 100644 (file)
@@ -17,11 +17,11 @@ __PACKAGE__->meta->columns(
   id              => { type => 'serial', not_null => 1 },
   itime           => { type => 'timestamp', default => 'now()', not_null => 1 },
   mtime           => { type => 'timestamp', default => 'now()', not_null => 1 },
+  part_id         => { type => 'integer' },
   payroll         => { type => 'boolean', default => 'false' },
   project_id      => { type => 'integer' },
   staff_member_id => { type => 'integer', not_null => 1 },
   start_time      => { type => 'timestamp', not_null => 1 },
-  type_id         => { type => 'integer' },
 );
 
 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
@@ -39,6 +39,11 @@ __PACKAGE__->meta->foreign_keys(
     key_columns => { employee_id => 'id' },
   },
 
+  part => {
+    class       => 'SL::DB::Part',
+    key_columns => { part_id => 'id' },
+  },
+
   project => {
     class       => 'SL::DB::Project',
     key_columns => { project_id => 'id' },
@@ -48,11 +53,6 @@ __PACKAGE__->meta->foreign_keys(
     class       => 'SL::DB::Employee',
     key_columns => { staff_member_id => 'id' },
   },
-
-  type => {
-    class       => 'SL::DB::TimeRecordingType',
-    key_columns => { type_id => 'id' },
-  },
 );
 
 1;