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::UnitsLanguage;
 
   7 use parent qw(SL::DB::Object);
 
   9 __PACKAGE__->meta->table('units_language');
 
  11 __PACKAGE__->meta->columns(
 
  12   id               => { type => 'serial', not_null => 1 },
 
  13   language_id      => { type => 'integer', not_null => 1 },
 
  14   localized        => { type => 'varchar', length => 20 },
 
  15   localized_plural => { type => 'varchar', length => 20 },
 
  16   unit             => { type => 'varchar', length => 20, not_null => 1 },
 
  19 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
 
  21 __PACKAGE__->meta->foreign_keys(
 
  23     class       => 'SL::DB::Language',
 
  24     key_columns => { language_id => 'id' },
 
  28     class       => 'SL::DB::Unit',
 
  29     key_columns => { unit => 'name' },