epic-ts
[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   greeting                  => { type => 'text' },
35   homepage                  => { type => 'text' },
36   hourly_rate               => { type => 'numeric', precision => 8, scale => 2 },
37   iban                      => { type => 'text' },
38   id                        => { type => 'integer', not_null => 1, sequence => 'id' },
39   itime                     => { type => 'timestamp', default => 'now()' },
40   klass                     => { type => 'integer', default => '0' },
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   salesman_id               => { type => 'integer' },
52   street                    => { type => 'text' },
53   taxincluded               => { type => 'boolean' },
54   taxincluded_checked       => { type => 'boolean' },
55   taxnumber                 => { type => 'text' },
56   taxzone_id                => { type => 'integer', not_null => 1 },
57   user_password             => { type => 'text' },
58   username                  => { type => 'text' },
59   ustid                     => { type => 'text' },
60   zipcode                   => { type => 'text' },
61 );
62
63 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
64
65 __PACKAGE__->meta->allow_inline_column_values(1);
66
67 __PACKAGE__->meta->foreign_keys(
68   business => {
69     class       => 'SL::DB::Business',
70     key_columns => { business_id => 'id' },
71   },
72
73   currency => {
74     class       => 'SL::DB::Currency',
75     key_columns => { currency_id => 'id' },
76   },
77
78   delivery_term => {
79     class       => 'SL::DB::DeliveryTerm',
80     key_columns => { delivery_term_id => 'id' },
81   },
82
83   language_obj => {
84     class       => 'SL::DB::Language',
85     key_columns => { language_id => 'id' },
86   },
87
88   payment => {
89     class       => 'SL::DB::PaymentTerm',
90     key_columns => { payment_id => 'id' },
91   },
92
93   taxzone => {
94     class       => 'SL::DB::TaxZone',
95     key_columns => { taxzone_id => 'id' },
96   },
97 );
98
99 1;
100 ;