makeyangcom 8 months ago
parent
commit
2983209116
1 changed files with 23 additions and 0 deletions
  1. 23 0
      wiki/course/2.0.0.md

+ 23 - 0
wiki/course/2.0.0.md

@@ -88,6 +88,29 @@ CREATE TABLE `game_server_data` (
 ) 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