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::DeliveryOrderItemsStock;
7 use base qw(SL::DB::Object);
9 __PACKAGE__->meta->table('delivery_order_items_stock');
11 __PACKAGE__->meta->columns(
12 bestbefore => { type => 'date' },
13 bin_id => { type => 'integer', not_null => 1 },
14 chargenumber => { type => 'text' },
15 delivery_order_item_id => { type => 'integer', not_null => 1 },
16 id => { type => 'integer', not_null => 1, sequence => 'id' },
17 itime => { type => 'timestamp', default => 'now()' },
18 mtime => { type => 'timestamp' },
19 qty => { type => 'numeric', not_null => 1, precision => 15, scale => 5 },
20 unit => { type => 'varchar', length => 20, not_null => 1 },
21 warehouse_id => { type => 'integer', not_null => 1 },
24 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
26 __PACKAGE__->meta->allow_inline_column_values(1);
28 __PACKAGE__->meta->foreign_keys(
30 class => 'SL::DB::Bin',
31 key_columns => { bin_id => 'id' },
34 delivery_order_item => {
35 class => 'SL::DB::DeliveryOrderItem',
36 key_columns => { delivery_order_item_id => 'id' },
40 class => 'SL::DB::Warehouse',
41 key_columns => { warehouse_id => 'id' },