Kunden/-Lieferantenstamm: Flag "natürliche Person": DB-Upgrade + Rose
[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 parent 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 => 'text' },
17   business_id               => { type => 'integer' },
18   c_vendor_id               => { type => 'text' },
19   cc                        => { type => 'text' },
20   city                      => { type => 'text' },
21   commercial_court          => { type => 'text' },
22   contact                   => { type => 'text' },
23   contact_origin            => { type => 'text' },
24   country                   => { type => 'text' },
25   create_zugferd_invoices   => { type => 'integer', default => '-1', not_null => 1 },
26   creditlimit               => { type => 'numeric', default => '0', precision => 15, scale => 5 },
27   currency_id               => { type => 'integer', not_null => 1 },
28   customernumber            => { type => 'text' },
29   delivery_order_mail       => { type => 'text' },
30   delivery_term_id          => { type => 'integer' },
31   department_1              => { type => 'text' },
32   department_2              => { type => 'text' },
33   depositor                 => { type => 'text' },
34   direct_debit              => { type => 'boolean', default => 'false' },
35   discount                  => { type => 'float', precision => 4, scale => 4 },
36   email                     => { type => 'text' },
37   fax                       => { type => 'text' },
38   gln                       => { type => 'text' },
39   greeting                  => { type => 'text' },
40   homepage                  => { type => 'text' },
41   hourly_rate               => { type => 'numeric', precision => 8, scale => 2 },
42   iban                      => { type => 'text' },
43   id                        => { type => 'integer', not_null => 1, sequence => 'id' },
44   invoice_mail              => { type => 'text' },
45   itime                     => { type => 'timestamp', default => 'now()' },
46   language                  => { type => 'text' },
47   language_id               => { type => 'integer' },
48   mandate_date_of_signature => { type => 'date' },
49   mandator_id               => { type => 'text' },
50   mtime                     => { type => 'timestamp' },
51   name                      => { type => 'text', not_null => 1 },
52   natural_person            => { type => 'boolean', default => 'false' },
53   notes                     => { type => 'text' },
54   obsolete                  => { type => 'boolean', default => 'false' },
55   order_lock                => { type => 'boolean', default => 'false' },
56   payment_id                => { type => 'integer' },
57   phone                     => { type => 'text' },
58   pricegroup_id             => { type => 'integer' },
59   salesman_id               => { type => 'integer' },
60   street                    => { type => 'text' },
61   taxincluded               => { type => 'boolean' },
62   taxincluded_checked       => { type => 'boolean' },
63   taxnumber                 => { type => 'text' },
64   taxzone_id                => { type => 'integer', not_null => 1 },
65   user_password             => { type => 'text' },
66   username                  => { type => 'text' },
67   ustid                     => { type => 'text' },
68   zipcode                   => { type => 'text' },
69 );
70
71 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
72
73 __PACKAGE__->meta->allow_inline_column_values(1);
74
75 __PACKAGE__->meta->foreign_keys(
76   business => {
77     class       => 'SL::DB::Business',
78     key_columns => { business_id => 'id' },
79   },
80
81   currency => {
82     class       => 'SL::DB::Currency',
83     key_columns => { currency_id => 'id' },
84   },
85
86   delivery_term => {
87     class       => 'SL::DB::DeliveryTerm',
88     key_columns => { delivery_term_id => 'id' },
89   },
90
91   language_obj => {
92     class       => 'SL::DB::Language',
93     key_columns => { language_id => 'id' },
94   },
95
96   payment => {
97     class       => 'SL::DB::PaymentTerm',
98     key_columns => { payment_id => 'id' },
99   },
100
101   pricegroup => {
102     class       => 'SL::DB::Pricegroup',
103     key_columns => { pricegroup_id => 'id' },
104   },
105
106   taxzone => {
107     class       => 'SL::DB::TaxZone',
108     key_columns => { taxzone_id => 'id' },
109   },
110 );
111
112 1;
113 ;