-- ============================================================ -- Cotizador Walmart Connect - Permiso del módulo Tarifario -- GomezLee Marketing -- ============================================================ -- EJECUTAR UNA SOLA VEZ en Supabase > SQL Editor sobre la BD -- que ya tiene public.cotizador_wmc_access. -- -- false = el usuario NO ve ni puede utilizar el botón/módulo Tarifario. -- true = el usuario SÍ ve y puede utilizar el botón/módulo Tarifario. alter table public.cotizador_wmc_access add column if not exists can_use_tarifario boolean not null default false; comment on column public.cotizador_wmc_access.can_use_tarifario is 'true = puede visualizar/utilizar el módulo Tarifario; false = no tiene acceso al módulo.'; -- ============================================================ -- EJEMPLOS DE ADMINISTRACIÓN (NO se ejecutan automáticamente) -- ============================================================ -- DAR ACCESO AL TARIFARIO: -- update public.cotizador_wmc_access -- set can_use_tarifario = true -- where email = 'iaracena@gomezleemarketing.com'; -- QUITAR ACCESO AL TARIFARIO: -- update public.cotizador_wmc_access -- set can_use_tarifario = false -- where email = 'iaracena@gomezleemarketing.com'; -- Fuerza a PostgREST a refrescar el esquema inmediatamente si fuese necesario. notify pgrst, 'reload schema';