a3a21813312cfe520e279fd4e435d317669f297a
[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->table('delivery_orders');
10
11 __PACKAGE__->meta->columns(
12   closed                  => { type => 'boolean', default => 'false' },
13   cp_id                   => { type => 'integer' },
14   currency_id             => { type => 'integer', not_null => 1 },
15   cusordnumber            => { type => 'text' },
16   customer_id             => { type => 'integer' },
17   delivered               => { type => 'boolean', default => 'false' },
18   delivery_term_id        => { type => 'integer' },
19   department_id           => { type => 'integer' },
20   donumber                => { type => 'text', not_null => 1 },
21   employee_id             => { type => 'integer' },
22   globalproject_id        => { type => 'integer' },
23   id                      => { type => 'integer', not_null => 1, sequence => 'id' },
24   intnotes                => { type => 'text' },
25   is_sales                => { type => 'boolean' },
26   itime                   => { type => 'timestamp', default => 'now()' },
27   language_id             => { type => 'integer' },
28   mtime                   => { type => 'timestamp' },
29   notes                   => { type => 'text' },
30   ordnumber               => { type => 'text' },
31   oreqnumber              => { type => 'text' },
32   payment_id              => { type => 'integer' },
33   reqdate                 => { type => 'date' },
34   salesman_id             => { type => 'integer' },
35   shippingpoint           => { type => 'text' },
36   shipto_id               => { type => 'integer' },
37   shipvia                 => { type => 'text' },
38   taxincluded             => { type => 'boolean' },
39   taxzone_id              => { type => 'integer', not_null => 1 },
40   transaction_description => { type => 'text' },
41   transdate               => { type => 'date', default => 'now()' },
42   vendor_id               => { type => 'integer' },
43 );
44
45 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
46
47 __PACKAGE__->meta->allow_inline_column_values(1);
48
49 __PACKAGE__->meta->foreign_keys(
50   contact => {
51     class       => 'SL::DB::Contact',
52     key_columns => { cp_id => 'cp_id' },
53   },
54
55   currency => {
56     class       => 'SL::DB::Currency',
57     key_columns => { currency_id => 'id' },
58   },
59
60   customer => {
61     class       => 'SL::DB::Customer',
62     key_columns => { customer_id => 'id' },
63   },
64
65   delivery_term => {
66     class       => 'SL::DB::DeliveryTerm',
67     key_columns => { delivery_term_id => 'id' },
68   },
69
70   department => {
71     class       => 'SL::DB::Department',
72     key_columns => { department_id => 'id' },
73   },
74
75   employee => {
76     class       => 'SL::DB::Employee',
77     key_columns => { employee_id => 'id' },
78   },
79
80   globalproject => {
81     class       => 'SL::DB::Project',
82     key_columns => { globalproject_id => 'id' },
83   },
84
85   language => {
86     class       => 'SL::DB::Language',
87     key_columns => { language_id => 'id' },
88   },
89
90   payment => {
91     class       => 'SL::DB::PaymentTerm',
92     key_columns => { payment_id => 'id' },
93   },
94
95   salesman => {
96     class       => 'SL::DB::Employee',
97     key_columns => { salesman_id => 'id' },
98   },
99
100   shipto => {
101     class       => 'SL::DB::Shipto',
102     key_columns => { shipto_id => 'shipto_id' },
103   },
104
105   taxzone => {
106     class       => 'SL::DB::TaxZone',
107     key_columns => { taxzone_id => 'id' },
108   },
109
110   vendor => {
111     class       => 'SL::DB::Vendor',
112     key_columns => { vendor_id => 'id' },
113   },
114 );
115
116 1;
117 ;