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::Customer;
7 use parent qw(SL::DB::Object);
9 __PACKAGE__->meta->table('customer');
11 __PACKAGE__->meta->columns(
12 account_number => { type => 'text' },
13 bank => { type => 'text' },
14 bank_code => { type => 'text' },
15 bcc => { type => 'text' },
16 bic => { type => 'text' },
17 business_id => { type => 'integer' },
18 c_vendor_id => { type => 'text' },
19 cc => { type => 'text' },
20 city => { type => 'text' },
21 commercial_court => { type => 'text' },
22 contact => { type => 'text' },
23 contact_origin => { type => 'text' },
24 country => { type => 'text' },
25 creditlimit => { type => 'numeric', default => '0', precision => 15, scale => 5 },
26 currency_id => { type => 'integer', not_null => 1 },
27 customernumber => { type => 'text' },
28 delivery_order_mail => { type => 'text' },
29 delivery_term_id => { type => 'integer' },
30 department_1 => { type => 'text' },
31 department_2 => { type => 'text' },
32 depositor => { type => 'text' },
33 direct_debit => { type => 'boolean', default => 'false' },
34 discount => { type => 'float', precision => 4, scale => 4 },
35 email => { type => 'text' },
36 fax => { type => 'text' },
37 gln => { type => 'text' },
38 greeting => { type => 'text' },
39 homepage => { type => 'text' },
40 hourly_rate => { type => 'numeric', precision => 8, scale => 2 },
41 iban => { type => 'text' },
42 id => { type => 'integer', not_null => 1, sequence => 'id' },
43 invoice_mail => { type => 'text' },
44 itime => { type => 'timestamp', default => 'now()' },
45 language => { type => 'text' },
46 language_id => { type => 'integer' },
47 mandate_date_of_signature => { type => 'date' },
48 mandator_id => { type => 'text' },
49 mtime => { type => 'timestamp' },
50 name => { type => 'text', not_null => 1 },
51 notes => { type => 'text' },
52 obsolete => { type => 'boolean', default => 'false' },
53 order_lock => { type => 'boolean', default => 'false' },
54 payment_id => { type => 'integer' },
55 phone => { type => 'text' },
56 pricegroup_id => { type => 'integer' },
57 salesman_id => { type => 'integer' },
58 street => { type => 'text' },
59 taxincluded => { type => 'boolean' },
60 taxincluded_checked => { type => 'boolean' },
61 taxnumber => { type => 'text' },
62 taxzone_id => { type => 'integer', not_null => 1 },
63 user_password => { type => 'text' },
64 username => { type => 'text' },
65 ustid => { type => 'text' },
66 zipcode => { type => 'text' },
69 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
71 __PACKAGE__->meta->allow_inline_column_values(1);
73 __PACKAGE__->meta->foreign_keys(
75 class => 'SL::DB::Business',
76 key_columns => { business_id => 'id' },
80 class => 'SL::DB::Currency',
81 key_columns => { currency_id => 'id' },
85 class => 'SL::DB::DeliveryTerm',
86 key_columns => { delivery_term_id => 'id' },
90 class => 'SL::DB::Language',
91 key_columns => { language_id => 'id' },
95 class => 'SL::DB::PaymentTerm',
96 key_columns => { payment_id => 'id' },
100 class => 'SL::DB::Pricegroup',
101 key_columns => { pricegroup_id => 'id' },
105 class => 'SL::DB::TaxZone',
106 key_columns => { taxzone_id => 'id' },