This commit is contained in:
makeyangcom
2024-03-07 14:16:56 +08:00
parent ec29d74471
commit 2983209116

View File

@@ -88,6 +88,29 @@ CREATE TABLE `game_server_data` (
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='游戏服务器数据表'; ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='游戏服务器数据表';
``` ```
> 执行下面的MySQL脚本创建游戏等级数据表
```mysql
CREATE TABLE `game_level_data` (
`level_id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '编号',
`level_server_id` int(11) NOT NULL DEFAULT '0' COMMENT '游戏编号',
`level_career` varchar(20) NOT NULL DEFAULT '' COMMENT '职业',
`level_name` int(50) NOT NULL DEFAULT '0' COMMENT '等级名称',
`level_min` int(11) NOT NULL DEFAULT '0' COMMENT '最小值',
`level_max` int(11) NOT NULL DEFAULT '0' COMMENT '最大值',
`level_life_value` int(11) NOT NULL DEFAULT '0' COMMENT '生命值',
`level_magic_value` int(11) NOT NULL DEFAULT '0' COMMENT '魔法值',
`level_status` tinyint(2) NOT NULL DEFAULT '2' COMMENT '状态 1停用 2启用',
`create_at` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
`update_at` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
`delete_at` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`level_id`),
KEY `status` (`level_status`),
KEY `server_id` (`level_server_id`) USING BTREE,
KEY `career` (`level_career`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=191 DEFAULT CHARSET=utf8mb4 COMMENT='游戏等级数据表';
```
> 执行下面的MySQL脚本创建游戏玩家数据表 > 执行下面的MySQL脚本创建游戏玩家数据表
```mysql ```mysql