create table if not exists repo_branch ( repo uuid not null, name varchar(255) not null, oid varchar(255) not null, upstream varchar(255), head boolean default false not null, created_at timestamp with time zone not null, updated_at timestamp with time zone not null, primary key (repo, name) ); create index if not exists idx_repo_branch_repo on repo_branch (repo);