diff --git a/backend/src/database/migrations/V1782387621__create_repo_affiliation_registry.sql b/backend/src/database/migrations/V1782387621__create_repo_affiliation_registry.sql new file mode 100644 index 0000000000..7e03efd102 --- /dev/null +++ b/backend/src/database/migrations/V1782387621__create_repo_affiliation_registry.sql @@ -0,0 +1,10 @@ +create table if not exists git."repoAffiliationRegistry" ( + "repoId" uuid primary key references public.repositories(id) on delete cascade, + "filePath" text, + "fileHash" text, + "status" text not null, + "snapshot" jsonb, + "lastRunAt" timestamptz, + "createdAt" timestamptz not null default now(), + "updatedAt" timestamptz not null default now() +); \ No newline at end of file