Revision 10b50bbf
Von Kivitendo Admin vor 5 Tagen hinzugefügt
SL/DB/MetaSetup/PartsGroup.pm | ||
---|---|---|
14 | 14 |
itime => { type => 'timestamp', default => 'now()' }, |
15 | 15 |
mtime => { type => 'timestamp' }, |
16 | 16 |
obsolete => { type => 'boolean', default => 'false' }, |
17 |
parent_id => { type => 'integer' }, |
|
17 | 18 |
partsgroup => { type => 'text' }, |
18 | 19 |
sortkey => { type => 'integer', not_null => 1 }, |
19 | 20 |
); |
... | ... | |
22 | 23 |
|
23 | 24 |
__PACKAGE__->meta->allow_inline_column_values(1); |
24 | 25 |
|
26 |
__PACKAGE__->meta->foreign_keys( |
|
27 |
parent => { |
|
28 |
class => 'SL::DB::PartsGroup', |
|
29 |
key_columns => { parent_id => 'id' }, |
|
30 |
}, |
|
31 |
); |
|
32 |
|
|
25 | 33 |
1; |
26 | 34 |
; |
Auch abrufbar als: Unified diff
Warengruppen hierarchisch - DB