de8538e71122305120cffc8d13a1d5ff7f2cbd2b
[kivitendo-erp.git] / SL / DB / MetaSetup / Tax.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::Tax;
4
5 use strict;
6
7 use base qw(SL::DB::Object);
8
9 __PACKAGE__->meta->setup(
10   table   => 'tax',
11
12   columns => [
13     chart_id         => { type => 'integer' },
14     rate             => { type => 'numeric', default => '0', not_null => 1, precision => 5, scale => 15 },
15     taxnumber        => { type => 'text' },
16     taxkey           => { type => 'integer', not_null => 1 },
17     taxdescription   => { type => 'text', not_null => 1 },
18     itime            => { type => 'timestamp', default => 'now()' },
19     mtime            => { type => 'timestamp' },
20     id               => { type => 'integer', not_null => 1, sequence => 'id' },
21     chart_categories => { type => 'text', not_null => 1 },
22   ],
23
24   primary_key_columns => [ 'id' ],
25
26   allow_inline_column_values => 1,
27
28   foreign_keys => [
29     chart => {
30       class       => 'SL::DB::Chart',
31       key_columns => { chart_id => 'id' },
32     },
33   ],
34 );
35
36 1;
37 ;