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