MetaSetup: Spalten- und Fremdschlüsselnamen alphabetisch sortieren
[kivitendo-erp.git] / SL / DB / MetaSetup / UnitsLanguage.pm
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;
4
5 use strict;
6
7 use base qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('units_language');
10
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 },
17 );
18
19 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
20
21 __PACKAGE__->meta->foreign_keys(
22   language => {
23     class       => 'SL::DB::Language',
24     key_columns => { language_id => 'id' },
25   },
26
27   unit_obj => {
28     class       => 'SL::DB::Unit',
29     key_columns => { unit => 'name' },
30   },
31 );
32
33 1;
34 ;