cd00dc869fff31ab711bc2cd020a47ea87594191
[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->setup(
10   table   => 'units_language',
11
12   columns => [
13     unit             => { type => 'varchar', length => 20, not_null => 1 },
14     language_id      => { type => 'integer', not_null => 1 },
15     localized        => { type => 'varchar', length => 20 },
16     localized_plural => { type => 'varchar', length => 20 },
17     id               => { type => 'serial', not_null => 1 },
18   ],
19
20   primary_key_columns => [ 'id' ],
21
22   foreign_keys => [
23     language => {
24       class       => 'SL::DB::Language',
25       key_columns => { language_id => 'id' },
26     },
27
28     unit_obj => {
29       class       => 'SL::DB::Unit',
30       key_columns => { unit => 'name' },
31     },
32   ],
33 );
34
35 1;
36 ;