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

@@ -718,7 +718,8 @@ const itemUsageOptions = [
{ id: 1, key: 'decoration', labels: { en: 'Decoration', 'zh-CN': '装饰' } },
{ id: 2, key: 'relaxation', labels: { en: 'Relaxation', 'zh-CN': '休闲' } },
{ id: 3, key: 'toy', labels: { en: 'Toy', 'zh-CN': '玩具' } },
{ id: 4, key: 'road', labels: { en: 'Road', 'zh-CN': '道路' } }
{ id: 4, key: 'road', labels: { en: 'Road', 'zh-CN': '道路' } },
{ id: 5, key: 'food', labels: { en: 'Food', 'zh-CN': '食物' } }
] as const satisfies readonly SystemListOption[];
const ancientArtifactCategoryOptions = [