14d1ea158680a266fc635832ef35164a688eeaab
[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 parent 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   invoice_id                    => { type => 'integer' },
20   itime                         => { type => 'timestamp', default => 'now()' },
21   mtime                         => { type => 'timestamp' },
22   oe_id                         => { type => 'integer' },
23   parts_id                      => { type => 'integer', not_null => 1 },
24   project_id                    => { type => 'integer' },
25   qty                           => { type => 'numeric', precision => 25, scale => 5 },
26   shippingdate                  => { type => 'date' },
27   trans_id                      => { type => 'integer', not_null => 1 },
28   trans_type_id                 => { type => 'integer', not_null => 1 },
29   warehouse_id                  => { type => 'integer', not_null => 1 },
30 );
31
32 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
33
34 __PACKAGE__->meta->allow_inline_column_values(1);
35
36 __PACKAGE__->meta->foreign_keys(
37   bin => {
38     class       => 'SL::DB::Bin',
39     key_columns => { bin_id => 'id' },
40   },
41
42   delivery_order_items_stock => {
43     class       => 'SL::DB::DeliveryOrderItemsStock',
44     key_columns => { delivery_order_items_stock_id => 'id' },
45   },
46
47   employee => {
48     class       => 'SL::DB::Employee',
49     key_columns => { employee_id => 'id' },
50   },
51
52   invoice => {
53     class       => 'SL::DB::InvoiceItem',
54     key_columns => { invoice_id => 'id' },
55   },
56
57   oe => {
58     class       => 'SL::DB::DeliveryOrder',
59     key_columns => { oe_id => 'id' },
60   },
61
62   parts => {
63     class       => 'SL::DB::Part',
64     key_columns => { parts_id => 'id' },
65   },
66
67   project => {
68     class       => 'SL::DB::Project',
69     key_columns => { project_id => 'id' },
70   },
71
72   trans_type => {
73     class       => 'SL::DB::TransferType',
74     key_columns => { trans_type_id => 'id' },
75   },
76
77   warehouse => {
78     class       => 'SL::DB::Warehouse',
79     key_columns => { warehouse_id => 'id' },
80   },
81 );
82
83 1;
84 ;