-
Notifications
You must be signed in to change notification settings - Fork 63
/
micro_service_seclab.sql
100 lines (87 loc) · 3.12 KB
/
micro_service_seclab.sql
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/*
Navicat Premium Data Transfer
Source Server : localhost
Source Server Type : MySQL
Source Server Version : 80022
Source Host : localhost:3306
Source Schema : micro_service_seclab
Target Server Type : MySQL
Target Server Version : 80022
File Encoding : 65001
Date: 08/08/2021 16:12:36
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for coffee_case
-- ----------------------------
DROP TABLE IF EXISTS `coffee_case`;
CREATE TABLE `coffee_case` (
`user_id` int NOT NULL AUTO_INCREMENT COMMENT 'userid',
`username` varchar(255) DEFAULT NULL COMMENT '用户姓名',
`coffee_count` int DEFAULT NULL COMMENT '咖啡数量',
`money` int DEFAULT NULL,
PRIMARY KEY (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- ----------------------------
-- Records of coffee_case
-- ----------------------------
BEGIN;
INSERT INTO `coffee_case` VALUES (1, '小明', 8, -139);
COMMIT;
-- ----------------------------
-- Table structure for order
-- ----------------------------
DROP TABLE IF EXISTS `order`;
CREATE TABLE `order` (
`id` int NOT NULL AUTO_INCREMENT,
`orderid` char(20) DEFAULT NULL,
`user_id` int DEFAULT NULL,
`username` varchar(255) DEFAULT NULL,
`price` decimal(10,2) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- ----------------------------
-- Records of order
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for students
-- ----------------------------
DROP TABLE IF EXISTS `students`;
CREATE TABLE `students` (
`id` int NOT NULL AUTO_INCREMENT,
`username` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
`age` int DEFAULT NULL,
`sex` smallint DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
-- ----------------------------
-- Records of students
-- ----------------------------
BEGIN;
INSERT INTO `students` VALUES (1, 'yueshen', 33, 1);
INSERT INTO `students` VALUES (2, 'tester', 22, 1);
INSERT INTO `students` VALUES (3, 'xiaoming', 33, 1);
COMMIT;
-- ----------------------------
-- Table structure for userinfo
-- ----------------------------
DROP TABLE IF EXISTS `userinfo`;
CREATE TABLE `userinfo` (
`id` int NOT NULL AUTO_INCREMENT,
`username` varchar(255) DEFAULT NULL COMMENT '用户姓名',
`telphone` varchar(11) DEFAULT NULL COMMENT '电话',
`address` varchar(255) DEFAULT NULL COMMENT '地址信息',
`id_number` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '身份证号码',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- ----------------------------
-- Records of userinfo
-- ----------------------------
BEGIN;
INSERT INTO `userinfo` VALUES (1, '小明', '13819218211', '北京市朝阳区广顺南大街21号', '132910123482391');
INSERT INTO `userinfo` VALUES (2, '小红', '13721891234', '天津市南开区28号', '14591829101931');
COMMIT;
SET FOREIGN_KEY_CHECKS = 1;