Merge branch 'test' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / SL / DB / MetaSetup / AdditionalBillingAddress.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::AdditionalBillingAddress;
4
5 use strict;
6
7 use parent qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('additional_billing_addresses');
10
11 __PACKAGE__->meta->columns(
12   city            => { type => 'text' },
13   contact         => { type => 'text' },
14   country         => { type => 'text' },
15   customer_id     => { type => 'integer' },
16   default_address => { type => 'boolean', default => 'false', not_null => 1 },
17   department_1    => { type => 'text' },
18   department_2    => { type => 'text' },
19   email           => { type => 'text' },
20   fax             => { type => 'text' },
21   gln             => { type => 'text' },
22   id              => { type => 'serial', not_null => 1 },
23   itime           => { type => 'timestamp', default => 'now()', not_null => 1 },
24   mtime           => { type => 'timestamp', default => 'now()', not_null => 1 },
25   name            => { type => 'text' },
26   phone           => { type => 'text' },
27   street          => { type => 'text' },
28   zipcode         => { type => 'text' },
29 );
30
31 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
32
33 __PACKAGE__->meta->allow_inline_column_values(1);
34
35 __PACKAGE__->meta->foreign_keys(
36   customer => {
37     class       => 'SL::DB::Customer',
38     key_columns => { customer_id => 'id' },
39   },
40 );
41
42 1;
43 ;