d8367789fa96259cbee0b0eccc37a295be5ffade
[kivitendo-erp.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   reconciliation_starting_balance => { type => 'numeric', precision => 15, scale => 5 },
23   reconciliation_starting_date    => { type => 'date' },
24   sortkey                         => { type => 'integer', not_null => 1 },
25   use_for_qrbill                  => { type => 'boolean', default => 'false', not_null => 1 },
26   use_for_zugferd                 => { type => 'boolean', default => 'false', not_null => 1 },
27 );
28
29 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
30
31 __PACKAGE__->meta->unique_keys([ 'chart_id' ]);
32
33 __PACKAGE__->meta->foreign_keys(
34   chart => {
35     class       => 'SL::DB::Chart',
36     key_columns => { chart_id => 'id' },
37     rel_type    => 'one to one',
38   },
39 );
40
41 1;
42 ;