MetaSetup: Spalten- und Fremdschlüsselnamen alphabetisch sortieren
[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 base 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   employee_id   => { type => 'integer', not_null => 1 },
17   id            => { type => 'serial', not_null => 1 },
18   itime         => { type => 'timestamp', default => 'now()' },
19   mtime         => { type => 'timestamp' },
20   oe_id         => { type => 'integer' },
21   orderitems_id => { type => 'integer' },
22   parts_id      => { type => 'integer', not_null => 1 },
23   project_id    => { type => 'integer' },
24   qty           => { type => 'numeric', precision => 5, scale => 25 },
25   shippingdate  => { type => 'date' },
26   trans_id      => { type => 'integer', not_null => 1 },
27   trans_type_id => { type => 'integer', not_null => 1 },
28   warehouse_id  => { type => 'integer', not_null => 1 },
29 );
30
31 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
32
33 __PACKAGE__->meta->allow_inline_column_values(1);
34
35 __PACKAGE__->meta->foreign_keys(
36   bin => {
37     class       => 'SL::DB::Bin',
38     key_columns => { bin_id => 'id' },
39   },
40
41   employee => {
42     class       => 'SL::DB::Employee',
43     key_columns => { employee_id => 'id' },
44   },
45
46   parts => {
47     class       => 'SL::DB::Part',
48     key_columns => { parts_id => 'id' },
49   },
50
51   project => {
52     class       => 'SL::DB::Project',
53     key_columns => { project_id => 'id' },
54   },
55
56   trans_type => {
57     class       => 'SL::DB::TransferType',
58     key_columns => { trans_type_id => 'id' },
59   },
60
61   warehouse => {
62     class       => 'SL::DB::Warehouse',
63     key_columns => { warehouse_id => 'id' },
64   },
65 );
66
67 1;
68 ;