-- Activar required en todas las preguntas del formulario de cuidadores
-- excepto barrio (2.3) y secciones (type = 'section')
UPDATE public.questions
SET required = true
WHERE survey_id = '30000000-0000-0000-0000-000000000001'
  AND code != '2.3'
  AND type != 'section';

-- Verificar: debe mostrar todas las preguntas con required=true excepto 2.3
SELECT code, type, required
FROM public.questions
WHERE survey_id = '30000000-0000-0000-0000-000000000001'
  AND type != 'section'
ORDER BY position;
