Lieferdatum in Dialogbuchung: DB-Upgrade + Rose
[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 parent qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('gl');
10
11 __PACKAGE__->meta->columns(
12   cb_transaction => { type => 'boolean' },
13   deliverydate   => { type => 'date' },
14   department_id  => { type => 'integer' },
15   description    => { type => 'text' },
16   employee_id    => { type => 'integer' },
17   gldate         => { type => 'date', default => 'now' },
18   id             => { type => 'integer', not_null => 1, sequence => 'glid' },
19   itime          => { type => 'timestamp', default => 'now()' },
20   mtime          => { type => 'timestamp' },
21   notes          => { type => 'text' },
22   ob_transaction => { type => 'boolean' },
23   reference      => { type => 'text' },
24   storno         => { type => 'boolean', default => 'false' },
25   storno_id      => { type => 'integer' },
26   taxincluded    => { type => 'boolean' },
27   transdate      => { type => 'date', default => 'now' },
28   type           => { type => 'text' },
29 );
30
31 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
32
33 __PACKAGE__->meta->allow_inline_column_values(1);
34
35 __PACKAGE__->meta->foreign_keys(
36   department => {
37     class       => 'SL::DB::Department',
38     key_columns => { department_id => 'id' },
39   },
40
41   employee => {
42     class       => 'SL::DB::Employee',
43     key_columns => { employee_id => 'id' },
44   },
45
46   storno_obj => {
47     class       => 'SL::DB::GLTransaction',
48     key_columns => { storno_id => 'id' },
49   },
50 );
51
52 1;
53 ;