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_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 },
 
  29 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
 
  31 __PACKAGE__->meta->unique_keys([ 'chart_id' ]);
 
  33 __PACKAGE__->meta->foreign_keys(
 
  35     class       => 'SL::DB::Chart',
 
  36     key_columns => { chart_id => 'id' },
 
  37     rel_type    => 'one to one',