-- Sensi AI form: email and phone are no longer each required; the page asks for at least one of them
-- (checked in the browser). Only changes them while still flagged required, so later staff edits stand. Idempotent.

USE db_abos_v0.1;

UPDATE dim_web_form_fields f
JOIN dim_web_forms w ON w.id = f.form_id
SET f.is_required = 0
WHERE w.form_key = 'sensi-ai-information'
  AND f.field_key IN ('email', 'phone')
  AND f.is_required = 1;
