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   id                  => { type => 'serial', not_null => 1 },
 
  18   itime               => { type => 'timestamp', default => 'now()' },
 
  19   mtime               => { type => 'timestamp' },
 
  22 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
 
  24 __PACKAGE__->meta->allow_inline_column_values(1);
 
  26 __PACKAGE__->meta->foreign_keys(
 
  28     class       => 'SL::DB::AccTransaction',
 
  29     key_columns => { acc_trans_id => 'acc_trans_id' },
 
  33     class       => 'SL::DB::PurchaseInvoice',
 
  34     key_columns => { ap_id => 'id' },
 
  38     class       => 'SL::DB::Invoice',
 
  39     key_columns => { ar_id => 'id' },
 
  43     class       => 'SL::DB::BankTransaction',
 
  44     key_columns => { bank_transaction_id => 'id' },
 
  48     class       => 'SL::DB::GLTransaction',
 
  49     key_columns => { gl_id => 'id' },