-- CreateTable CREATE TABLE "Webhook" ( "userId" TEXT NOT NULL, "url" TEXT NOT NULL, "enabled" BOOLEAN NOT NULL DEFAULT true, CONSTRAINT "Webhook_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User" ("userId") ON DELETE RESTRICT ON UPDATE CASCADE ); -- CreateIndex CREATE UNIQUE INDEX "Webhook_url_userId_key" ON "Webhook"("url", "userId");