-- CreateTable
CREATE TABLE "ivr_api_logs" (
    "id" SERIAL NOT NULL,
    "callId" TEXT NOT NULL,
    "callerId" TEXT NOT NULL,
    "request" JSONB NOT NULL,
    "response" JSONB NOT NULL,
    "durationMs" INTEGER,
    "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,

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

-- CreateIndex
CREATE INDEX "ivr_api_logs_callId_idx" ON "ivr_api_logs"("callId");

-- CreateIndex
CREATE INDEX "ivr_api_logs_callerId_idx" ON "ivr_api_logs"("callerId");
