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;
7 use base qw(SL::DB::Object);
9 __PACKAGE__->meta->table('delivery_orders');
11 __PACKAGE__->meta->columns(
12 id => { type => 'integer', not_null => 1, sequence => 'id' },
13 donumber => { type => 'text', not_null => 1 },
14 ordnumber => { type => 'text' },
15 transdate => { type => 'date', default => 'now()' },
16 vendor_id => { type => 'integer' },
17 customer_id => { type => 'integer' },
18 reqdate => { type => 'date' },
19 shippingpoint => { type => 'text' },
20 notes => { type => 'text' },
21 intnotes => { type => 'text' },
22 employee_id => { type => 'integer' },
23 closed => { type => 'boolean', default => 'false' },
24 delivered => { type => 'boolean', default => 'false' },
25 cusordnumber => { type => 'text' },
26 oreqnumber => { type => 'text' },
27 department_id => { type => 'integer' },
28 shipvia => { type => 'text' },
29 cp_id => { type => 'integer' },
30 language_id => { type => 'integer' },
31 shipto_id => { type => 'integer' },
32 globalproject_id => { type => 'integer' },
33 salesman_id => { type => 'integer' },
34 transaction_description => { type => 'text' },
35 is_sales => { type => 'boolean' },
36 itime => { type => 'timestamp', default => 'now()' },
37 mtime => { type => 'timestamp' },
38 taxzone_id => { type => 'integer' },
39 taxincluded => { type => 'boolean' },
40 terms => { type => 'integer' },
41 currency_id => { type => 'integer', not_null => 1 },
44 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
46 __PACKAGE__->meta->allow_inline_column_values(1);
48 __PACKAGE__->meta->foreign_keys(
50 class => 'SL::DB::Contact',
51 key_columns => { cp_id => 'cp_id' },
55 class => 'SL::DB::Currency',
56 key_columns => { currency_id => 'id' },
60 class => 'SL::DB::Customer',
61 key_columns => { customer_id => 'id' },
65 class => 'SL::DB::Department',
66 key_columns => { department_id => 'id' },
70 class => 'SL::DB::Employee',
71 key_columns => { employee_id => 'id' },
75 class => 'SL::DB::Project',
76 key_columns => { globalproject_id => 'id' },
80 class => 'SL::DB::Language',
81 key_columns => { language_id => 'id' },
85 class => 'SL::DB::Employee',
86 key_columns => { salesman_id => 'id' },
90 class => 'SL::DB::Shipto',
91 key_columns => { shipto_id => 'shipto_id' },
95 class => 'SL::DB::Vendor',
96 key_columns => { vendor_id => 'id' },
100 # __PACKAGE__->meta->initialize;