-
Notifications
You must be signed in to change notification settings - Fork 1
/
admintest.sql
132 lines (117 loc) · 3.96 KB
/
admintest.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
/*
Navicat Premium Data Transfer
Source Server : admintest
Source Server Type : MySQL
Source Server Version : 50719
Source Host : localhost:3306
Source Schema : admintest
Target Server Type : MySQL
Target Server Version : 50719
File Encoding : 65001
Date: 21/02/2019 15:55:32
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for message
-- ----------------------------
DROP TABLE IF EXISTS `message`;
CREATE TABLE `message` (
`s_num` varchar(20) NOT NULL,
`title` varchar(40) NOT NULL,
`message` text,
PRIMARY KEY (`s_num`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of message
-- ----------------------------
BEGIN;
INSERT INTO `message` VALUES ('123', 'new essay', 'fengyufei');
COMMIT;
-- ----------------------------
-- Table structure for shop
-- ----------------------------
DROP TABLE IF EXISTS `shop`;
CREATE TABLE `shop` (
`name` varchar(20) NOT NULL,
`message` text,
`key1` text,
`key2` text,
`classname` varchar(40) DEFAULT NULL,
`picture` text,
PRIMARY KEY (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of shop
-- ----------------------------
BEGIN;
INSERT INTO `shop` VALUES ('1', '1', '1', '1', '英语', 'timg.jpeg');
INSERT INTO `shop` VALUES ('2', '2', '2', '2', '机械', 'timg.jpeg');
INSERT INTO `shop` VALUES ('3', '3', '3', '3', '计算机', 'timg.jpeg');
INSERT INTO `shop` VALUES ('4', '4', '4', '4', '体育', 'timg.jpeg');
INSERT INTO `shop` VALUES ('5', '5', '5', '5', '艺术', 'timg.jpeg');
COMMIT;
-- ----------------------------
-- Table structure for student_detail
-- ----------------------------
DROP TABLE IF EXISTS `student_detail`;
CREATE TABLE `student_detail` (
`name` varchar(20) NOT NULL,
`num` varchar(20) NOT NULL,
`message` text,
`key1` text,
`key2` text,
`classname` varchar(40) DEFAULT NULL,
`picture` text,
PRIMARY KEY (`num`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of student_detail
-- ----------------------------
BEGIN;
INSERT INTO `student_detail` VALUES ('feng', '1234', 'fengyufei', '123', '123', '英语', 'timg.jpeg');
INSERT INTO `student_detail` VALUES ('xie', '12345', 'xiiii', '123', '123', '计算机', 'test2.png');
INSERT INTO `student_detail` VALUES ('yu', '444', 'yyy', '4', '44', '艺术', 'test1.png');
COMMIT;
-- ----------------------------
-- Table structure for student_info
-- ----------------------------
DROP TABLE IF EXISTS `student_info`;
CREATE TABLE `student_info` (
`num` int(10) unsigned NOT NULL AUTO_INCREMENT,
`s_num` varchar(20) NOT NULL,
`s_name` varchar(40) NOT NULL,
`s_score` varchar(20) DEFAULT NULL,
`s_image` varchar(40) DEFAULT NULL,
PRIMARY KEY (`num`)
) ENGINE=InnoDB AUTO_INCREMENT=52 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of student_info
-- ----------------------------
BEGIN;
INSERT INTO `student_info` VALUES (42, '2', '1', '3', 'timg.jpeg');
INSERT INTO `student_info` VALUES (44, '009', 'yu', '60', 'timg.jpeg');
INSERT INTO `student_info` VALUES (45, '625', 'fei', '91', 'test2.png');
INSERT INTO `student_info` VALUES (46, '2', '1', '3', 'timg.jpeg');
INSERT INTO `student_info` VALUES (48, '009', 'yu', '60', 'timg.jpeg');
INSERT INTO `student_info` VALUES (49, '625', 'fei', '91', 'test2.png');
INSERT INTO `student_info` VALUES (51, '12', 'feng', '100', 'test1.png');
COMMIT;
-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`Id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`password` varchar(255) DEFAULT NULL,
PRIMARY KEY (`Id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of user
-- ----------------------------
BEGIN;
INSERT INTO `user` VALUES (1, 'admin', 'admin');
INSERT INTO `user` VALUES (2, 'test', 'test');
COMMIT;
SET FOREIGN_KEY_CHECKS = 1;