feat(items): add food category to item usage options

Update items table CHECK constraint to allow 'food' usage_key
Add 'food' to itemUsageOptions in backend queries with translations
Update design documentation to include the new category
This commit is contained in:
2026-05-11 20:39:40 +08:00
parent 0b137506b4
commit 929c148c56
3 changed files with 4 additions and 2 deletions

View File

@@ -1214,7 +1214,7 @@ CREATE TABLE IF NOT EXISTS items (
ancient_artifact_category_key IS NULL
OR ancient_artifact_category_key IN ('lost-relics-l', 'lost-relics-s', 'fossils')
),
CHECK (usage_key IS NULL OR usage_key IN ('decoration', 'relaxation', 'toy', 'road'))
CHECK (usage_key IS NULL OR usage_key IN ('decoration', 'relaxation', 'toy', 'road', 'food'))
);
CREATE TABLE IF NOT EXISTS recipes (