ALTER TABLE IF EXISTS public.event_queue DROP COLUMN IF EXISTS status;

CREATE INDEX IF NOT EXISTS event_queue_lock_idx
    ON public.event_queue (lock_expires);
    
CREATE UNIQUE INDEX IF NOT EXISTS event_queue_event_id_uq
    ON public.event_queue (event_id);

CREATE UNIQUE INDEX IF NOT EXISTS user_invites_token_idx
    ON public.user_invites (token);

CREATE INDEX IF NOT EXISTS emails_user_id_idx
    ON public.emails (user_id);