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