| 1 | CREATE TABLE "repository" ( |
| 2 | "id" text PRIMARY KEY |
| 3 | "name" text NOT NULL |
| 4 | "slug" text NOT NULL |
| 5 | "description" text, |
| 6 | "organizationId" text, |
| 7 | "ownerId" text NOT NULL |
| 8 | "createdAt" timestamp DEFAULT |
| 9 | "updatedAt" timestamp DEFAULT |
| 10 | CONSTRAINT "repository_id_unique" UNIQUE |
| 11 | ); |
| 12 | --> statement-breakpoint |
| 13 | ALTER TABLE "repository" ADD |
| 14 | ALTER TABLE "repository" ADD |
| 15 | CREATE UNIQUE INDEX "repository_org_slug_idx" ON |
| 16 | CREATE UNIQUE INDEX "repository_owner_slug_idx" ON |