-- AlterTable
ALTER TABLE "claude_jobs" ADD COLUMN     "cache_read_tokens" INTEGER,
ADD COLUMN     "cache_write_tokens" INTEGER,
ADD COLUMN     "input_tokens" INTEGER,
ADD COLUMN     "model_id" TEXT,
ADD COLUMN     "output_tokens" INTEGER;

-- CreateTable
CREATE TABLE "model_prices" (
    "id" TEXT NOT NULL,
    "model_id" TEXT NOT NULL,
    "input_price_per_1m" DECIMAL(12,6) NOT NULL,
    "output_price_per_1m" DECIMAL(12,6) NOT NULL,
    "cache_read_price_per_1m" DECIMAL(12,6) NOT NULL,
    "cache_write_price_per_1m" DECIMAL(12,6) NOT NULL,
    "currency" TEXT NOT NULL DEFAULT 'USD',
    "created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
    "updated_at" TIMESTAMP(3) NOT NULL,

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

-- CreateIndex
CREATE UNIQUE INDEX "model_prices_model_id_key" ON "model_prices"("model_id");
