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