Merge branch 'test' of ../kivitendo-erp_20220811
[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   imported                => { type => 'boolean', default => 'false' },
20   itime                   => { type => 'timestamp', default => 'now()' },
21   mtime                   => { type => 'timestamp' },
22   notes                   => { type => 'text' },
23   ob_transaction          => { type => 'boolean' },
24   reference               => { type => 'text' },
25   storno                  => { type => 'boolean', default => 'false' },
26   storno_id               => { type => 'integer' },
27   tax_point               => { type => 'date' },
28   taxincluded             => { type => 'boolean' },
29   transaction_description => { type => 'text' },
30   transdate               => { type => 'date', default => 'now' },
31   type                    => { type => 'text' },
32 );
33
34 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
35
36 __PACKAGE__->meta->allow_inline_column_values(1);
37
38 __PACKAGE__->meta->foreign_keys(
39   department => {
40     class       => 'SL::DB::Department',
41     key_columns => { department_id => 'id' },
42   },
43
44   employee => {
45     class       => 'SL::DB::Employee',
46     key_columns => { employee_id => 'id' },
47   },
48
49   storno_obj => {
50     class       => 'SL::DB::GLTransaction',
51     key_columns => { storno_id => 'id' },
52   },
53 );
54
55 1;
56 ;