configuration/prisma/migrations/20230125112738_init/migration.sql

18 lines
479 B
MySQL
Raw Normal View History

2023-01-25 14:16:13 +00:00
-- CreateEnum
CREATE TYPE "Domain" AS ENUM ('USER');
-- CreateTable
CREATE TABLE "configuration" (
"uuid" UUID NOT NULL,
"domain" "Domain" NOT NULL,
"key" TEXT NOT NULL,
"value" TEXT NOT NULL,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" TIMESTAMP(3) NOT NULL,
CONSTRAINT "configuration_pkey" PRIMARY KEY ("uuid")
);
-- CreateIndex
CREATE UNIQUE INDEX "configuration_domain_key_key" ON "configuration"("domain", "key");