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::DeliveryOrderItem;
7 use base qw(SL::DB::Object);
9 __PACKAGE__->meta->setup(
10 table => 'delivery_order_items',
13 id => { type => 'integer', not_null => 1, sequence => 'delivery_order_items_id' },
14 delivery_order_id => { type => 'integer', not_null => 1 },
15 parts_id => { type => 'integer', not_null => 1 },
16 description => { type => 'text' },
17 qty => { type => 'numeric', precision => 5, scale => 25 },
18 sellprice => { type => 'numeric', precision => 5, scale => 15 },
19 discount => { type => 'float', precision => 4 },
20 project_id => { type => 'integer' },
21 reqdate => { type => 'date' },
22 serialnumber => { type => 'text' },
23 ordnumber => { type => 'text' },
24 transdate => { type => 'text' },
25 cusordnumber => { type => 'text' },
26 unit => { type => 'varchar', length => 20 },
27 base_qty => { type => 'float', precision => 4 },
28 longdescription => { type => 'text' },
29 lastcost => { type => 'numeric', precision => 5, scale => 15 },
30 price_factor_id => { type => 'integer' },
31 price_factor => { type => 'numeric', default => 1, precision => 5, scale => 15 },
32 marge_price_factor => { type => 'numeric', default => 1, precision => 5, scale => 15 },
33 itime => { type => 'timestamp', default => 'now()' },
34 mtime => { type => 'timestamp' },
37 primary_key_columns => [ 'id' ],
39 allow_inline_column_values => 1,
43 class => 'SL::DB::DeliveryOrder',
44 key_columns => { delivery_order_id => 'id' },
48 class => 'SL::DB::Part',
49 key_columns => { parts_id => 'id' },
53 class => 'SL::DB::PriceFactor',
54 key_columns => { price_factor_id => 'id' },
58 class => 'SL::DB::Project',
59 key_columns => { project_id => 'id' },