-- Enable Supabase Realtime for protected_devices table.
-- This allows the frontend to subscribe to status changes (pending → active)
-- triggered by the DoH handshake endpoint without manual user confirmation.
--
-- STOP: run this only after User-GO via:
--   pnpm prisma migrate deploy   (on Hetzner, via GitHub Actions deploy)

ALTER PUBLICATION supabase_realtime ADD TABLE rebreak.protected_devices;
