Volltext-Suche: Tabelle für Texte aus Dateien im DMS. DB und Rose
[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 parent qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('delivery_order_items_stock');
10
11 __PACKAGE__->meta->columns(
12   bestbefore             => { type => 'date' },
13   bin_id                 => { type => 'integer', not_null => 1 },
14   chargenumber           => { type => 'text' },
15   delivery_order_item_id => { type => 'integer', not_null => 1 },
16   id                     => { type => 'integer', not_null => 1, sequence => 'id' },
17   itime                  => { type => 'timestamp', default => 'now()' },
18   mtime                  => { type => 'timestamp' },
19   qty                    => { type => 'numeric', not_null => 1, precision => 15, scale => 5 },
20   unit                   => { type => 'varchar', length => 20, not_null => 1 },
21   warehouse_id           => { type => 'integer', not_null => 1 },
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 1;
46 ;