-- CreateTable
CREATE TABLE "RefinementLevelConfig" (
    "level" INTEGER NOT NULL,
    "successRate" DOUBLE PRECISION NOT NULL,
    "destroyRate" DOUBLE PRECISION NOT NULL,
    "sellMultiplier" DOUBLE PRECISION NOT NULL,
    "cost" INTEGER NOT NULL,
    "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
    "updatedAt" TIMESTAMP(3) NOT NULL,

    CONSTRAINT "RefinementLevelConfig_pkey" PRIMARY KEY ("level")
);

-- CreateTable
CREATE TABLE "RefinementBattleConfig" (
    "levelGap" INTEGER NOT NULL,
    "winRate" DOUBLE PRECISION NOT NULL,
    "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
    "updatedAt" TIMESTAMP(3) NOT NULL,

    CONSTRAINT "RefinementBattleConfig_pkey" PRIMARY KEY ("levelGap")
);

-- CreateTable
CREATE TABLE "RefinementSystemConfig" (
    "key" TEXT NOT NULL,
    "value" TEXT NOT NULL,
    "description" TEXT,
    "updatedAt" TIMESTAMP(3) NOT NULL,

    CONSTRAINT "RefinementSystemConfig_pkey" PRIMARY KEY ("key")
);
