ZUGFeRD: Einstellung bzgl. Erzeugung auch in Kundenstammdaten
[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   notes                     => { type => 'text' },
53   obsolete                  => { type => 'boolean', default => 'false' },
54   order_lock                => { type => 'boolean', default => 'false' },
55   payment_id                => { type => 'integer' },
56   phone                     => { type => 'text' },
57   pricegroup_id             => { type => 'integer' },
58   salesman_id               => { type => 'integer' },
59   street                    => { type => 'text' },
60   taxincluded               => { type => 'boolean' },
61   taxincluded_checked       => { type => 'boolean' },
62   taxnumber                 => { type => 'text' },
63   taxzone_id                => { type => 'integer', not_null => 1 },
64   user_password             => { type => 'text' },
65   username                  => { type => 'text' },
66   ustid                     => { type => 'text' },
67   zipcode                   => { type => 'text' },
68 );
69
70 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
71
72 __PACKAGE__->meta->allow_inline_column_values(1);
73
74 __PACKAGE__->meta->foreign_keys(
75   business => {
76     class       => 'SL::DB::Business',
77     key_columns => { business_id => 'id' },
78   },
79
80   currency => {
81     class       => 'SL::DB::Currency',
82     key_columns => { currency_id => 'id' },
83   },
84
85   delivery_term => {
86     class       => 'SL::DB::DeliveryTerm',
87     key_columns => { delivery_term_id => 'id' },
88   },
89
90   language_obj => {
91     class       => 'SL::DB::Language',
92     key_columns => { language_id => 'id' },
93   },
94
95   payment => {
96     class       => 'SL::DB::PaymentTerm',
97     key_columns => { payment_id => 'id' },
98   },
99
100   pricegroup => {
101     class       => 'SL::DB::Pricegroup',
102     key_columns => { pricegroup_id => 'id' },
103   },
104
105   taxzone => {
106     class       => 'SL::DB::TaxZone',
107     key_columns => { taxzone_id => 'id' },
108   },
109 );
110
111 1;
112 ;