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 country => { type => 'text' },
24 creditlimit => { type => 'numeric', default => '0', precision => 15, scale => 5 },
25 currency_id => { type => 'integer', not_null => 1 },
26 customernumber => { type => 'text' },
27 contact_origin => { type => 'text' },
28 delivery_term_id => { type => 'integer' },
29 department_1 => { type => 'text' },
30 department_2 => { type => 'text' },
31 depositor => { type => 'text' },
32 direct_debit => { type => 'boolean', default => 'false' },
33 discount => { type => 'float', scale => 4 },
34 email => { type => 'text' },
35 fax => { type => 'text' },
36 gln => { type => 'text' },
37 greeting => { type => 'text' },
38 homepage => { type => 'text' },
39 hourly_rate => { type => 'numeric', precision => 8, scale => 2 },
40 iban => { type => 'text' },
41 id => { type => 'integer', not_null => 1, sequence => 'id' },
42 itime => { type => 'timestamp', default => 'now()' },
43 invoice_mail => { type => 'text' },
44 language => { type => 'text' },
45 language_id => { type => 'integer' },
46 mandate_date_of_signature => { type => 'date' },
47 mandator_id => { type => 'text' },
48 mtime => { type => 'timestamp' },
49 name => { type => 'text', not_null => 1 },
50 notes => { type => 'text' },
51 obsolete => { type => 'boolean', default => 'false' },
52 order_lock => { type => 'boolean', default => 'false' },
53 payment_id => { type => 'integer' },
54 phone => { type => 'text' },
55 pricegroup_id => { type => 'integer' },
56 salesman_id => { type => 'integer' },
57 street => { type => 'text' },
58 taxincluded => { type => 'boolean' },
59 taxincluded_checked => { type => 'boolean' },
60 taxnumber => { type => 'text' },
61 taxzone_id => { type => 'integer', not_null => 1 },
62 user_password => { type => 'text' },
63 username => { type => 'text' },
64 ustid => { type => 'text' },
65 zipcode => { type => 'text' },
68 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
70 __PACKAGE__->meta->allow_inline_column_values(1);
72 __PACKAGE__->meta->foreign_keys(
74 class => 'SL::DB::Business',
75 key_columns => { business_id => 'id' },
79 class => 'SL::DB::Currency',
80 key_columns => { currency_id => 'id' },
84 class => 'SL::DB::DeliveryTerm',
85 key_columns => { delivery_term_id => 'id' },
89 class => 'SL::DB::Language',
90 key_columns => { language_id => 'id' },
94 class => 'SL::DB::PaymentTerm',
95 key_columns => { payment_id => 'id' },
99 class => 'SL::DB::Pricegroup',
100 key_columns => { pricegroup_id => 'id' },
104 class => 'SL::DB::TaxZone',
105 key_columns => { taxzone_id => 'id' },