]> wagnertech.de Git - mfinanz.git/blob - SL/DB/MetaSetup/BankTransaction.pm
Merge branch 'master' of http://wagnertech.de/git/mfinanz
[mfinanz.git] / SL / DB / MetaSetup / BankTransaction.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::BankTransaction;
4
5 use strict;
6
7 use parent qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('bank_transactions');
10
11 __PACKAGE__->meta->columns(
12   amount                => { type => 'numeric', not_null => 1, precision => 15, scale => 5 },
13   cleared               => { type => 'boolean', default => 'false', not_null => 1 },
14   currency_id           => { type => 'integer', not_null => 1 },
15   end_to_end_id         => { type => 'text' },
16   exchangerate          => { type => 'numeric', precision => 15, scale => 5 },
17   id                    => { type => 'serial', not_null => 1 },
18   invoice_amount        => { type => 'numeric', default => '0', precision => 15, scale => 5 },
19   itime                 => { type => 'timestamp', default => 'now()' },
20   local_bank_account_id => { type => 'integer', not_null => 1 },
21   purpose               => { type => 'text' },
22   qr_reference          => { type => 'text' },
23   remote_account_number => { type => 'text' },
24   remote_bank_code      => { type => 'text' },
25   remote_name           => { type => 'text' },
26   transaction_code      => { type => 'text' },
27   transaction_id        => { type => 'integer' },
28   transaction_text      => { type => 'text' },
29   transdate             => { type => 'date', not_null => 1 },
30   valutadate            => { type => 'date', not_null => 1 },
31 );
32
33 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
34
35 __PACKAGE__->meta->allow_inline_column_values(1);
36
37 __PACKAGE__->meta->foreign_keys(
38   currency => {
39     class       => 'SL::DB::Currency',
40     key_columns => { currency_id => 'id' },
41   },
42
43   local_bank_account => {
44     class       => 'SL::DB::BankAccount',
45     key_columns => { local_bank_account_id => 'id' },
46   },
47 );
48
49 1;
50 ;