1 Star 0 Fork 71

dayaoge/laiwan-game

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
littlegame.sql 4.47 KB
一键复制 编辑 原始数据 按行查看 历史
薯条蘸番茄 提交于 2018-04-19 15:46 . 更新sql
/*
Navicat Premium Data Transfer
Source Server : localhost
Source Server Type : MySQL
Source Server Version : 50717
Source Host : localhost:3306
Source Schema : littlegame
Target Server Type : MySQL
Target Server Version : 50717
File Encoding : 65001
Date: 13/04/2018 18:38:08
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for s_game_config
-- ----------------------------
DROP TABLE IF EXISTS `s_game_config`;
CREATE TABLE `s_game_config` (
`gameId` int(11) NOT NULL,
`playerSum` int(255) NULL DEFAULT NULL COMMENT '这个游戏要多少人参与',
`expride` int(255) NULL DEFAULT NULL COMMENT '超过多少秒解散房间',
`desktopClass` varchar(255) NULL DEFAULT NULL COMMENT '游戏的主类',
PRIMARY KEY (`gameId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '游戏配置表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of s_game_config
-- ----------------------------
INSERT INTO `s_game_config` VALUES (1001, 2, 86400,'com.java80.littlegame.service.gamelogic.caiquan.CaiquanDesktop');
-- ----------------------------
-- Table structure for s_game_info
-- ----------------------------
DROP TABLE IF EXISTS `s_game_info`;
CREATE TABLE `s_game_info` (
`id` int(11) NOT NULL,
`gameName` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`createTime` datetime(0) NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '游戏信息表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of s_game_info
-- ----------------------------
INSERT INTO `s_game_info` VALUES (1001, '猜拳游戏', '2018-04-12 15:36:37');
-- ----------------------------
-- Table structure for u_room_info
-- ----------------------------
DROP TABLE IF EXISTS `u_room_info`;
CREATE TABLE `u_room_info` (
`roomId` int(11) NOT NULL COMMENT '房间id',
`gameId` int(11) NULL DEFAULT NULL,
`password` int(11) NULL DEFAULT NULL,
`status` int(11) NULL DEFAULT NULL COMMENT '0无状态1锁定不可加入2以开始',
`userId` bigint(20) NOT NULL COMMENT '房主',
`createTime` datetime(0) NULL DEFAULT NULL,
PRIMARY KEY (`roomId`, `userId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '房间信息表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of u_room_info
-- ----------------------------
INSERT INTO `u_room_info` VALUES (658651, 1001, 9137, 0, 1, '2018-04-13 10:49:29');
-- ----------------------------
-- Table structure for u_user_info
-- ----------------------------
DROP TABLE IF EXISTS `u_user_info`;
CREATE TABLE `u_user_info` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`nickName` varchar(25) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`loginName` varchar(25) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`password` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`createTime` datetime(0) NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of u_user_info
-- ----------------------------
INSERT INTO `u_user_info` VALUES (1, 'ace', 'ace', '202cb962ac59075b964b07152d234b70', '2018-03-30 11:50:56');
INSERT INTO `u_user_info` VALUES (2, 'ace', '33', '33', '2018-03-30 11:51:04');
INSERT INTO `u_user_info` VALUES (3, 'haiya', 'ace1', '202cb962ac59075b964b07152d234b70', '2018-04-13 15:21:22');
-- ----------------------------
-- Table structure for u_user_room_info
-- ----------------------------
DROP TABLE IF EXISTS `u_user_room_info`;
CREATE TABLE `u_user_room_info` (
`userId` bigint(20) NOT NULL,
`roomId` int(11) NOT NULL,
`gameId` int(11) NULL DEFAULT NULL,
`createTime` datetime(0) NULL DEFAULT NULL,
PRIMARY KEY (`userId`, `roomId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户在哪个房间表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of u_user_room_info
-- ----------------------------
INSERT INTO `u_user_room_info` VALUES (1, 658651, 1001, '2018-04-13 10:49:29');
INSERT INTO `u_user_room_info` VALUES (3, 658651, 1001, '2018-04-13 15:28:48');
SET FOREIGN_KEY_CHECKS = 1;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/dayaoge/laiwan-game.git
git@gitee.com:dayaoge/laiwan-game.git
dayaoge
laiwan-game
laiwan-game
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385