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::Inventory;
7 use base qw(SL::DB::Object);
9 __PACKAGE__->meta->table('inventory');
11 __PACKAGE__->meta->columns(
12 bestbefore => { type => 'date' },
13 bin_id => { type => 'integer', not_null => 1 },
14 chargenumber => { type => 'text', default => '', not_null => 1 },
15 comment => { type => 'text' },
16 employee_id => { type => 'integer', not_null => 1 },
17 id => { type => 'serial', not_null => 1 },
18 itime => { type => 'timestamp', default => 'now()' },
19 mtime => { type => 'timestamp' },
20 oe_id => { type => 'integer' },
21 orderitems_id => { type => 'integer' },
22 parts_id => { type => 'integer', not_null => 1 },
23 project_id => { type => 'integer' },
24 qty => { type => 'numeric', precision => 5, scale => 25 },
25 shippingdate => { type => 'date' },
26 trans_id => { type => 'integer', not_null => 1 },
27 trans_type_id => { type => 'integer', not_null => 1 },
28 warehouse_id => { type => 'integer', not_null => 1 },
31 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
33 __PACKAGE__->meta->allow_inline_column_values(1);
35 __PACKAGE__->meta->foreign_keys(
37 class => 'SL::DB::Bin',
38 key_columns => { bin_id => 'id' },
42 class => 'SL::DB::Employee',
43 key_columns => { employee_id => 'id' },
47 class => 'SL::DB::Part',
48 key_columns => { parts_id => 'id' },
52 class => 'SL::DB::Project',
53 key_columns => { project_id => 'id' },
57 class => 'SL::DB::TransferType',
58 key_columns => { trans_type_id => 'id' },
62 class => 'SL::DB::Warehouse',
63 key_columns => { warehouse_id => 'id' },