-- =============================================================
-- AGENCIA LEÓN - Permisos base (requerido tras schema.sql)
-- Ejecutar en: Supabase Dashboard > SQL Editor > New query
-- Sin esto, las políticas RLS de schema.sql no alcanzan a aplicarse:
-- Postgres deniega el acceso a nivel de tabla antes de evaluar RLS.
-- =============================================================

grant usage on schema public to anon, authenticated;

grant select, insert, update, delete on all tables in schema public
  to anon, authenticated;

alter default privileges in schema public
  grant select, insert, update, delete on tables to anon, authenticated;
