Skip to content

Commit

Permalink
updated db
Browse files Browse the repository at this point in the history
  • Loading branch information
amjed-ali-k committed Oct 24, 2023
1 parent 7b0ff42 commit 9914991
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions migrations/20231024195850_cl_4/migration.sql
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");

0 comments on commit 9914991

Please sign in to comment.