From 88a5dc2a58bb476c2664bb7deebd8ce1e1020d36 Mon Sep 17 00:00:00 2001 From: Huskydog9988 <39809509+Huskydog9988@users.noreply.github.com> Date: Fri, 14 Mar 2025 11:37:31 -0400 Subject: [PATCH] add migrations to store ca and session in db --- .../migration.sql | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 prisma/migrations/20250314153636_store_ca_and_session_in_db/migration.sql diff --git a/prisma/migrations/20250314153636_store_ca_and_session_in_db/migration.sql b/prisma/migrations/20250314153636_store_ca_and_session_in_db/migration.sql new file mode 100644 index 0000000..b342bf4 --- /dev/null +++ b/prisma/migrations/20250314153636_store_ca_and_session_in_db/migration.sql @@ -0,0 +1,17 @@ +-- CreateTable +CREATE TABLE "Certificate" ( + "id" TEXT NOT NULL, + "privateKey" TEXT NOT NULL, + "certificate" TEXT NOT NULL, + "blacklisted" BOOLEAN NOT NULL DEFAULT false, + + CONSTRAINT "Certificate_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "Session" ( + "token" TEXT NOT NULL, + "data" JSONB NOT NULL, + + CONSTRAINT "Session_pkey" PRIMARY KEY ("token") +);