chart.link in der acc_trans
[kivitendo-erp.git] / SL / DB / MetaSetup / AccTransaction.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::AccTransaction;
4
5 use strict;
6
7 use base qw(SL::DB::Object);
8
9 __PACKAGE__->meta->setup(
10   table   => 'acc_trans',
11
12   columns => [
13     acc_trans_id   => { type => 'bigint', not_null => 1, sequence => 'acc_trans_id_seq' },
14     trans_id       => { type => 'integer', not_null => 1 },
15     chart_id       => { type => 'integer', not_null => 1 },
16     amount         => { type => 'numeric', precision => 5, scale => 15 },
17     transdate      => { type => 'date', default => 'now' },
18     gldate         => { type => 'date', default => 'now' },
19     source         => { type => 'text' },
20     cleared        => { type => 'boolean', default => 'false' },
21     fx_transaction => { type => 'boolean', default => 'false' },
22     ob_transaction => { type => 'boolean', default => 'false' },
23     cb_transaction => { type => 'boolean', default => 'false' },
24     project_id     => { type => 'integer' },
25     memo           => { type => 'text' },
26     taxkey         => { type => 'integer' },
27     itime          => { type => 'timestamp', default => 'now()' },
28     mtime          => { type => 'timestamp' },
29     tax_id         => { type => 'integer', not_null => 1 },
30     chart_link     => { type => 'text', not_null => 1 },
31   ],
32
33   primary_key_columns => [ 'acc_trans_id' ],
34
35   foreign_keys => [
36     chart => {
37       class       => 'SL::DB::Chart',
38       key_columns => { chart_id => 'id' },
39     },
40
41     project => {
42       class       => 'SL::DB::Project',
43       key_columns => { project_id => 'id' },
44     },
45
46     tax => {
47       class       => 'SL::DB::Tax',
48       key_columns => { tax_id => 'id' },
49     },
50   ],
51 );
52
53 1;
54 ;