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::RecordTemplateItem;
 
   7 use parent qw(SL::DB::Object);
 
   9 __PACKAGE__->meta->table('record_template_items');
 
  11 __PACKAGE__->meta->columns(
 
  12   amount1            => { type => 'numeric', not_null => 1, precision => 15, scale => 5 },
 
  13   amount2            => { type => 'numeric', precision => 15, scale => 5 },
 
  14   chart_id           => { type => 'integer', not_null => 1 },
 
  15   id                 => { type => 'serial', not_null => 1 },
 
  16   memo               => { type => 'text' },
 
  17   project_id         => { type => 'integer' },
 
  18   record_template_id => { type => 'integer', not_null => 1 },
 
  19   source             => { type => 'text' },
 
  20   tax_id             => { type => 'integer', not_null => 1 },
 
  23 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
 
  25 __PACKAGE__->meta->foreign_keys(
 
  27     class       => 'SL::DB::Chart',
 
  28     key_columns => { chart_id => 'id' },
 
  32     class       => 'SL::DB::Project',
 
  33     key_columns => { project_id => 'id' },
 
  37     class       => 'SL::DB::RecordTemplate',
 
  38     key_columns => { record_template_id => 'id' },
 
  42     class       => 'SL::DB::Tax',
 
  43     key_columns => { tax_id => 'id' },