Files
dafuweng-saiadmin6.x/server/db/dice_reward_config_test.sql
2026-04-28 10:24:01 +08:00

21 lines
1.3 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- 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_numberweight 1-10000';