1a691ff6d2c68076568bc5003c3399f442b3798f
[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->table('vendor');
10
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   department_1   => { type => 'varchar', length => 75 },
25   department_2   => { type => 'varchar', length => 75 },
26   direct_debit   => { type => 'boolean', default => 'false' },
27   discount       => { type => 'float', precision => 4 },
28   email          => { type => 'text' },
29   fax            => { type => 'varchar', length => 30 },
30   greeting       => { type => 'text' },
31   homepage       => { type => 'text' },
32   iban           => { type => 'varchar', length => 100 },
33   id             => { type => 'integer', not_null => 1, sequence => 'id' },
34   itime          => { type => 'timestamp', default => 'now()' },
35   language       => { type => 'varchar', length => 5 },
36   language_id    => { type => 'integer' },
37   mtime          => { type => 'timestamp' },
38   name           => { type => 'varchar', length => 75, not_null => 1 },
39   notes          => { type => 'text' },
40   obsolete       => { type => 'boolean', default => 'false' },
41   payment_id     => { type => 'integer' },
42   phone          => { type => 'text' },
43   salesman_id    => { type => 'integer' },
44   street         => { type => 'varchar', length => 75 },
45   taxincluded    => { type => 'boolean' },
46   taxnumber      => { type => 'text' },
47   taxzone_id     => { type => 'integer', default => '0', not_null => 1 },
48   terms          => { type => 'integer', default => '0' },
49   user_password  => { type => 'varchar', length => 12 },
50   username       => { type => 'varchar', length => 50 },
51   ustid          => { type => 'varchar', length => 14 },
52   v_customer_id  => { type => 'text' },
53   vendornumber   => { type => 'text' },
54   zipcode        => { type => 'varchar', length => 10 },
55 );
56
57 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
58
59 __PACKAGE__->meta->allow_inline_column_values(1);
60
61 __PACKAGE__->meta->foreign_keys(
62   business => {
63     class       => 'SL::DB::Business',
64     key_columns => { business_id => 'id' },
65   },
66
67   currency => {
68     class       => 'SL::DB::Currency',
69     key_columns => { currency_id => 'id' },
70   },
71
72   language_obj => {
73     class       => 'SL::DB::Language',
74     key_columns => { language_id => 'id' },
75   },
76
77   payment => {
78     class       => 'SL::DB::PaymentTerm',
79     key_columns => { payment_id => 'id' },
80   },
81 );
82
83 1;
84 ;