]> wagnertech.de Git - mfinanz.git/blob - SL/DB/MetaSetup/BankAccount.pm
Merge branch 'master' of http://wagnertech.de/git/mfinanz
[mfinanz.git] / SL / DB / MetaSetup / BankAccount.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::BankAccount;
4
5 use strict;
6
7 use parent qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('bank_accounts');
10
11 __PACKAGE__->meta->columns(
12   account_number                  => { type => 'varchar', length => 100 },
13   bank                            => { type => 'text' },
14   bank_account_id                 => { type => 'varchar' },
15   bank_code                       => { type => 'varchar', length => 100 },
16   bic                             => { type => 'varchar', length => 100 },
17   chart_id                        => { type => 'integer', not_null => 1 },
18   iban                            => { type => 'varchar', length => 100 },
19   id                              => { type => 'integer', not_null => 1, sequence => 'id' },
20   name                            => { type => 'text' },
21   obsolete                        => { type => 'boolean', default => 'false', not_null => 1 },
22   qr_iban                         => { type => 'text' },
23   reconciliation_starting_balance => { type => 'numeric', precision => 15, scale => 5 },
24   reconciliation_starting_date    => { type => 'date' },
25   sortkey                         => { type => 'integer', not_null => 1 },
26   use_for_qrbill                  => { type => 'boolean', default => 'false', not_null => 1 },
27   use_for_zugferd                 => { type => 'boolean', default => 'false', not_null => 1 },
28   use_with_bank_import            => { type => 'boolean', default => 'true', not_null => 1 },
29 );
30
31 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
32
33 __PACKAGE__->meta->unique_keys([ 'chart_id' ]);
34
35 __PACKAGE__->meta->foreign_keys(
36   chart => {
37     class       => 'SL::DB::Chart',
38     key_columns => { chart_id => 'id' },
39     rel_type    => 'one to one',
40   },
41 );
42
43 1;
44 ;