fediverse-auth/backend/prisma/migrations/20240506211400_/migration.sql

22 lines
577 B
MySQL
Raw Normal View History

2024-05-20 21:36:39 -07:00
-- CreateTable
CREATE TABLE "oidc_model" (
"id" TEXT NOT NULL,
"type" INTEGER NOT NULL,
"payload" JSONB NOT NULL,
"grantId" TEXT,
"userCode" TEXT,
"uid" TEXT,
"expiresAt" TIMESTAMP(3),
"consumedAt" TIMESTAMP(3),
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" TIMESTAMP(3) NOT NULL,
CONSTRAINT "oidc_model_pkey" PRIMARY KEY ("id")
);
-- CreateIndex
CREATE UNIQUE INDEX "oidc_model_uid_key" ON "oidc_model"("uid");
-- CreateIndex
CREATE UNIQUE INDEX "oidc_model_id_type_key" ON "oidc_model"("id", "type");