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::BankTransaction;
7 use base qw(SL::DB::Object);
9 __PACKAGE__->meta->table('bank_transactions');
11 __PACKAGE__->meta->columns(
12 amount => { type => 'numeric', not_null => 1, precision => 5, scale => 15 },
13 cleared => { type => 'boolean', default => 'false', not_null => 1 },
14 currency_id => { type => 'integer' },
15 id => { type => 'serial', not_null => 1 },
16 invoice_amount => { type => 'numeric', default => '0', precision => 5, scale => 15 },
17 local_bank_account_id => { type => 'integer', not_null => 1 },
18 purpose => { type => 'text' },
19 remote_account_number => { type => 'text' },
20 remote_bank_code => { type => 'text' },
21 remote_name => { type => 'text' },
22 remote_name_1 => { type => 'text' },
23 transaction_id => { type => 'integer' },
24 transdate => { type => 'date', not_null => 1 },
25 valutadate => { type => 'date', not_null => 1 },
28 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
30 __PACKAGE__->meta->foreign_keys(
32 class => 'SL::DB::Currency',
33 key_columns => { currency_id => 'id' },
36 local_bank_account => {
37 class => 'SL::DB::BankAccount',
38 key_columns => { local_bank_account_id => 'id' },