MetaSetup neu generiert
[kivitendo-erp.git] / SL / DB / MetaSetup / Language.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::Language;
4
5 use strict;
6
7 use base qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('language');
10
11 __PACKAGE__->meta->columns(
12   id                  => { type => 'integer', not_null => 1, sequence => 'id' },
13   description         => { type => 'text' },
14   template_code       => { type => 'text' },
15   article_code        => { type => 'text' },
16   itime               => { type => 'timestamp', default => 'now()' },
17   mtime               => { type => 'timestamp' },
18   output_numberformat => { type => 'text' },
19   output_dateformat   => { type => 'text' },
20   output_longdates    => { type => 'boolean' },
21 );
22
23 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
24
25 __PACKAGE__->meta->allow_inline_column_values(1);
26
27 __PACKAGE__->meta->relationships(
28   ap => {
29     class      => 'SL::DB::PurchaseInvoice',
30     column_map => { id => 'language_id' },
31     type       => 'one to many',
32   },
33
34   ar => {
35     class      => 'SL::DB::Invoice',
36     column_map => { id => 'language_id' },
37     type       => 'one to many',
38   },
39
40   customer => {
41     class      => 'SL::DB::Customer',
42     column_map => { id => 'language_id' },
43     type       => 'one to many',
44   },
45
46   generic_translations => {
47     class      => 'SL::DB::GenericTranslation',
48     column_map => { id => 'language_id' },
49     type       => 'one to many',
50   },
51 );
52
53 # __PACKAGE__->meta->initialize;
54
55 1;
56 ;