1 # This file has been auto-generated. Do not modify it; it will be overwritten
2 # by rose_auto_create_model.pl automatically.
3 package SL::DB::TimeRecording;
7 use parent qw(SL::DB::Object);
9 __PACKAGE__->meta->table('time_recordings');
11 __PACKAGE__->meta->columns(
12 booked => { type => 'boolean', default => 'false' },
13 customer_id => { type => 'integer', not_null => 1 },
14 date => { type => 'date', not_null => 1 },
15 description => { type => 'text', not_null => 1 },
16 duration => { type => 'integer' },
17 employee_id => { type => 'integer', not_null => 1 },
18 end_time => { type => 'timestamp' },
19 id => { type => 'serial', not_null => 1 },
20 itime => { type => 'timestamp', default => 'now()', not_null => 1 },
21 mtime => { type => 'timestamp', default => 'now()', not_null => 1 },
22 order_id => { type => 'integer' },
23 part_id => { type => 'integer' },
24 payroll => { type => 'boolean', default => 'false' },
25 project_id => { type => 'integer' },
26 staff_member_id => { type => 'integer', not_null => 1 },
27 start_time => { type => 'timestamp' },
30 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
32 __PACKAGE__->meta->allow_inline_column_values(1);
34 __PACKAGE__->meta->foreign_keys(
36 class => 'SL::DB::Customer',
37 key_columns => { customer_id => 'id' },
41 class => 'SL::DB::Employee',
42 key_columns => { employee_id => 'id' },
46 class => 'SL::DB::Order',
47 key_columns => { order_id => 'id' },
51 class => 'SL::DB::Part',
52 key_columns => { part_id => 'id' },
56 class => 'SL::DB::Project',
57 key_columns => { project_id => 'id' },
61 class => 'SL::DB::Employee',
62 key_columns => { staff_member_id => 'id' },