提交roll日创建

This commit is contained in:
2026-07-19 12:05:45 +08:00
parent 6a9ff1a1e5
commit 55fdf24f3a
9 changed files with 118 additions and 12 deletions
+7 -1
View File
@@ -17,7 +17,9 @@ CREATE TABLE IF NOT EXISTS `tt_official_roll_config` (
`roll_password` varchar(32) DEFAULT '' COMMENT '房间密码,为空则无密码',
`min_recharge` decimal(10,2) DEFAULT '0.00' COMMENT '充值门槛,0为无门槛',
`people_num` int DEFAULT '50' COMMENT '人数上限',
`robot_num` int DEFAULT '0' COMMENT '每次自动加入的机器人数量,0则不加',
`robot_num` int DEFAULT '0' COMMENT '每次自动加入的机器人数量,0则不加(兼容旧数据)',
`robot_min` int DEFAULT '0' COMMENT '每次自动加入的机器人数量下限,0则不加',
`robot_max` int DEFAULT '0' COMMENT '每次自动加入的机器人数量上限,0则不加',
`cdk_count` int DEFAULT '0' COMMENT '每次自动创建房间生成的CDK数量,0则不启用CDK',
`sort_by` int DEFAULT '0' COMMENT '排序',
`status` char(1) DEFAULT '0' COMMENT '状态 0启用 1停用',
@@ -33,6 +35,10 @@ CREATE TABLE IF NOT EXISTS `tt_official_roll_config` (
-- 若 tt_official_roll_config 表此前已创建(无 cdk_count 列),执行下句补列;全新执行本脚本已含该列,可跳过:
-- ALTER TABLE `tt_official_roll_config` ADD COLUMN `cdk_count` int DEFAULT '0' COMMENT '每次自动创建房间生成的CDK数量,0则不启用CDK';
-- 若 tt_official_roll_config 表此前已创建(无 robot_min/robot_max 列),执行下句补列;全新执行本脚本已含该列,可跳过:
-- ALTER TABLE `tt_official_roll_config` ADD COLUMN `robot_min` int DEFAULT '0' COMMENT '每次自动加入的机器人数量下限,0则不加';
-- ALTER TABLE `tt_official_roll_config` ADD COLUMN `robot_max` int DEFAULT '0' COMMENT '每次自动加入的机器人数量上限,0则不加';
-- ------------------------------------------------------------
-- 2) tt_roll 增加 official_config_id 列(标记房间由哪条配置生成,用于每日幂等)
-- 注意:MySQL 不支持 ADD COLUMN IF NOT EXISTS,若该列已存在请跳过本句。