-- Enable Supabase Realtime for user_devices table.
-- Lets the Settings/Devices screen reflect a new Magic binding (Mac/Windows)
-- the instant the desktop app calls /api/magic/register — no manual refresh.
--
-- Mirror of 20260515_enable_protected_devices_realtime: publication-add only,
-- no RLS (the rebreak schema relies on the client-side user_id filter, same as
-- protected_devices). INSERT/UPDATE/DELETE are published by default.
--
-- 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.user_devices;
