52e78e8eca4f002a82ee0e7537aa5b44fc41fecf
[kivitendo-erp.git] / SL / DB / MetaSetup / DeliveryOrderItemsStock.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::DeliveryOrderItemsStock;
4
5 use strict;
6
7 use base qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('delivery_order_items_stock');
10
11 __PACKAGE__->meta->columns(
12   id                     => { type => 'integer', not_null => 1, sequence => 'id' },
13   delivery_order_item_id => { type => 'integer', not_null => 1 },
14   qty                    => { type => 'numeric', not_null => 1, precision => 5, scale => 15 },
15   unit                   => { type => 'varchar', length => 20, not_null => 1 },
16   warehouse_id           => { type => 'integer', not_null => 1 },
17   bin_id                 => { type => 'integer', not_null => 1 },
18   chargenumber           => { type => 'text' },
19   itime                  => { type => 'timestamp', default => 'now()' },
20   mtime                  => { type => 'timestamp' },
21   bestbefore             => { type => 'date' },
22 );
23
24 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
25
26 __PACKAGE__->meta->allow_inline_column_values(1);
27
28 __PACKAGE__->meta->foreign_keys(
29   bin => {
30     class       => 'SL::DB::Bin',
31     key_columns => { bin_id => 'id' },
32   },
33
34   delivery_order_item => {
35     class       => 'SL::DB::DeliveryOrderItem',
36     key_columns => { delivery_order_item_id => 'id' },
37   },
38
39   warehouse => {
40     class       => 'SL::DB::Warehouse',
41     key_columns => { warehouse_id => 'id' },
42   },
43 );
44
45 # __PACKAGE__->meta->initialize;
46
47 1;
48 ;