MetaSetup neu generiert
[kivitendo-erp.git] / SL / DB / MetaSetup / DunningConfig.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::DunningConfig;
4
5 use strict;
6
7 use base qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('dunning_config');
10
11 __PACKAGE__->meta->columns(
12   id                       => { type => 'integer', not_null => 1, sequence => 'id' },
13   dunning_level            => { type => 'integer' },
14   dunning_description      => { type => 'text' },
15   active                   => { type => 'boolean' },
16   auto                     => { type => 'boolean' },
17   email                    => { type => 'boolean' },
18   terms                    => { type => 'integer' },
19   payment_terms            => { type => 'integer' },
20   fee                      => { type => 'numeric', precision => 5, scale => 15 },
21   interest_rate            => { type => 'numeric', precision => 5, scale => 15 },
22   email_body               => { type => 'text' },
23   email_subject            => { type => 'text' },
24   email_attachment         => { type => 'boolean' },
25   template                 => { type => 'text' },
26   create_invoices_for_fees => { type => 'boolean', default => 'true' },
27 );
28
29 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
30
31 __PACKAGE__->meta->relationships(
32   ar => {
33     class      => 'SL::DB::Invoice',
34     column_map => { id => 'dunning_config_id' },
35     type       => 'one to many',
36   },
37
38   dunning => {
39     class      => 'SL::DB::Dunning',
40     column_map => { id => 'dunning_config_id' },
41     type       => 'one to many',
42   },
43 );
44
45 # __PACKAGE__->meta->initialize;
46
47 1;
48 ;