92d45ae14860ea4ff6bd0aec81c8d90489d666c0
[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   department_id           => { type => 'integer' },
19   donumber                => { type => 'text', not_null => 1 },
20   employee_id             => { type => 'integer' },
21   globalproject_id        => { type => 'integer' },
22   id                      => { type => 'integer', not_null => 1, sequence => 'id' },
23   intnotes                => { type => 'text' },
24   is_sales                => { type => 'boolean' },
25   itime                   => { type => 'timestamp', default => 'now()' },
26   language_id             => { type => 'integer' },
27   mtime                   => { type => 'timestamp' },
28   notes                   => { type => 'text' },
29   ordnumber               => { type => 'text' },
30   oreqnumber              => { type => 'text' },
31   reqdate                 => { type => 'date' },
32   salesman_id             => { type => 'integer' },
33   shippingpoint           => { type => 'text' },
34   shipto_id               => { type => 'integer' },
35   shipvia                 => { type => 'text' },
36   taxincluded             => { type => 'boolean' },
37   taxzone_id              => { type => 'integer' },
38   terms                   => { type => 'integer' },
39   transaction_description => { type => 'text' },
40   transdate               => { type => 'date', default => 'now()' },
41   vendor_id               => { type => 'integer' },
42 );
43
44 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
45
46 __PACKAGE__->meta->allow_inline_column_values(1);
47
48 __PACKAGE__->meta->foreign_keys(
49   contact => {
50     class       => 'SL::DB::Contact',
51     key_columns => { cp_id => 'cp_id' },
52   },
53
54   currency => {
55     class       => 'SL::DB::Currency',
56     key_columns => { currency_id => 'id' },
57   },
58
59   customer => {
60     class       => 'SL::DB::Customer',
61     key_columns => { customer_id => 'id' },
62   },
63
64   department => {
65     class       => 'SL::DB::Department',
66     key_columns => { department_id => 'id' },
67   },
68
69   employee => {
70     class       => 'SL::DB::Employee',
71     key_columns => { employee_id => 'id' },
72   },
73
74   globalproject => {
75     class       => 'SL::DB::Project',
76     key_columns => { globalproject_id => 'id' },
77   },
78
79   language => {
80     class       => 'SL::DB::Language',
81     key_columns => { language_id => 'id' },
82   },
83
84   salesman => {
85     class       => 'SL::DB::Employee',
86     key_columns => { salesman_id => 'id' },
87   },
88
89   shipto => {
90     class       => 'SL::DB::Shipto',
91     key_columns => { shipto_id => 'shipto_id' },
92   },
93
94   vendor => {
95     class       => 'SL::DB::Vendor',
96     key_columns => { vendor_id => 'id' },
97   },
98 );
99
100 1;
101 ;