6428c997ea98d861623fb63859216396fff85678
[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   id                  => { type => 'serial', not_null => 1 },
18   itime               => { type => 'timestamp', default => 'now()' },
19   mtime               => { type => 'timestamp' },
20 );
21
22 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
23
24 __PACKAGE__->meta->allow_inline_column_values(1);
25
26 __PACKAGE__->meta->foreign_keys(
27   acc_transaction => {
28     class       => 'SL::DB::AccTransaction',
29     key_columns => { acc_trans_id => 'acc_trans_id' },
30   },
31
32   ap => {
33     class       => 'SL::DB::PurchaseInvoice',
34     key_columns => { ap_id => 'id' },
35   },
36
37   ar => {
38     class       => 'SL::DB::Invoice',
39     key_columns => { ar_id => 'id' },
40   },
41
42   bank_transaction => {
43     class       => 'SL::DB::BankTransaction',
44     key_columns => { bank_transaction_id => 'id' },
45   },
46
47   gl => {
48     class       => 'SL::DB::GLTransaction',
49     key_columns => { gl_id => 'id' },
50   },
51 );
52
53 1;
54 ;