d527f76f53497cbfb9fd14c1ff8d2c719929c204
[kivitendo-erp.git] / SL / DB / MetaSetup / InvoiceItem.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::InvoiceItem;
4
5 use strict;
6
7 use base qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('invoice');
10
11 __PACKAGE__->meta->columns(
12   allocated          => { type => 'float', precision => 4 },
13   assemblyitem       => { type => 'boolean', default => 'false' },
14   base_qty           => { type => 'float', precision => 4 },
15   cusordnumber       => { type => 'text' },
16   deliverydate       => { type => 'date' },
17   description        => { type => 'text' },
18   discount           => { type => 'float', precision => 4 },
19   fxsellprice        => { type => 'numeric', precision => 5, scale => 15 },
20   id                 => { type => 'integer', not_null => 1, sequence => 'invoiceid' },
21   itime              => { type => 'timestamp', default => 'now()' },
22   lastcost           => { type => 'numeric', precision => 5, scale => 15 },
23   longdescription    => { type => 'text' },
24   marge_percent      => { type => 'numeric', precision => 5, scale => 15 },
25   marge_price_factor => { type => 'numeric', default => 1, precision => 5, scale => 15 },
26   marge_total        => { type => 'numeric', precision => 5, scale => 15 },
27   mtime              => { type => 'timestamp' },
28   ordnumber          => { type => 'text' },
29   parts_id           => { type => 'integer' },
30   price_factor       => { type => 'numeric', default => 1, precision => 5, scale => 15 },
31   price_factor_id    => { type => 'integer' },
32   pricegroup_id      => { type => 'integer' },
33   project_id         => { type => 'integer' },
34   qty                => { type => 'float', precision => 4 },
35   sellprice          => { type => 'numeric', precision => 5, scale => 15 },
36   serialnumber       => { type => 'text' },
37   subtotal           => { type => 'boolean', default => 'false' },
38   trans_id           => { type => 'integer' },
39   transdate          => { type => 'text' },
40   unit               => { type => 'varchar', length => 20 },
41 );
42
43 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
44
45 __PACKAGE__->meta->allow_inline_column_values(1);
46
47 __PACKAGE__->meta->foreign_keys(
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
69 1;
70 ;