DBO Update - alle normalen Models hinzugefĆ¼gt.
[kivitendo-erp.git] / SL / DB / MetaSetup / DeliveryOrder.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::DeliveryOrder;
4
5 use strict;
6
7 use base qw(SL::DB::Object);
8
9 __PACKAGE__->meta->setup(
10   table   => 'delivery_orders',
11
12   columns => [
13     id                      => { type => 'integer', not_null => 1, sequence => 'id' },
14     donumber                => { type => 'text', not_null => 1 },
15     ordnumber               => { type => 'text' },
16     transdate               => { type => 'date', default => 'now()' },
17     vendor_id               => { type => 'integer' },
18     customer_id             => { type => 'integer' },
19     reqdate                 => { type => 'date' },
20     shippingpoint           => { type => 'text' },
21     notes                   => { type => 'text' },
22     intnotes                => { type => 'text' },
23     employee_id             => { type => 'integer' },
24     closed                  => { type => 'boolean', default => 'false' },
25     delivered               => { type => 'boolean', default => 'false' },
26     cusordnumber            => { type => 'text' },
27     oreqnumber              => { type => 'text' },
28     department_id           => { type => 'integer' },
29     shipvia                 => { type => 'text' },
30     cp_id                   => { type => 'integer' },
31     language_id             => { type => 'integer' },
32     shipto_id               => { type => 'integer' },
33     globalproject_id        => { type => 'integer' },
34     salesman_id             => { type => 'integer' },
35     transaction_description => { type => 'text' },
36     is_sales                => { type => 'boolean' },
37     itime                   => { type => 'timestamp', default => 'now()' },
38     mtime                   => { type => 'timestamp' },
39     notes_bottom            => { type => 'text' },
40     taxzone_id              => { type => 'integer' },
41     taxincluded             => { type => 'boolean' },
42     terms                   => { type => 'integer' },
43     curr                    => { type => 'character', length => 3 },
44   ],
45
46   primary_key_columns => [ 'id' ],
47
48   allow_inline_column_values => 1,
49
50   foreign_keys => [
51     contact => {
52       class       => 'SL::DB::Contact',
53       key_columns => { cp_id => 'cp_id' },
54     },
55
56     customer => {
57       class       => 'SL::DB::Customer',
58       key_columns => { customer_id => 'id' },
59     },
60
61     employee => {
62       class       => 'SL::DB::Employee',
63       key_columns => { employee_id => 'id' },
64     },
65
66     globalproject => {
67       class       => 'SL::DB::Project',
68       key_columns => { globalproject_id => 'id' },
69     },
70
71     language => {
72       class       => 'SL::DB::Language',
73       key_columns => { language_id => 'id' },
74     },
75
76     salesman => {
77       class       => 'SL::DB::Employee',
78       key_columns => { salesman_id => 'id' },
79     },
80
81     vendor => {
82       class       => 'SL::DB::Vendor',
83       key_columns => { vendor_id => 'id' },
84     },
85   ],
86 );
87
88 1;
89 ;