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 delivery_term_id => { type => 'integer' },
27 department_1 => { type => 'text' },
28 department_2 => { type => 'text' },
29 depositor => { type => 'text' },
30 direct_debit => { type => 'boolean', default => 'false' },
31 discount => { type => 'float', scale => 4 },
32 email => { type => 'text' },
33 fax => { type => 'text' },
34 gln => { type => 'text' },
35 greeting => { type => 'text' },
36 homepage => { type => 'text' },
37 hourly_rate => { type => 'numeric', precision => 8, scale => 2 },
38 iban => { type => 'text' },
39 id => { type => 'integer', not_null => 1, sequence => 'id' },
40 itime => { type => 'timestamp', default => 'now()' },
41 language => { type => 'text' },
42 language_id => { type => 'integer' },
43 mandate_date_of_signature => { type => 'date' },
44 mandator_id => { type => 'text' },
45 mtime => { type => 'timestamp' },
46 name => { type => 'text', not_null => 1 },
47 notes => { type => 'text' },
48 obsolete => { type => 'boolean', default => 'false' },
49 order_lock => { type => 'boolean', default => 'false' },
50 payment_id => { type => 'integer' },
51 phone => { type => 'text' },
52 pricegroup_id => { type => 'integer' },
53 salesman_id => { type => 'integer' },
54 street => { type => 'text' },
55 taxincluded => { type => 'boolean' },
56 taxincluded_checked => { type => 'boolean' },
57 taxnumber => { type => 'text' },
58 taxzone_id => { type => 'integer', not_null => 1 },
59 user_password => { type => 'text' },
60 username => { type => 'text' },
61 ustid => { type => 'text' },
62 zipcode => { type => 'text' },
65 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
67 __PACKAGE__->meta->allow_inline_column_values(1);
69 __PACKAGE__->meta->foreign_keys(
71 class => 'SL::DB::Business',
72 key_columns => { business_id => 'id' },
76 class => 'SL::DB::Currency',
77 key_columns => { currency_id => 'id' },
81 class => 'SL::DB::DeliveryTerm',
82 key_columns => { delivery_term_id => 'id' },
86 class => 'SL::DB::Language',
87 key_columns => { language_id => 'id' },
91 class => 'SL::DB::PaymentTerm',
92 key_columns => { payment_id => 'id' },
96 class => 'SL::DB::Pricegroup',
97 key_columns => { pricegroup_id => 'id' },
101 class => 'SL::DB::TaxZone',
102 key_columns => { taxzone_id => 'id' },