/*
 Navicat MySQL Data Transfer

 Source Server         : localhost_3306
 Source Server Type    : MySQL
 Source Server Version : 80018
 Source Host           : localhost:3306
 Source Schema         : db_stu

 Target Server Type    : MySQL
 Target Server Version : 80018
 File Encoding         : 65001

 Date: 08/07/2020 20:37:07
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for admin
-- ----------------------------
DROP TABLE IF EXISTS `admin`;
CREATE TABLE `admin`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `password` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of admin
-- ----------------------------
INSERT INTO `admin` VALUES (1, 'admin', '333');
INSERT INTO `admin` VALUES (2, 'user', '222');
INSERT INTO `admin` VALUES (3, 'Carsar', '111');

-- ----------------------------
-- Table structure for students
-- ----------------------------
DROP TABLE IF EXISTS `students`;
CREATE TABLE `students`  (
  `sid` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '学生编号',
  `sname` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '学生姓名',
  `age` int(3) NOT NULL DEFAULT 21 COMMENT '学生年龄',
  `sclass` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '学生班级',
  `gender` enum('男','女') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '男' COMMENT '学生性别',
  `email` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '学生邮箱',
  `phone` varchar(11) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '学生电话',
  `snum` bigint(20) NOT NULL COMMENT '学生学号',
  PRIMARY KEY (`sid`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 24 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of students
-- ----------------------------
INSERT INTO `students` VALUES (1, '王昭君', 19, '美女培训班', '女', '1234567@qq.com', '110', 190111);
INSERT INTO `students` VALUES (2, '西施', 22, '美女培训班', '女', '1111111@qq.com', '120', 190112);
INSERT INTO `students` VALUES (3, '貂蝉', 25, '美女培训班', '女', '2222222@qq.com', '130', 190113);
INSERT INTO `students` VALUES (4, '杨玉环', 23, '美女培训班', '女', '3333333@qq.com', '140', 190114);
INSERT INTO `students` VALUES (6, '赵云', 25, '帅哥培训班', '男', '5555555@qq.com', '169', 190116);
INSERT INTO `students` VALUES (7, '关羽', 32, '帅哥培训班', '男', '6666666@qq.com', '179', 190117);
INSERT INTO `students` VALUES (8, '妲己', 21, '美女培训班', '女', '8199999@qq.com', '111', 190211);
INSERT INTO `students` VALUES (24, '小乔', 19, '美女培训班', '女', '888888@qq.com', '189', 190122);
INSERT INTO `students` VALUES (32, '周瑜', 21, '帅哥培训班', '男', '15131564321@qq.com', '911', 192215);
INSERT INTO `students` VALUES (34, '奥巴马', 21, '外国语二班', '男', '13140422.qq.com', '910', 190315);
INSERT INTO `students` VALUES (35, '胡歌', 21, '帅哥培训班', '男', '5131564321@qq.com', '909', 192015);
INSERT INTO `students` VALUES (36, '子枫', 19, '美术一班', '女', '131564321@qq.com', '199', 190215);
INSERT INTO `students` VALUES (37, '川普', 70, '杠精培训班', '男', '250250250@gmail.com', '250', 192918);
INSERT INTO `students` VALUES (39, '杨幂', 22, '影视一班', '女', '8938398@qq.com', '123', 1921921);
INSERT INTO `students` VALUES (40, '宋祖儿', 21, '影视二班', '女', '165456456@qq.com', '799', 190422);

SET FOREIGN_KEY_CHECKS = 1;
