-- CreateTable
CREATE TABLE "DeletedAccount" (
    "id" SERIAL NOT NULL,
    "userId" INTEGER NOT NULL,
    "email" VARCHAR(255) NOT NULL,
    "role" "RoleName" NOT NULL DEFAULT 'USER',
    "reason" TEXT,
    "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,

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

-- CreateIndex
CREATE INDEX "DeletedAccount_userId_idx" ON "DeletedAccount"("userId");

-- CreateIndex
CREATE INDEX "DeletedAccount_email_idx" ON "DeletedAccount"("email");
