-- CreateTable
CREATE TABLE "Edition" (
    "id" TEXT NOT NULL,
    "title" VARCHAR(500) NOT NULL,
    "categoryId" TEXT NOT NULL,
    "document" TEXT NOT NULL,
    "image" TEXT,

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

-- AddForeignKey
ALTER TABLE "Edition" ADD CONSTRAINT "Edition_categoryId_fkey" FOREIGN KEY ("categoryId") REFERENCES "Category"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
