/*
  Warnings:

  - You are about to drop the column `isFinalized` on the `inuvo_click` table. All the data in the column will be lost.

*/
-- AlterTable
ALTER TABLE "click" ADD COLUMN     "isFinalized" BOOLEAN NOT NULL DEFAULT false,
ADD COLUMN     "keywordId" INTEGER,
ADD COLUMN     "tracker" "TrackerType",
ADD COLUMN     "trackerExternalClickId" TEXT,
ALTER COLUMN "clickType" DROP NOT NULL;

-- AlterTable
ALTER TABLE "inuvo_click" DROP COLUMN "isFinalized";

-- AddForeignKey
ALTER TABLE "click" ADD CONSTRAINT "click_keywordId_fkey" FOREIGN KEY ("keywordId") REFERENCES "keyword"("id") ON DELETE SET NULL ON UPDATE CASCADE;
