-- CreateTable
CREATE TABLE "website_settings" (
    "id" SERIAL NOT NULL,
    "createDate" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,

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

-- CreateTable
CREATE TABLE "_wrongDomains" (
    "A" INTEGER NOT NULL,
    "B" INTEGER NOT NULL
);

-- CreateIndex
CREATE UNIQUE INDEX "_wrongDomains_AB_unique" ON "_wrongDomains"("A", "B");

-- CreateIndex
CREATE INDEX "_wrongDomains_B_index" ON "_wrongDomains"("B");

-- AddForeignKey
ALTER TABLE "_wrongDomains" ADD CONSTRAINT "_wrongDomains_A_fkey" FOREIGN KEY ("A") REFERENCES "business_direction"("id") ON DELETE CASCADE ON UPDATE CASCADE;

-- AddForeignKey
ALTER TABLE "_wrongDomains" ADD CONSTRAINT "_wrongDomains_B_fkey" FOREIGN KEY ("B") REFERENCES "website_settings"("id") ON DELETE CASCADE ON UPDATE CASCADE;
