| 1 | CREATE TABLE "release" ( |
| 2 | "id" text PRIMARY KEY |
| 3 | "repositoryId" text NOT NULL |
| 4 | "tagName" text NOT NULL |
| 5 | "name" text, |
| 6 | "body" text, |
| 7 | "isDraft" boolean DEFAULT |
| 8 | "isPrerelease" boolean DEFAULT |
| 9 | "authorId" text, |
| 10 | "publishedAt" timestamp with time zone, |
| 11 | "createdAt" timestamp with time zone DEFAULT |
| 12 | "updatedAt" timestamp with time zone DEFAULT |
| 13 | ); |
| 14 | --> statement-breakpoint |
| 15 | ALTER TABLE "release" ADD |
| 16 | ALTER TABLE "release" ADD |
| 17 | CREATE UNIQUE INDEX "release_repository_tag_idx" ON |
| 18 | CREATE INDEX "release_repository_created_idx" ON |