-- CreateTable
CREATE TABLE "mapel" (
    "id" TEXT NOT NULL,
    "no" SERIAL NOT NULL,
    "kodeMapel" TEXT NOT NULL,
    "namaMapel" TEXT NOT NULL,
    "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
    "updatedAt" TIMESTAMP(3) NOT NULL,

    CONSTRAINT "mapel_pkey" PRIMARY KEY ("id")
);

-- CreateIndex
CREATE UNIQUE INDEX "mapel_no_key" ON "mapel"("no");

-- CreateIndex
CREATE UNIQUE INDEX "mapel_kodeMapel_key" ON "mapel"("kodeMapel");
