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 warehouse_id => { type => 'integer', not_null => 1 },
13 parts_id => { type => 'integer', not_null => 1 },
14 oe_id => { type => 'integer' },
15 orderitems_id => { type => 'integer' },
16 shippingdate => { type => 'date' },
17 employee_id => { type => 'integer', not_null => 1 },
18 itime => { type => 'timestamp', default => 'now()' },
19 mtime => { type => 'timestamp' },
20 bin_id => { type => 'integer', not_null => 1 },
21 qty => { type => 'numeric', precision => 5, scale => 25 },
22 trans_id => { type => 'integer', not_null => 1 },
23 trans_type_id => { type => 'integer', not_null => 1 },
24 project_id => { type => 'integer' },
25 chargenumber => { type => 'text', default => '', not_null => 1 },
26 comment => { type => 'text' },
27 bestbefore => { type => 'date' },
28 id => { type => 'serial', 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' },
67 # __PACKAGE__->meta->initialize;