forked from bing6749/GameCollection
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgamecollection.sql
More file actions
83 lines (70 loc) · 2.77 KB
/
gamecollection.sql
File metadata and controls
83 lines (70 loc) · 2.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/*
Navicat Premium Data Transfer
Source Server : localhost_3306
Source Server Type : MySQL
Source Server Version : 80025
Source Host : localhost:3306
Source Schema : gamecollection
Target Server Type : MySQL
Target Server Version : 80025
File Encoding : 65001
Date: 29/06/2021 18:17:44
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for game2048
-- ----------------------------
DROP TABLE IF EXISTS `game2048`;
CREATE TABLE `game2048` (
`id` int NOT NULL,
`score` int NOT NULL COMMENT '成绩',
`num` int NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
CONSTRAINT `FK_user_game2048` FOREIGN KEY (`id`) REFERENCES `user` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of game2048
-- ----------------------------
-- ----------------------------
-- Table structure for planegame
-- ----------------------------
DROP TABLE IF EXISTS `planegame`;
CREATE TABLE `planegame` (
`id` int NOT NULL,
`time` int NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
CONSTRAINT `FK_user_planegame` FOREIGN KEY (`id`) REFERENCES `user` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of planegame
-- ----------------------------
-- ----------------------------
-- Table structure for snakegame
-- ----------------------------
DROP TABLE IF EXISTS `snakegame`;
CREATE TABLE `snakegame` (
`id` int NOT NULL,
`score` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`length` double NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of snakegame
-- ----------------------------
-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` int NOT NULL AUTO_INCREMENT,
`username` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户名',
`password` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '密码',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of user
-- ----------------------------
INSERT INTO `user` VALUES (1, '001', '001');
INSERT INTO `user` VALUES (8, '111', '111');
SET FOREIGN_KEY_CHECKS = 1;