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