780f4318c638e2d0a5dfb2042fc5bd065a8a8898
[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   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   tax_point               => { type => 'date' },
39   taxincluded             => { type => 'boolean' },
40   taxzone_id              => { type => 'integer', not_null => 1 },
41   transaction_description => { type => 'text' },
42   transdate               => { type => 'date', default => 'now()' },
43   vendor_id               => { type => 'integer' },
44 );
45
46 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
47
48 __PACKAGE__->meta->allow_inline_column_values(1);
49
50 __PACKAGE__->meta->foreign_keys(
51   contact => {
52     class       => 'SL::DB::Contact',
53     key_columns => { cp_id => 'cp_id' },
54   },
55
56   currency => {
57     class       => 'SL::DB::Currency',
58     key_columns => { currency_id => 'id' },
59   },
60
61   customer => {
62     class       => 'SL::DB::Customer',
63     key_columns => { customer_id => 'id' },
64   },
65
66   delivery_term => {
67     class       => 'SL::DB::DeliveryTerm',
68     key_columns => { delivery_term_id => 'id' },
69   },
70
71   department => {
72     class       => 'SL::DB::Department',
73     key_columns => { department_id => 'id' },
74   },
75
76   employee => {
77     class       => 'SL::DB::Employee',
78     key_columns => { employee_id => 'id' },
79   },
80
81   globalproject => {
82     class       => 'SL::DB::Project',
83     key_columns => { globalproject_id => 'id' },
84   },
85
86   language => {
87     class       => 'SL::DB::Language',
88     key_columns => { language_id => 'id' },
89   },
90
91   payment => {
92     class       => 'SL::DB::PaymentTerm',
93     key_columns => { payment_id => 'id' },
94   },
95
96   salesman => {
97     class       => 'SL::DB::Employee',
98     key_columns => { salesman_id => 'id' },
99   },
100
101   shipto => {
102     class       => 'SL::DB::Shipto',
103     key_columns => { shipto_id => 'shipto_id' },
104   },
105
106   taxzone => {
107     class       => 'SL::DB::TaxZone',
108     key_columns => { taxzone_id => 'id' },
109   },
110
111   vendor => {
112     class       => 'SL::DB::Vendor',
113     key_columns => { vendor_id => 'id' },
114   },
115 );
116
117 1;
118 ;