epic-ts
[kivitendo-erp.git] / SL / DB / MetaSetup / Dunning.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::Dunning;
4
5 use strict;
6
7 use parent qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('dunning');
10
11 __PACKAGE__->meta->columns(
12   duedate            => { type => 'date' },
13   dunning_config_id  => { type => 'integer' },
14   dunning_id         => { type => 'integer' },
15   dunning_level      => { type => 'integer' },
16   fee                => { type => 'numeric', precision => 15, scale => 5 },
17   fee_interest_ar_id => { type => 'integer' },
18   id                 => { type => 'integer', not_null => 1, sequence => 'id' },
19   interest           => { type => 'numeric', precision => 15, scale => 5 },
20   itime              => { type => 'timestamp', default => 'now()' },
21   mtime              => { type => 'timestamp' },
22   trans_id           => { type => 'integer' },
23   transdate          => { type => 'date' },
24 );
25
26 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
27
28 __PACKAGE__->meta->allow_inline_column_values(1);
29
30 __PACKAGE__->meta->foreign_keys(
31   dunning_config => {
32     class       => 'SL::DB::DunningConfig',
33     key_columns => { dunning_config_id => 'id' },
34   },
35
36   fee_interest_ar => {
37     class       => 'SL::DB::Invoice',
38     key_columns => { fee_interest_ar_id => 'id' },
39   },
40 );
41
42 1;
43 ;