Files
bobinoo/supabase/migrations/20261128130000_notifications_actor_index.sql
2026-11-27 17:53:59 +00:00

4 lines
306 B
SQL

-- Bobinoo — index pour les notifications d'abonnement (le déclencheur cherche par compte + personne). Idempotent.
create index if not exists notifications_user_actor_idx on public.notifications (user_id, actor_id);
create index if not exists notifications_actor_idx on public.notifications (actor_id);