epic-s6ts
[kivitendo-erp.git] / SL / DB / MetaSetup / BankTransactionAccTrans.pm
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;
4
5 use strict;
6
7 use parent qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('bank_transaction_acc_trans');
10
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' },
19 );
20
21 __PACKAGE__->meta->primary_key_columns([ 'bank_transaction_id', 'acc_trans_id' ]);
22
23 __PACKAGE__->meta->allow_inline_column_values(1);
24
25 __PACKAGE__->meta->foreign_keys(
26   acc_transaction => {
27     class       => 'SL::DB::AccTransaction',
28     key_columns => { acc_trans_id => 'acc_trans_id' },
29   },
30
31   ap => {
32     class       => 'SL::DB::PurchaseInvoice',
33     key_columns => { ap_id => 'id' },
34   },
35
36   ar => {
37     class       => 'SL::DB::Invoice',
38     key_columns => { ar_id => 'id' },
39   },
40
41   bank_transaction => {
42     class       => 'SL::DB::BankTransaction',
43     key_columns => { bank_transaction_id => 'id' },
44   },
45
46   gl => {
47     class       => 'SL::DB::GLTransaction',
48     key_columns => { gl_id => 'id' },
49   },
50 );
51
52 1;
53 ;