Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 5c5c1eef

Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt

  • ID 5c5c1eef2ef26aa166f612d0718770488809b74b
  • Vorgänger ee04154a
  • Nachfolger 7f8599c0

Projekt: neue Spalten (Kunde, Typ, gültig)

Unterschiede anzeigen:

SL/DB/MetaSetup/Project.pm
16 16
    itime         => { type => 'timestamp', default => 'now()' },
17 17
    mtime         => { type => 'timestamp' },
18 18
    active        => { type => 'boolean', default => 'true' },
19
    customer_id   => { type => 'integer' },
20
    type          => { type => 'text' },
21
    valid         => { type => 'boolean', default => 'true' },
19 22
  ],
20 23

  
21 24
  primary_key_columns => [ 'id' ],
......
23 26
  unique_key => [ 'projectnumber' ],
24 27

  
25 28
  allow_inline_column_values => 1,
29

  
30
  foreign_keys => [
31
    customer => {
32
      class       => 'SL::DB::Customer',
33
      key_columns => { customer_id => 'id' },
34
    },
35
  ],
26 36
);
27 37

  
28 38
1;

Auch abrufbar als: Unified diff