CREATE TABLE IF NOT EXISTS user_password_reset (
    token VARCHAR(255) PRIMARY KEY,
    user_uid UUID NOT NULL,
    expires_at TIMESTAMPTZ NOT NULL,
    used BOOLEAN NOT NULL DEFAULT false,
    created_at TIMESTAMPTZ NOT NULL
);

CREATE INDEX idx_user_password_reset_user_uid ON user_password_reset (user_uid);
