epic-ts
[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 parent 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   expected_billing_date   => { type => 'date' },
25   globalproject_id        => { type => 'integer' },
26   id                      => { type => 'integer', not_null => 1, sequence => 'id' },
27   intnotes                => { type => 'text' },
28   itime                   => { type => 'timestamp', default => 'now()' },
29   language_id             => { type => 'integer' },
30   marge_percent           => { type => 'numeric', precision => 15, scale => 5 },
31   marge_total             => { type => 'numeric', precision => 15, scale => 5 },
32   mtime                   => { type => 'timestamp' },
33   netamount               => { type => 'numeric', precision => 15, scale => 5 },
34   notes                   => { type => 'text' },
35   order_probability       => { type => 'integer', default => '0', not_null => 1 },
36   ordnumber               => { type => 'text', not_null => 1 },
37   payment_id              => { type => 'integer' },
38   proforma                => { type => 'boolean', default => 'false' },
39   quonumber               => { type => 'text' },
40   quotation               => { type => 'boolean', default => 'false' },
41   reqdate                 => { type => 'date' },
42   salesman_id             => { type => 'integer' },
43   shippingpoint           => { type => 'text' },
44   shipto_id               => { type => 'integer' },
45   shipvia                 => { type => 'text' },
46   taxincluded             => { type => 'boolean' },
47   taxzone_id              => { type => 'integer', not_null => 1 },
48   transaction_description => { type => 'text' },
49   transdate               => { type => 'date', default => 'now' },
50   vendor_id               => { type => 'integer' },
51 );
52
53 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
54
55 __PACKAGE__->meta->allow_inline_column_values(1);
56
57 __PACKAGE__->meta->foreign_keys(
58   contact => {
59     class       => 'SL::DB::Contact',
60     key_columns => { cp_id => 'cp_id' },
61   },
62
63   currency => {
64     class       => 'SL::DB::Currency',
65     key_columns => { currency_id => 'id' },
66   },
67
68   customer => {
69     class       => 'SL::DB::Customer',
70     key_columns => { customer_id => 'id' },
71   },
72
73   delivery_customer => {
74     class       => 'SL::DB::Customer',
75     key_columns => { delivery_customer_id => 'id' },
76   },
77
78   delivery_term => {
79     class       => 'SL::DB::DeliveryTerm',
80     key_columns => { delivery_term_id => 'id' },
81   },
82
83   delivery_vendor => {
84     class       => 'SL::DB::Vendor',
85     key_columns => { delivery_vendor_id => 'id' },
86   },
87
88   department => {
89     class       => 'SL::DB::Department',
90     key_columns => { department_id => 'id' },
91   },
92
93   employee => {
94     class       => 'SL::DB::Employee',
95     key_columns => { employee_id => 'id' },
96   },
97
98   globalproject => {
99     class       => 'SL::DB::Project',
100     key_columns => { globalproject_id => 'id' },
101   },
102
103   language => {
104     class       => 'SL::DB::Language',
105     key_columns => { language_id => 'id' },
106   },
107
108   payment_terms => {
109     class       => 'SL::DB::PaymentTerm',
110     key_columns => { payment_id => 'id' },
111   },
112
113   salesman => {
114     class       => 'SL::DB::Employee',
115     key_columns => { salesman_id => 'id' },
116   },
117
118   shipto => {
119     class       => 'SL::DB::Shipto',
120     key_columns => { shipto_id => 'shipto_id' },
121   },
122
123   taxzone => {
124     class       => 'SL::DB::TaxZone',
125     key_columns => { taxzone_id => 'id' },
126   },
127
128   vendor => {
129     class       => 'SL::DB::Vendor',
130     key_columns => { vendor_id => 'id' },
131   },
132 );
133
134 1;
135 ;