-- =========================================================
-- TABLERO CDC - Permisos Alicia Thaía Reyes
-- Ejecutar si Alicia debe tarifar/ver montos internos y eliminar duplicados.
-- No toca proyectos, links, tarifario ni n8n.
-- =========================================================

update public.tablero_cdc_allowed_users
set
  can_manage_internal_pricing = true,
  can_delete_projects = true,
  updated_at = now()
where lower(email) = lower('areyes@gomezleemarketing.com');

select
  email,
  full_name,
  is_active,
  can_manage_internal_pricing,
  can_delete_projects,
  can_control_pricing_summary,
  updated_at
from public.tablero_cdc_allowed_users
where lower(email) = lower('areyes@gomezleemarketing.com');
