fce09e7c4695d8edc2e6249749625ed674b3d611
[kivitendo-erp.git] / SL / DB / MetaSetup / Inventory.pm
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;
4
5 use strict;
6
7 use base qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('inventory');
10
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   delivery_order_items_stock_id => { type => 'integer' },
17   employee_id                   => { type => 'integer', not_null => 1 },
18   id                            => { type => 'serial', not_null => 1 },
19   itime                         => { type => 'timestamp', default => 'now()' },
20   mtime                         => { type => 'timestamp' },
21   oe_id                         => { type => 'integer' },
22   parts_id                      => { type => 'integer', not_null => 1 },
23   project_id                    => { type => 'integer' },
24   qty                           => { type => 'numeric', precision => 25, scale => 5 },
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 },
29 );
30
31 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
32
33 __PACKAGE__->meta->allow_inline_column_values(1);
34
35 __PACKAGE__->meta->foreign_keys(
36   bin => {
37     class       => 'SL::DB::Bin',
38     key_columns => { bin_id => 'id' },
39   },
40
41   delivery_order_items_stock => {
42     class       => 'SL::DB::DeliveryOrderItemsStock',
43     key_columns => { delivery_order_items_stock_id => 'id' },
44   },
45
46   employee => {
47     class       => 'SL::DB::Employee',
48     key_columns => { employee_id => 'id' },
49   },
50
51   oe => {
52     class       => 'SL::DB::DeliveryOrder',
53     key_columns => { oe_id => 'id' },
54   },
55
56   parts => {
57     class       => 'SL::DB::Part',
58     key_columns => { parts_id => 'id' },
59   },
60
61   project => {
62     class       => 'SL::DB::Project',
63     key_columns => { project_id => 'id' },
64   },
65
66   trans_type => {
67     class       => 'SL::DB::TransferType',
68     key_columns => { trans_type_id => 'id' },
69   },
70
71   warehouse => {
72     class       => 'SL::DB::Warehouse',
73     key_columns => { warehouse_id => 'id' },
74   },
75 );
76
77 1;
78 ;