PriceSource: Erste Version
[kivitendo-erp.git] / SL / DB / MetaSetup / DeliveryOrderItem.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::DeliveryOrderItem;
4
5 use strict;
6
7 use base qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('delivery_order_items');
10
11 __PACKAGE__->meta->columns(
12   base_qty            => { type => 'float', scale => 4 },
13   cusordnumber        => { type => 'text' },
14   delivery_order_id   => { type => 'integer', not_null => 1 },
15   description         => { type => 'text' },
16   discount            => { type => 'float', scale => 4 },
17   id                  => { type => 'integer', not_null => 1, sequence => 'delivery_order_items_id' },
18   itime               => { type => 'timestamp', default => 'now()' },
19   lastcost            => { type => 'numeric', precision => 15, scale => 5 },
20   longdescription     => { type => 'text' },
21   marge_price_factor  => { type => 'numeric', default => 1, precision => 15, scale => 5 },
22   mtime               => { type => 'timestamp' },
23   ordnumber           => { type => 'text' },
24   parts_id            => { type => 'integer', not_null => 1 },
25   price_factor        => { type => 'numeric', default => 1, precision => 15, scale => 5 },
26   price_factor_id     => { type => 'integer' },
27   pricegroup_id       => { type => 'integer' },
28   project_id          => { type => 'integer' },
29   qty                 => { type => 'numeric', precision => 25, scale => 5 },
30   reqdate             => { type => 'date' },
31   sellprice           => { type => 'numeric', precision => 15, scale => 5 },
32   serialnumber        => { type => 'text' },
33   transdate           => { type => 'text' },
34   unit                => { type => 'varchar', length => 20 },
35   active_price_source => { type => 'text', default => '', not_null => 1 },
36 );
37
38 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
39
40 __PACKAGE__->meta->allow_inline_column_values(1);
41
42 __PACKAGE__->meta->foreign_keys(
43   delivery_order => {
44     class       => 'SL::DB::DeliveryOrder',
45     key_columns => { delivery_order_id => 'id' },
46   },
47
48   part => {
49     class       => 'SL::DB::Part',
50     key_columns => { parts_id => 'id' },
51   },
52
53   price_factor_obj => {
54     class       => 'SL::DB::PriceFactor',
55     key_columns => { price_factor_id => 'id' },
56   },
57
58   pricegroup => {
59     class       => 'SL::DB::Pricegroup',
60     key_columns => { pricegroup_id => 'id' },
61   },
62
63   project => {
64     class       => 'SL::DB::Project',
65     key_columns => { project_id => 'id' },
66   },
67
68   unit_obj => {
69     class       => 'SL::DB::Unit',
70     key_columns => { unit => 'name' },
71   },
72 );
73
74 1;
75 ;