MetaSetups mit RDBO >= 0.809 neu bauen
[kivitendo-erp.git] / SL / DB / MetaSetup / Order.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::Order;
4
5 use strict;
6
7 use base qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('oe');
10
11 __PACKAGE__->meta->columns(
12   amount                  => { type => 'numeric', precision => 15, scale => 5 },
13   closed                  => { type => 'boolean', default => 'false' },
14   cp_id                   => { type => 'integer' },
15   currency_id             => { type => 'integer', not_null => 1 },
16   cusordnumber            => { type => 'text' },
17   customer_id             => { type => 'integer' },
18   delivered               => { type => 'boolean', default => 'false' },
19   delivery_customer_id    => { type => 'integer' },
20   delivery_term_id        => { type => 'integer' },
21   delivery_vendor_id      => { type => 'integer' },
22   department_id           => { type => 'integer' },
23   employee_id             => { type => 'integer' },
24   globalproject_id        => { type => 'integer' },
25   id                      => { type => 'integer', not_null => 1, sequence => 'id' },
26   intnotes                => { type => 'text' },
27   itime                   => { type => 'timestamp', default => 'now()' },
28   language_id             => { type => 'integer' },
29   marge_percent           => { type => 'numeric', precision => 15, scale => 5 },
30   marge_total             => { type => 'numeric', precision => 15, scale => 5 },
31   mtime                   => { type => 'timestamp' },
32   netamount               => { type => 'numeric', precision => 15, scale => 5 },
33   notes                   => { type => 'text' },
34   ordnumber               => { type => 'text', not_null => 1 },
35   payment_id              => { type => 'integer' },
36   proforma                => { type => 'boolean', default => 'false' },
37   quonumber               => { type => 'text' },
38   quotation               => { type => 'boolean', default => 'false' },
39   reqdate                 => { type => 'date' },
40   salesman_id             => { type => 'integer' },
41   shippingpoint           => { type => 'text' },
42   shipto_id               => { type => 'integer' },
43   shipvia                 => { type => 'text' },
44   taxincluded             => { type => 'boolean' },
45   taxzone_id              => { type => 'integer' },
46   transaction_description => { type => 'text' },
47   transdate               => { type => 'date', default => 'now' },
48   vendor_id               => { type => 'integer' },
49 );
50
51 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
52
53 __PACKAGE__->meta->allow_inline_column_values(1);
54
55 __PACKAGE__->meta->foreign_keys(
56   contact => {
57     class       => 'SL::DB::Contact',
58     key_columns => { cp_id => 'cp_id' },
59   },
60
61   currency => {
62     class       => 'SL::DB::Currency',
63     key_columns => { currency_id => 'id' },
64   },
65
66   customer => {
67     class       => 'SL::DB::Customer',
68     key_columns => { customer_id => 'id' },
69   },
70
71   delivery_customer => {
72     class       => 'SL::DB::Customer',
73     key_columns => { delivery_customer_id => 'id' },
74   },
75
76   delivery_term => {
77     class       => 'SL::DB::DeliveryTerm',
78     key_columns => { delivery_term_id => 'id' },
79   },
80
81   delivery_vendor => {
82     class       => 'SL::DB::Vendor',
83     key_columns => { delivery_vendor_id => 'id' },
84   },
85
86   department => {
87     class       => 'SL::DB::Department',
88     key_columns => { department_id => 'id' },
89   },
90
91   employee => {
92     class       => 'SL::DB::Employee',
93     key_columns => { employee_id => 'id' },
94   },
95
96   globalproject => {
97     class       => 'SL::DB::Project',
98     key_columns => { globalproject_id => 'id' },
99   },
100
101   language => {
102     class       => 'SL::DB::Language',
103     key_columns => { language_id => 'id' },
104   },
105
106   payment_terms => {
107     class       => 'SL::DB::PaymentTerm',
108     key_columns => { payment_id => 'id' },
109   },
110
111   salesman => {
112     class       => 'SL::DB::Employee',
113     key_columns => { salesman_id => 'id' },
114   },
115
116   shipto => {
117     class       => 'SL::DB::Shipto',
118     key_columns => { shipto_id => 'shipto_id' },
119   },
120
121   vendor => {
122     class       => 'SL::DB::Vendor',
123     key_columns => { vendor_id => 'id' },
124   },
125 );
126
127 1;
128 ;