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