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