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::GLTransaction;
7 use base qw(SL::DB::Object);
9 __PACKAGE__->meta->table('gl');
11 __PACKAGE__->meta->columns(
12 cb_transaction => { type => 'boolean' },
13 department_id => { type => 'integer' },
14 description => { type => 'text' },
15 employee_id => { type => 'integer' },
16 gldate => { type => 'date', default => 'now' },
17 id => { type => 'integer', not_null => 1, sequence => 'glid' },
18 itime => { type => 'timestamp', default => 'now()' },
19 mtime => { type => 'timestamp' },
20 notes => { type => 'text' },
21 ob_transaction => { type => 'boolean' },
22 reference => { type => 'text' },
23 storno => { type => 'boolean', default => 'false' },
24 storno_id => { type => 'integer' },
25 taxincluded => { type => 'boolean' },
26 transdate => { type => 'date', default => 'now' },
27 type => { type => 'text' },
30 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
32 __PACKAGE__->meta->allow_inline_column_values(1);
34 __PACKAGE__->meta->foreign_keys(
36 class => 'SL::DB::Department',
37 key_columns => { department_id => 'id' },
41 class => 'SL::DB::Employee',
42 key_columns => { employee_id => 'id' },
46 class => 'SL::DB::GLTransaction',
47 key_columns => { storno_id => 'id' },