CREATE TABLE IF NOT EXISTS issue_label ( issue UUID NOT NULL, label BIGINT NOT NULL, relation_at TIMESTAMPTZ NOT NULL, PRIMARY KEY (issue, label) );