CREATE TABLE IF NOT EXISTS pull_request_review_request
(
    repo         UUID        NOT NULL,
    number       BIGINT      NOT NULL,
    reviewer     UUID        NOT NULL,
    requested_by UUID        NOT NULL,
    requested_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
    dismissed_at TIMESTAMPTZ NULL,
    dismissed_by UUID        NULL,
    PRIMARY KEY (repo, number, reviewer)
);
