-- CreateTable
CREATE TABLE "AdsReach" (
    "id" TEXT NOT NULL,
    "user_id" TEXT NOT NULL,
    "ad_id" TEXT NOT NULL,
    "created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,

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

-- CreateIndex
CREATE UNIQUE INDEX "AdsReach_user_id_key" ON "AdsReach"("user_id");

-- AddForeignKey
ALTER TABLE "AdsReach" ADD CONSTRAINT "AdsReach_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
