]> wagnertech.de Git - mfinanz.git/blob - SL/DB/MetaSetup/AdditionalBillingAddress.pm
Merge branch 'master' of http://wagnertech.de/git/mfinanz
[mfinanz.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   dunning_mail    => { type => 'text' },
20   email           => { type => 'text' },
21   fax             => { type => 'text' },
22   gln             => { type => 'text' },
23   id              => { type => 'serial', not_null => 1 },
24   itime           => { type => 'timestamp', default => 'now()', not_null => 1 },
25   mtime           => { type => 'timestamp', default => 'now()', not_null => 1 },
26   name            => { type => 'text' },
27   phone           => { type => 'text' },
28   street          => { type => 'text' },
29   zipcode         => { type => 'text' },
30 );
31
32 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
33
34 __PACKAGE__->meta->allow_inline_column_values(1);
35
36 __PACKAGE__->meta->foreign_keys(
37   customer => {
38     class       => 'SL::DB::Customer',
39     key_columns => { customer_id => 'id' },
40   },
41 );
42
43 1;
44 ;