ALTER TABLE public.user_notifications DROP CONSTRAINT IF EXISTS user_notifications_user_id_key; ALTER TABLE public.user_notifications DROP CONSTRAINT IF EXISTS user_notifications_user_id_fingerprint_key; ALTER TABLE public.user_notifications ADD CONSTRAINT user_notifications_user_id_fingerprint_key UNIQUE (user_id, fingerprint);