| 1 | CREATE TYPE "public"."repository_role" AS ENUM('read', 'triage', 'write', 'maintain', 'admin');--> statement-breakpoint |
| 2 | CREATE TABLE "repository_collaborator" ( |
| 3 | "id" text PRIMARY KEY |
| 4 | "repositoryId" text NOT NULL |
| 5 | "userId" text NOT NULL |
| 6 | "role" "repository_role" NOT NULL |
| 7 | "invitedById" text, |
| 8 | "createdAt" timestamp with time zone DEFAULT |
| 9 | "acceptedAt" timestamp with time zone |
| 10 | ); |
| 11 | --> statement-breakpoint |
| 12 | ALTER TABLE "repository_collaborator" ADD |
| 13 | ALTER TABLE "repository_collaborator" ADD |
| 14 | ALTER TABLE "repository_collaborator" ADD |
| 15 | CREATE UNIQUE INDEX "repository_collaborator_repository_user_idx" ON |
| 16 | CREATE INDEX "repository_collaborator_user_idx" ON |