3dc0895cbaf08d126f741c72e36bb828b2d97dbc
[kivitendo-erp.git] / SL / DB / MetaSetup / TaxKey.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::TaxKey;
4
5 use strict;
6
7 use base qw(SL::DB::Object);
8
9 __PACKAGE__->meta->setup(
10   table   => 'taxkeys',
11
12   columns => [
13     id        => { type => 'integer', not_null => 1, sequence => 'id' },
14     chart_id  => { type => 'integer', not_null => 1 },
15     tax_id    => { type => 'integer', not_null => 1 },
16     taxkey_id => { type => 'integer', not_null => 1 },
17     pos_ustva => { type => 'integer' },
18     startdate => { type => 'date', not_null => 1 },
19   ],
20
21   primary_key_columns => [ 'id' ],
22
23   unique_key => [ 'chart_id', 'startdate' ],
24
25   foreign_keys => [
26     chart => {
27       class       => 'SL::DB::Chart',
28       key_columns => { chart_id => 'id' },
29     },
30
31     tax => {
32       class       => 'SL::DB::Tax',
33       key_columns => { tax_id => 'id' },
34     },
35   ],
36 );
37
38 1;
39 ;