MetaSetup update für gl aus add_fk_to_gl.sql
[kivitendo-erp.git] / SL / DB / MetaSetup / GLTransaction.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::GLTransaction;
4
5 use strict;
6
7 use base qw(SL::DB::Object);
8
9 __PACKAGE__->meta->setup(
10   table   => 'gl',
11
12   columns => [
13     id             => { type => 'integer', not_null => 1, sequence => 'glid' },
14     reference      => { type => 'text' },
15     description    => { type => 'text' },
16     transdate      => { type => 'date', default => 'now' },
17     gldate         => { type => 'date', default => 'now' },
18     employee_id    => { type => 'integer' },
19     notes          => { type => 'text' },
20     department_id  => { type => 'integer' },
21     taxincluded    => { type => 'boolean' },
22     itime          => { type => 'timestamp', default => 'now()' },
23     mtime          => { type => 'timestamp' },
24     type           => { type => 'text' },
25     storno         => { type => 'boolean', default => 'false' },
26     storno_id      => { type => 'integer' },
27     ob_transaction => { type => 'boolean' },
28     cb_transaction => { type => 'boolean' },
29   ],
30
31   primary_key_columns => [ 'id' ],
32
33   allow_inline_column_values => 1,
34
35   foreign_keys => [
36     department => {
37       class       => 'SL::DB::Department',
38       key_columns => { department_id => 'id' },
39     },
40
41     storno_obj => {
42       class       => 'SL::DB::GLTransaction',
43       key_columns => { storno_id => 'id' },
44     },
45   ],
46 );
47
48 1;
49 ;