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::AccTransaction;
7 use parent qw(SL::DB::Object);
9 __PACKAGE__->meta->table('acc_trans');
11 __PACKAGE__->meta->columns(
12 acc_trans_id => { type => 'bigint', not_null => 1, sequence => 'acc_trans_id_seq' },
13 amount => { type => 'numeric', precision => 15, scale => 5 },
14 cb_transaction => { type => 'boolean', default => 'false', not_null => 1 },
15 chart_id => { type => 'integer', not_null => 1 },
16 chart_link => { type => 'text', not_null => 1 },
17 cleared => { type => 'boolean', default => 'false', not_null => 1 },
18 fx_transaction => { type => 'boolean', default => 'false', not_null => 1 },
19 gldate => { type => 'date', default => 'now' },
20 itime => { type => 'timestamp', default => 'now()' },
21 memo => { type => 'text' },
22 mtime => { type => 'timestamp' },
23 ob_transaction => { type => 'boolean', default => 'false', not_null => 1 },
24 project_id => { type => 'integer' },
25 source => { type => 'text' },
26 tax_id => { type => 'integer', not_null => 1 },
27 taxkey => { type => 'integer' },
28 trans_id => { type => 'integer', not_null => 1 },
29 transdate => { type => 'date', default => 'now' },
32 __PACKAGE__->meta->primary_key_columns([ 'acc_trans_id' ]);
34 __PACKAGE__->meta->allow_inline_column_values(1);
36 __PACKAGE__->meta->foreign_keys(
38 class => 'SL::DB::Chart',
39 key_columns => { chart_id => 'id' },
43 class => 'SL::DB::Project',
44 key_columns => { project_id => 'id' },
48 class => 'SL::DB::Tax',
49 key_columns => { tax_id => 'id' },