CREATE TABLE IF NOT EXISTS project_follow (
    id BIGSERIAL PRIMARY KEY,
    project UUID NOT NULL,
    "user" UUID NOT NULL,
    created_at TIMESTAMPTZ NOT NULL,
    UNIQUE (project, "user")
);

CREATE UNIQUE INDEX idx_project_follow_project_user ON project_follow (project, "user");
