Revision 10b50bbf
Von Kivitendo Admin vor 4 Monaten hinzugefügt
SL/DB/MetaSetup/PartsGroup.pm | ||
---|---|---|
itime => { type => 'timestamp', default => 'now()' },
|
||
mtime => { type => 'timestamp' },
|
||
obsolete => { type => 'boolean', default => 'false' },
|
||
parent_id => { type => 'integer' },
|
||
partsgroup => { type => 'text' },
|
||
sortkey => { type => 'integer', not_null => 1 },
|
||
);
|
||
... | ... | |
|
||
__PACKAGE__->meta->allow_inline_column_values(1);
|
||
|
||
__PACKAGE__->meta->foreign_keys(
|
||
parent => {
|
||
class => 'SL::DB::PartsGroup',
|
||
key_columns => { parent_id => 'id' },
|
||
},
|
||
);
|
||
|
||
1;
|
||
;
|
Auch abrufbar als: Unified diff
Warengruppen hierarchisch - DB