X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FBankAccount.pm;h=b72a170b4d3f47bd1c1aab2837aaaa4197495c92;hb=65d2537d658b99b005a18c6663bc1293b41a1d83;hp=8057f44ac8e949c737fb0361299508d68ff8c2f4;hpb=843de7839af752ec61b80616aaca6af5aadbf7fc;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/BankAccount.pm b/SL/DB/MetaSetup/BankAccount.pm index 8057f44ac..b72a170b4 100644 --- a/SL/DB/MetaSetup/BankAccount.pm +++ b/SL/DB/MetaSetup/BankAccount.pm @@ -4,27 +4,34 @@ package SL::DB::BankAccount; use strict; -use base qw(SL::DB::Object); +use parent qw(SL::DB::Object); __PACKAGE__->meta->table('bank_accounts'); __PACKAGE__->meta->columns( - account_number => { type => 'varchar', length => 100 }, - bank => { type => 'text' }, - 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' }, + account_number => { type => 'varchar', length => 100 }, + bank => { type => 'text' }, + 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' }, + obsolete => { type => 'boolean', default => 'false', not_null => 1 }, + reconciliation_starting_balance => { type => 'numeric', precision => 15, scale => 5 }, + reconciliation_starting_date => { type => 'date' }, + sortkey => { type => 'integer', not_null => 1 }, ); __PACKAGE__->meta->primary_key_columns([ 'id' ]); +__PACKAGE__->meta->unique_keys([ 'chart_id' ]); + __PACKAGE__->meta->foreign_keys( chart => { class => 'SL::DB::Chart', key_columns => { chart_id => 'id' }, + rel_type => 'one to one', }, );