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::Vendor;
7 use base qw(SL::DB::Object);
9 __PACKAGE__->meta->table('vendor');
11 __PACKAGE__->meta->columns(
12 account_number => { type => 'varchar', length => 15 },
13 bank => { type => 'text' },
14 bank_code => { type => 'varchar', length => 10 },
15 bcc => { type => 'text' },
16 bic => { type => 'varchar', length => 100 },
17 business_id => { type => 'integer' },
18 cc => { type => 'text' },
19 city => { type => 'varchar', length => 75 },
20 contact => { type => 'varchar', length => 75 },
21 country => { type => 'varchar', length => 75 },
22 creditlimit => { type => 'numeric', precision => 5, scale => 15 },
23 currency_id => { type => 'integer', not_null => 1 },
24 delivery_term_id => { type => 'integer' },
25 department_1 => { type => 'varchar', length => 75 },
26 department_2 => { type => 'varchar', length => 75 },
27 direct_debit => { type => 'boolean', default => 'false' },
28 discount => { type => 'float', precision => 4 },
29 email => { type => 'text' },
30 fax => { type => 'varchar', length => 30 },
31 greeting => { type => 'text' },
32 homepage => { type => 'text' },
33 iban => { type => 'varchar', length => 100 },
34 id => { type => 'integer', not_null => 1, sequence => 'id' },
35 itime => { type => 'timestamp', default => 'now()' },
36 language => { type => 'varchar', length => 5 },
37 language_id => { type => 'integer' },
38 mtime => { type => 'timestamp' },
39 name => { type => 'varchar', length => 75, not_null => 1 },
40 notes => { type => 'text' },
41 obsolete => { type => 'boolean', default => 'false' },
42 payment_id => { type => 'integer' },
43 phone => { type => 'text' },
44 salesman_id => { type => 'integer' },
45 street => { type => 'varchar', length => 75 },
46 taxincluded => { type => 'boolean' },
47 taxnumber => { type => 'text' },
48 taxzone_id => { type => 'integer', default => '0', not_null => 1 },
49 terms => { type => 'integer', default => '0' },
50 user_password => { type => 'varchar', length => 12 },
51 username => { type => 'varchar', length => 50 },
52 ustid => { type => 'varchar', length => 14 },
53 v_customer_id => { type => 'text' },
54 vendornumber => { type => 'text' },
55 zipcode => { type => 'varchar', length => 10 },
58 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
60 __PACKAGE__->meta->allow_inline_column_values(1);
62 __PACKAGE__->meta->foreign_keys(
64 class => 'SL::DB::Business',
65 key_columns => { business_id => 'id' },
69 class => 'SL::DB::Currency',
70 key_columns => { currency_id => 'id' },
74 class => 'SL::DB::DeliveryTerm',
75 key_columns => { delivery_term_id => 'id' },
79 class => 'SL::DB::Language',
80 key_columns => { language_id => 'id' },
84 class => 'SL::DB::PaymentTerm',
85 key_columns => { payment_id => 'id' },