-- CreateTable
CREATE TABLE "CallSipMapping" (
    "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
    "setupId" INTEGER NOT NULL,
    "twilioCallSid" TEXT NOT NULL,
    "sipCallId" TEXT,
    "fetchedAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
);

-- CreateIndex
CREATE UNIQUE INDEX "CallSipMapping_twilioCallSid_key" ON "CallSipMapping"("twilioCallSid");

-- CreateIndex
CREATE INDEX "CallSipMapping_setupId_idx" ON "CallSipMapping"("setupId");
