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

13 lines
897 B
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.
-- 奖励对照表:按档位与方向(顺时针/逆时针)存储权重,无自增 ID
-- 与 dice_reward_config 通过 end_index(=DiceRewardConfig.id) 关联
CREATE TABLE IF NOT EXISTS `dice_reward` (
`tier` varchar(20) NOT NULL COMMENT '档位 T1-T5/BIGWIN',
`direction` tinyint NOT NULL COMMENT '0=顺时针,1=逆时针',
`end_index` int unsigned NOT NULL COMMENT '结束索引DiceRewardConfig.id',
`weight` int unsigned NOT NULL DEFAULT 1 COMMENT '权重 1-10000档位内按权重比抽取',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
`delete_time` datetime DEFAULT NULL COMMENT '软删除时间',
PRIMARY KEY (`tier`, `direction`, `end_index`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='奖励对照表-按档位与方向存储权重';