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