ALTER TABLE idempotency
    DROP CONSTRAINT idempotency_user_id_fkey;

ALTER TABLE idempotency
    DROP CONSTRAINT idempotency_pkey;

ALTER TABLE idempotency
    ADD PRIMARY KEY (idempotency_key);

ALTER TABLE idempotency
    DROP COLUMN user_id;