Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision b8b112a3

Von Sven Schöling vor mehr als 11 Jahren hinzugefügt

  • ID b8b112a39bd601b0bc717646d78de470631da22a
  • Vorgänger c0931303
  • Nachfolger 2d7e4203

MetaSetup neu generiert

Unterschiede anzeigen:

SL/DB/MetaSetup/Dunning.pm
6 6

  
7 7
use base qw(SL::DB::Object);
8 8

  
9
__PACKAGE__->meta->setup(
10
  table   => 'dunning',
11

  
12
  columns => [
13
    id                 => { type => 'integer', not_null => 1, sequence => 'id' },
14
    trans_id           => { type => 'integer' },
15
    dunning_id         => { type => 'integer' },
16
    dunning_level      => { type => 'integer' },
17
    transdate          => { type => 'date' },
18
    duedate            => { type => 'date' },
19
    fee                => { type => 'numeric', precision => 5, scale => 15 },
20
    interest           => { type => 'numeric', precision => 5, scale => 15 },
21
    dunning_config_id  => { type => 'integer' },
22
    itime              => { type => 'timestamp', default => 'now()' },
23
    mtime              => { type => 'timestamp' },
24
    fee_interest_ar_id => { type => 'integer' },
25
  ],
26

  
27
  primary_key_columns => [ 'id' ],
28

  
29
  allow_inline_column_values => 1,
30

  
31
  foreign_keys => [
32
    dunning_config => {
33
      class       => 'SL::DB::DunningConfig',
34
      key_columns => { dunning_config_id => 'id' },
35
    },
36

  
37
    fee_interest_ar => {
38
      class       => 'SL::DB::Invoice',
39
      key_columns => { fee_interest_ar_id => 'id' },
40
    },
41
  ],
9
__PACKAGE__->meta->table('dunning');
10

  
11
__PACKAGE__->meta->columns(
12
  id                 => { type => 'integer', not_null => 1, sequence => 'id' },
13
  trans_id           => { type => 'integer' },
14
  dunning_id         => { type => 'integer' },
15
  dunning_level      => { type => 'integer' },
16
  transdate          => { type => 'date' },
17
  duedate            => { type => 'date' },
18
  fee                => { type => 'numeric', precision => 5, scale => 15 },
19
  interest           => { type => 'numeric', precision => 5, scale => 15 },
20
  dunning_config_id  => { type => 'integer' },
21
  itime              => { type => 'timestamp', default => 'now()' },
22
  mtime              => { type => 'timestamp' },
23
  fee_interest_ar_id => { type => 'integer' },
42 24
);
43 25

  
26
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
27

  
28
__PACKAGE__->meta->allow_inline_column_values(1);
29

  
30
__PACKAGE__->meta->foreign_keys(
31
  fee_interest_ar => {
32
    class       => 'SL::DB::Invoice',
33
    key_columns => { fee_interest_ar_id => 'id' },
34
  },
35
);
36

  
37
# __PACKAGE__->meta->initialize;
38

  
44 39
1;
45 40
;

Auch abrufbar als: Unified diff