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 base 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 => 'varchar', length => 100 },
17 business_id => { type => 'integer' },
18 c_vendor_id => { type => 'text' },
19 cc => { type => 'text' },
20 city => { type => 'varchar', length => 75 },
21 contact => { type => 'text' },
22 country => { type => 'varchar', length => 75 },
23 creditlimit => { type => 'numeric', default => '0', precision => 5, scale => 15 },
24 currency_id => { type => 'integer', not_null => 1 },
25 customernumber => { type => 'text' },
26 department_1 => { type => 'varchar', length => 75 },
27 department_2 => { type => 'varchar', length => 75 },
28 direct_debit => { type => 'boolean', default => 'false' },
29 discount => { type => 'float', precision => 4 },
30 email => { type => 'text' },
31 fax => { type => 'varchar', length => 30 },
32 greeting => { type => 'text' },
33 homepage => { type => 'text' },
34 iban => { type => 'varchar', length => 100 },
35 id => { type => 'integer', not_null => 1, sequence => 'id' },
36 itime => { type => 'timestamp', default => 'now()' },
37 klass => { type => 'integer', default => '0' },
38 language => { type => 'varchar', length => 5 },
39 language_id => { type => 'integer' },
40 mtime => { type => 'timestamp' },
41 name => { type => 'text', not_null => 1 },
42 notes => { type => 'text' },
43 obsolete => { type => 'boolean', default => 'false' },
44 payment_id => { type => 'integer' },
45 phone => { type => 'text' },
46 salesman_id => { type => 'integer' },
47 street => { type => 'varchar', length => 75 },
48 taxincluded => { type => 'boolean' },
49 taxincluded_checked => { type => 'boolean' },
50 taxnumber => { type => 'text' },
51 taxzone_id => { type => 'integer', default => '0', not_null => 1 },
52 terms => { type => 'integer', default => '0' },
53 user_password => { type => 'text' },
54 username => { type => 'varchar', length => 50 },
55 ustid => { type => 'text' },
56 zipcode => { type => 'varchar', length => 10 },
59 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
61 __PACKAGE__->meta->allow_inline_column_values(1);
63 __PACKAGE__->meta->foreign_keys(
65 class => 'SL::DB::Business',
66 key_columns => { business_id => 'id' },
70 class => 'SL::DB::Currency',
71 key_columns => { currency_id => 'id' },
75 class => 'SL::DB::Language',
76 key_columns => { language_id => 'id' },
80 class => 'SL::DB::PaymentTerm',
81 key_columns => { payment_id => 'id' },