first commit

This commit is contained in:
2026-08-24 13:52:16 -04:00
commit 429595c5a0
526 changed files with 27860 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
-- ============================================================
-- 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';