Zusatzspalten fuer Kontoinhaber
[kivitendo-erp.git] / SL / DB / MetaSetup / Customer.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::Customer;
4
5 use strict;
6
7 use base qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('customer');
10
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   delivery_term_id    => { type => 'integer' },
27   department_1        => { type => 'varchar', length => 75 },
28   department_2        => { type => 'varchar', length => 75 },
29   depositor           => { type => 'text' },
30   direct_debit        => { type => 'boolean', default => 'false' },
31   discount            => { type => 'float', precision => 4 },
32   email               => { type => 'text' },
33   fax                 => { type => 'varchar', length => 30 },
34   greeting            => { type => 'text' },
35   homepage            => { type => 'text' },
36   iban                => { type => 'varchar', length => 100 },
37   id                  => { type => 'integer', not_null => 1, sequence => 'id' },
38   itime               => { type => 'timestamp', default => 'now()' },
39   klass               => { type => 'integer', default => '0' },
40   language            => { type => 'varchar', length => 5 },
41   language_id         => { type => 'integer' },
42   mtime               => { type => 'timestamp' },
43   name                => { type => 'text', not_null => 1 },
44   notes               => { type => 'text' },
45   obsolete            => { type => 'boolean', default => 'false' },
46   payment_id          => { type => 'integer' },
47   phone               => { type => 'text' },
48   salesman_id         => { type => 'integer' },
49   street              => { type => 'varchar', length => 75 },
50   taxincluded         => { type => 'boolean' },
51   taxincluded_checked => { type => 'boolean' },
52   taxnumber           => { type => 'text' },
53   taxzone_id          => { type => 'integer', default => '0', not_null => 1 },
54   terms               => { type => 'integer', default => '0' },
55   user_password       => { type => 'text' },
56   username            => { type => 'varchar', length => 50 },
57   ustid               => { type => 'text' },
58   zipcode             => { type => 'varchar', length => 10 },
59 );
60
61 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
62
63 __PACKAGE__->meta->allow_inline_column_values(1);
64
65 __PACKAGE__->meta->foreign_keys(
66   business => {
67     class       => 'SL::DB::Business',
68     key_columns => { business_id => 'id' },
69   },
70
71   currency => {
72     class       => 'SL::DB::Currency',
73     key_columns => { currency_id => 'id' },
74   },
75
76   delivery_term => {
77     class       => 'SL::DB::DeliveryTerm',
78     key_columns => { delivery_term_id => 'id' },
79   },
80
81   language_obj => {
82     class       => 'SL::DB::Language',
83     key_columns => { language_id => 'id' },
84   },
85
86   payment => {
87     class       => 'SL::DB::PaymentTerm',
88     key_columns => { payment_id => 'id' },
89   },
90 );
91
92 1;
93 ;