-- CreateTable
CREATE TABLE "BlockSnapshot" (
    "id" TEXT NOT NULL,
    "blockPath" TEXT NOT NULL,
    "version" TEXT NOT NULL,
    "changelog" JSONB NOT NULL DEFAULT '[]',
    "html" TEXT NOT NULL,
    "css" TEXT NOT NULL,
    "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,

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

-- CreateIndex
CREATE INDEX "BlockSnapshot_blockPath_idx" ON "BlockSnapshot"("blockPath");

-- CreateIndex
CREATE UNIQUE INDEX "BlockSnapshot_blockPath_version_key" ON "BlockSnapshot"("blockPath", "version");
