Revision a45417f3
Von Kivitendo Admin vor etwa 1 Jahr 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