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