ALTER TABLE public.bundle_expenses
ADD COLUMN fee_schedule_id uuid NULL REFERENCES public.fee_schedules(id) ON DELETE CASCADE;

ALTER TABLE public.bundle_expenses
ADD CONSTRAINT bundle_expenses_item_required_chk
CHECK (
  (expense_id IS NOT NULL AND fee_schedule_id IS NULL)
  OR (expense_id IS NULL AND fee_schedule_id IS NOT NULL)
);