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

15 lines
1.1 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.
-- 权重配比测试记录表:保存测试时的权重快照与落点统计,用于验证配比效果
-- weight_config_snapshot: 测试时使用的权重配比快照(按档位 T1-T5/BIGWIN 的 id, grid_number, tier, weight
-- result_counts: 落点统计 JSON键为 grid_number色子点数值为出现次数
CREATE TABLE IF NOT EXISTS `dice_reward_config_record` (
`id` int unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`test_count` int unsigned NOT NULL DEFAULT 100 COMMENT '测试次数100/500/1000',
`weight_config_snapshot` json DEFAULT NULL COMMENT '测试时权重配比快照:按档位保存 id,grid_number,tier,weight',
`result_counts` json DEFAULT NULL COMMENT '落点统计grid_number=>出现次数',
`admin_id` int unsigned DEFAULT NULL COMMENT '执行测试的管理员ID',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`id`),
KEY `idx_create_time` (`create_time`),
KEY `idx_admin_id` (`admin_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='奖励配置权重测试记录';