X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FDB%2FMetaSetup%2FTimeRecording.pm;h=a5001312da37b5a431026034e691f25bd0d36754;hb=59e1dff133e4c609b910e011ad7a37bdb4135f3a;hp=0ab79a55141d63d672fc718aba06156388ecc704;hpb=22f2c3e86aeea63b9e25b6ba249ca9062ae337f8;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/TimeRecording.pm b/SL/DB/MetaSetup/TimeRecording.pm index 0ab79a551..a5001312d 100644 --- a/SL/DB/MetaSetup/TimeRecording.pm +++ b/SL/DB/MetaSetup/TimeRecording.pm @@ -19,6 +19,7 @@ __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 }, + order_id => { type => 'integer' }, part_id => { type => 'integer' }, payroll => { type => 'boolean', default => 'false' }, project_id => { type => 'integer' }, @@ -41,6 +42,11 @@ __PACKAGE__->meta->foreign_keys( key_columns => { employee_id => 'id' }, }, + order => { + class => 'SL::DB::Order', + key_columns => { order_id => 'id' }, + }, + part => { class => 'SL::DB::Part', key_columns => { part_id => 'id' },