-- DiceRewardConfigTest 新表：奖励配置（T1-T5 按档位+权重直接抽取 grid_number）
-- 字段：s_end_index 改为 n_start_index（逆时针起始索引），n_end_index 改为 s_start_index（顺时针起始索引）
-- weight 取值范围 1-10000，各档位权重和不限制
CREATE TABLE IF NOT EXISTS `dice_reward_config_test` (
    `id` int unsigned NOT NULL AUTO_INCREMENT,
    `grid_number` int NOT NULL DEFAULT 0 COMMENT '色子点数',
    `ui_text` varchar(64) NOT NULL DEFAULT '' COMMENT '前端显示文本',
    `real_ev` decimal(10,2) NOT NULL DEFAULT 0.00 COMMENT '真实资金结算',
    `tier` varchar(16) NOT NULL DEFAULT '' COMMENT '所属档位 T1-T5|BIGWIN',
    `weight` int unsigned NOT NULL DEFAULT 1 COMMENT '权重 1-10000，按档位内权重比抽取 grid_number',
    `n_start_index` int NOT NULL DEFAULT 0 COMMENT '逆时针起始索引',
    `s_start_index` int NOT NULL DEFAULT 0 COMMENT '顺时针起始索引',
    `remark` varchar(255) NOT NULL DEFAULT '',
    `type` tinyint NOT NULL DEFAULT 1,
    `create_time` datetime DEFAULT NULL,
    `update_time` datetime DEFAULT NULL,
    PRIMARY KEY (`id`),
    KEY `idx_tier` (`tier`),
    KEY `idx_grid_number` (`grid_number`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='奖励配置Test：按档位权重抽 grid_number，weight 1-10000';
