X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=SL%2FDB%2FMetaSetup%2FTimeRecording.pm;h=a5001312da37b5a431026034e691f25bd0d36754;hb=a0b82b1e7a9fab32f162ebee5031913b2f44ed5a;hp=4fca65738fa07b379113565ee6498437d67fb727;hpb=ae4cec429306e2f1372d9cbd7a2ac40ecb977869;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/TimeRecording.pm b/SL/DB/MetaSetup/TimeRecording.pm index 4fca65738..a5001312d 100644 --- a/SL/DB/MetaSetup/TimeRecording.pm +++ b/SL/DB/MetaSetup/TimeRecording.pm @@ -11,17 +11,20 @@ __PACKAGE__->meta->table('time_recordings'); __PACKAGE__->meta->columns( booked => { type => 'boolean', default => 'false' }, customer_id => { type => 'integer', not_null => 1 }, + date => { type => 'date', not_null => 1 }, description => { type => 'text', not_null => 1 }, + duration => { type => 'integer' }, employee_id => { type => 'integer', not_null => 1 }, end_time => { type => 'timestamp' }, 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' }, staff_member_id => { type => 'integer', not_null => 1 }, - start_time => { type => 'timestamp', not_null => 1 }, + start_time => { type => 'timestamp' }, ); __PACKAGE__->meta->primary_key_columns([ 'id' ]); @@ -39,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' },