Projekt

Allgemein

Profil

Herunterladen (1,75 KB) Statistiken
| Zweig: | Markierung: | Revision:
4fd22b56 Sven Schöling
# This file has been auto-generated. Do not modify it; it will be overwritten
# by rose_auto_create_model.pl automatically.
package SL::DB::BankAccount;

use strict;

2ea07c13 Sven Schöling
use parent qw(SL::DB::Object);
4fd22b56 Sven Schöling
b8b112a3 Sven Schöling
__PACKAGE__->meta->table('bank_accounts');

__PACKAGE__->meta->columns(
28fee2e2 Geoffrey Richardson
account_number => { type => 'varchar', length => 100 },
bank => { type => 'text' },
6b353ee1 Cem Aydin
bank_account_id => { type => 'varchar' },
28fee2e2 Geoffrey Richardson
bank_code => { type => 'varchar', length => 100 },
bic => { type => 'varchar', length => 100 },
chart_id => { type => 'integer', not_null => 1 },
iban => { type => 'varchar', length => 100 },
id => { type => 'integer', not_null => 1, sequence => 'id' },
name => { type => 'text' },
15f58ff3 Geoffrey Richardson
obsolete => { type => 'boolean', default => 'false', not_null => 1 },
28fee2e2 Geoffrey Richardson
reconciliation_starting_balance => { type => 'numeric', precision => 15, scale => 5 },
reconciliation_starting_date => { type => 'date' },
sortkey => { type => 'integer', not_null => 1 },
6b353ee1 Cem Aydin
use_for_qrbill => { type => 'boolean', default => 'false', not_null => 1 },
9dbe6a5c Moritz Bunkus
use_for_zugferd => { type => 'boolean', default => 'false', not_null => 1 },
e51a208b Cem Aydin
use_with_bank_import => { type => 'boolean', default => 'true', not_null => 1 },
4fd22b56 Sven Schöling
);

b8b112a3 Sven Schöling
__PACKAGE__->meta->primary_key_columns([ 'id' ]);

28fee2e2 Geoffrey Richardson
__PACKAGE__->meta->unique_keys([ 'chart_id' ]);

b8b112a3 Sven Schöling
__PACKAGE__->meta->foreign_keys(
chart => {
class => 'SL::DB::Chart',
key_columns => { chart_id => 'id' },
28fee2e2 Geoffrey Richardson
rel_type => 'one to one',
b8b112a3 Sven Schöling
},
);

4fd22b56 Sven Schöling
1;
;