This commit is contained in:
makeyangcom
2024-03-07 12:26:48 +08:00
parent 5f394e80dd
commit ec29d74471

View File

@@ -69,7 +69,7 @@ CREATE TABLE `game_account_data` (
`update_at` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
`delete_at` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`account_id`),
KEY `status` (`account_status`)
KEY `status` (`account_status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='游戏账号数据表';
```
@@ -114,8 +114,28 @@ CREATE TABLE `game_player_data` (
`update_at` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
`delete_at` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`player_id`),
KEY `status` (`player_status`),
KEY `status` (`player_status`) USING BTREE,
KEY `account_id` (`player_account_id`) USING BTREE,
KEY `server_id` (`player_server_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='游戏玩家数据表';
```
> 执行下面的MySQL脚本创建游戏地图数据表
```mysql
CREATE TABLE `game_map_data` (
`map_id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '编号',
`map_server_id` int(11) NOT NULL DEFAULT '0' COMMENT '服务器编号',
`map_number` varchar(50) NOT NULL DEFAULT '' COMMENT '地图编号',
`map_name` varchar(50) NOT NULL DEFAULT '' COMMENT '地图名称',
`map_default_x` int(11) NOT NULL DEFAULT '0' COMMENT '默认X坐标',
`map_default_y` int(11) NOT NULL DEFAULT '0' COMMENT '默认Y坐标',
`map_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 (`map_id`),
KEY `status` (`map_status`) USING BTREE,
KEY `server_id` (`map_server_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='游戏地图数据表';
```