-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7b0ff42
commit 9914991
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
Warnings: | ||
- You are about to drop the `ExamResult` table. If the table is not empty, all the data it contains will be lost. | ||
- You are about to drop the `Mark` table. If the table is not empty, all the data it contains will be lost. | ||
*/ | ||
-- DropTable | ||
DROP TABLE "ExamResult"; | ||
|
||
-- DropTable | ||
DROP TABLE "Mark"; | ||
|
||
-- CreateTable | ||
CREATE TABLE "StudentBatchForExam" ( | ||
"id" TEXT NOT NULL, | ||
"name" TEXT NOT NULL, | ||
"students" JSONB NOT NULL, | ||
"studentsCount" INTEGER NOT NULL, | ||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
"updatedAt" TIMESTAMP(3) NOT NULL, | ||
"createdById" TEXT NOT NULL, | ||
|
||
CONSTRAINT "StudentBatchForExam_pkey" PRIMARY KEY ("id") | ||
); | ||
|
||
-- CreateIndex | ||
CREATE INDEX "StudentBatchForExam_createdById_idx" ON "StudentBatchForExam"("createdById"); |