create table if not exists project_follow
(
    id         bigserial
        primary key,
    project    uuid                     not null,
    "user"     uuid                     not null,
    created_at timestamp with time zone not null,
    unique (project, "user")
);

create unique index if not exists idx_project_follow_project_user
    on project_follow (project, "user");
