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::TaxKey;
 
   7 use base qw(SL::DB::Object);
 
   9 __PACKAGE__->meta->table('taxkeys');
 
  11 __PACKAGE__->meta->columns(
 
  12   chart_id  => { type => 'integer', not_null => 1 },
 
  13   id        => { type => 'integer', not_null => 1, sequence => 'id' },
 
  14   pos_ustva => { type => 'integer' },
 
  15   startdate => { type => 'date', not_null => 1 },
 
  16   tax_id    => { type => 'integer', not_null => 1 },
 
  17   taxkey_id => { type => 'integer', not_null => 1 },
 
  20 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
 
  22 __PACKAGE__->meta->unique_keys([ 'chart_id', 'startdate' ]);
 
  24 __PACKAGE__->meta->foreign_keys(
 
  26     class       => 'SL::DB::Chart',
 
  27     key_columns => { chart_id => 'id' },
 
  31     class       => 'SL::DB::Tax',
 
  32     key_columns => { tax_id => 'id' },