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;
 
   7 use parent qw(SL::DB::Object);
 
   9 __PACKAGE__->meta->table('bank_accounts');
 
  11 __PACKAGE__->meta->columns(
 
  12   account_number                  => { type => 'varchar', length => 100 },
 
  13   bank                            => { type => 'text' },
 
  14   bank_code                       => { type => 'varchar', length => 100 },
 
  15   bic                             => { type => 'varchar', length => 100 },
 
  16   chart_id                        => { type => 'integer', not_null => 1 },
 
  17   iban                            => { type => 'varchar', length => 100 },
 
  18   id                              => { type => 'integer', not_null => 1, sequence => 'id' },
 
  19   name                            => { type => 'text' },
 
  20   obsolete                        => { type => 'boolean', default => 'false', not_null => 1 },
 
  21   reconciliation_starting_balance => { type => 'numeric', precision => 15, scale => 5 },
 
  22   reconciliation_starting_date    => { type => 'date' },
 
  23   sortkey                         => { type => 'integer', not_null => 1 },
 
  24   use_for_zugferd                 => { type => 'boolean', default => 'false', not_null => 1 },
 
  27 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
 
  29 __PACKAGE__->meta->unique_keys([ 'chart_id' ]);
 
  31 __PACKAGE__->meta->foreign_keys(
 
  33     class       => 'SL::DB::Chart',
 
  34     key_columns => { chart_id => 'id' },
 
  35     rel_type    => 'one to one',