feat(persoenliche-ausruestung): show catalog category, remove size/date columns, make zustand admin-configurable

This commit is contained in:
Matthias Hochmeister
2026-04-16 08:22:01 +02:00
parent 058ee721e8
commit a6aeab80d4

View File

@@ -7,11 +7,9 @@
ALTER TABLE persoenliche_ausruestung DROP CONSTRAINT IF EXISTS persoenliche_ausruestung_zustand_check; ALTER TABLE persoenliche_ausruestung DROP CONSTRAINT IF EXISTS persoenliche_ausruestung_zustand_check;
-- 2. Seed default zustand options into app_settings -- 2. Seed default zustand options into app_settings
INSERT INTO app_settings (key, value, updated_by, updated_at) INSERT INTO app_settings (key, value)
VALUES ( VALUES (
'personal_equipment_zustand_options', 'personal_equipment_zustand_options',
'[{"key":"gut","label":"Gut","color":"success"},{"key":"beschaedigt","label":"Beschädigt","color":"warning"},{"key":"abgaengig","label":"Abgängig","color":"error"},{"key":"verloren","label":"Verloren","color":"default"}]', '[{"key":"gut","label":"Gut","color":"success"},{"key":"beschaedigt","label":"Beschädigt","color":"warning"},{"key":"abgaengig","label":"Abgängig","color":"error"},{"key":"verloren","label":"Verloren","color":"default"}]'
'system',
NOW()
) )
ON CONFLICT (key) DO NOTHING; ON CONFLICT (key) DO NOTHING;