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::BankTransactionAccTrans;
7 use parent qw(SL::DB::Object);
9 __PACKAGE__->meta->table('bank_transaction_acc_trans');
11 __PACKAGE__->meta->columns(
12 acc_trans_id => { type => 'bigint', not_null => 1 },
13 ap_id => { type => 'integer' },
14 ar_id => { type => 'integer' },
15 bank_transaction_id => { type => 'integer', not_null => 1 },
16 gl_id => { type => 'integer' },
17 itime => { type => 'timestamp', default => 'now()' },
18 mtime => { type => 'timestamp' },
21 __PACKAGE__->meta->primary_key_columns([ 'bank_transaction_id', 'acc_trans_id' ]);
23 __PACKAGE__->meta->allow_inline_column_values(1);
25 __PACKAGE__->meta->foreign_keys(
27 class => 'SL::DB::AccTransaction',
28 key_columns => { acc_trans_id => 'acc_trans_id' },
32 class => 'SL::DB::PurchaseInvoice',
33 key_columns => { ap_id => 'id' },
37 class => 'SL::DB::Invoice',
38 key_columns => { ar_id => 'id' },
42 class => 'SL::DB::BankTransaction',
43 key_columns => { bank_transaction_id => 'id' },
47 class => 'SL::DB::GLTransaction',
48 key_columns => { gl_id => 'id' },