Revision 5c5c1eef
Von Moritz Bunkus vor fast 12 Jahren hinzugefügt
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
Projekt: neue Spalten (Kunde, Typ, gültig)