-- CreateTable
CREATE TABLE "AtlasEntry" (
    "id" TEXT NOT NULL PRIMARY KEY,
    "gpuModel" TEXT NOT NULL,
    "vramMb" INTEGER NOT NULL,
    "modelId" TEXT NOT NULL,
    "quantization" TEXT NOT NULL DEFAULT 'unknown',
    "tpsP50" REAL NOT NULL,
    "tpsP10" REAL NOT NULL,
    "successRate" REAL NOT NULL,
    "measurementCount" INTEGER NOT NULL,
    "firstTokenLatencyMs" REAL NOT NULL,
    "updatedAt" DATETIME NOT NULL
);

-- CreateIndex
CREATE UNIQUE INDEX "AtlasEntry_gpuModel_vramMb_modelId_quantization_key" ON "AtlasEntry"("gpuModel", "vramMb", "modelId", "quantization");
