feat: add optional categories - admins can mark categories as optional in the order wizard

This commit is contained in:
DanielS
2026-05-01 02:29:00 +02:00
parent cb6668d614
commit 1ec164cd7b
5 changed files with 55 additions and 7 deletions

View File

@@ -0,0 +1,4 @@
-- Add is_required column to categories
-- When true (default), a product must be selected from this category in the order wizard
-- When false, the category is optional and can be skipped
ALTER TABLE public.categories ADD COLUMN IF NOT EXISTS is_required BOOLEAN DEFAULT true NOT NULL;