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::ShopOrder;
7 use parent qw(SL::DB::Object);
9 __PACKAGE__->meta->table('shop_orders');
11 __PACKAGE__->meta->columns(
12 amount => { type => 'numeric', precision => 15, scale => 5 },
13 billing_city => { type => 'text' },
14 billing_company => { type => 'text' },
15 billing_country => { type => 'text' },
16 billing_department => { type => 'text' },
17 billing_email => { type => 'text' },
18 billing_fax => { type => 'text' },
19 billing_firstname => { type => 'text' },
20 billing_greeting => { type => 'text' },
21 billing_lastname => { type => 'text' },
22 billing_phone => { type => 'text' },
23 billing_street => { type => 'text' },
24 billing_vat => { type => 'text' },
25 billing_zipcode => { type => 'text' },
26 customer_city => { type => 'text' },
27 customer_company => { type => 'text' },
28 customer_country => { type => 'text' },
29 customer_department => { type => 'text' },
30 customer_email => { type => 'text' },
31 customer_fax => { type => 'text' },
32 customer_firstname => { type => 'text' },
33 customer_greeting => { type => 'text' },
34 customer_lastname => { type => 'text' },
35 customer_newsletter => { type => 'boolean' },
36 customer_phone => { type => 'text' },
37 customer_street => { type => 'text' },
38 customer_vat => { type => 'text' },
39 customer_zipcode => { type => 'text' },
40 delivery_city => { type => 'text' },
41 delivery_company => { type => 'text' },
42 delivery_country => { type => 'text' },
43 delivery_department => { type => 'text' },
44 delivery_email => { type => 'text' },
45 delivery_fax => { type => 'text' },
46 delivery_firstname => { type => 'text' },
47 delivery_greeting => { type => 'text' },
48 delivery_lastname => { type => 'text' },
49 delivery_phone => { type => 'text' },
50 delivery_street => { type => 'text' },
51 delivery_vat => { type => 'text' },
52 delivery_zipcode => { type => 'text' },
53 host => { type => 'text' },
54 id => { type => 'serial', not_null => 1 },
55 itime => { type => 'timestamp', default => 'now()' },
56 kivi_customer_id => { type => 'integer' },
57 mtime => { type => 'timestamp' },
58 netamount => { type => 'numeric', precision => 15, scale => 5 },
59 obsolete => { type => 'boolean', default => 'false', not_null => 1 },
60 order_date => { type => 'timestamp' },
61 payment_description => { type => 'text' },
62 payment_id => { type => 'integer' },
63 positions => { type => 'integer' },
64 remote_ip => { type => 'text' },
65 sepa_account_holder => { type => 'text' },
66 sepa_bic => { type => 'text' },
67 sepa_iban => { type => 'text' },
68 shipping_costs => { type => 'numeric', precision => 15, scale => 5 },
69 shipping_costs_id => { type => 'integer' },
70 shipping_costs_net => { type => 'numeric', precision => 15, scale => 5 },
71 shop_c_billing_id => { type => 'integer' },
72 shop_c_billing_number => { type => 'text' },
73 shop_c_delivery_id => { type => 'integer' },
74 shop_c_delivery_number => { type => 'text' },
75 shop_customer_comment => { type => 'text' },
76 shop_customer_id => { type => 'integer' },
77 shop_customer_number => { type => 'text' },
78 shop_id => { type => 'integer' },
79 shop_ordernumber => { type => 'text' },
80 shop_trans_id => { type => 'integer', not_null => 1 },
81 tax_included => { type => 'boolean' },
82 transfer_date => { type => 'date' },
83 transferred => { type => 'boolean', default => 'false' },
86 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
88 __PACKAGE__->meta->allow_inline_column_values(1);
90 __PACKAGE__->meta->foreign_keys(
92 class => 'SL::DB::Customer',
93 key_columns => { kivi_customer_id => 'id' },
97 class => 'SL::DB::Shop',
98 key_columns => { shop_id => 'id' },