-- CreateTable: 提取手续费配置表
CREATE TABLE "withdrawal_fee_configs" (
    "config_id" BIGSERIAL NOT NULL,
    "fee_type" VARCHAR(20) NOT NULL,
    "fee_value" DECIMAL(20,8) NOT NULL,
    "min_fee" DECIMAL(20,8) NOT NULL DEFAULT 0,
    "max_fee" DECIMAL(20,8) NOT NULL DEFAULT 0,
    "is_active" BOOLEAN NOT NULL DEFAULT true,
    "memo" VARCHAR(200),
    "created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
    "updated_at" TIMESTAMP(3) NOT NULL,

    CONSTRAINT "withdrawal_fee_configs_pkey" PRIMARY KEY ("config_id")
);

-- CreateIndex
CREATE INDEX "withdrawal_fee_configs_is_active_idx" ON "withdrawal_fee_configs"("is_active");
