代码拉取完成,页面将自动刷新
/*
Navicat Premium Data Transfer
Source Server : 本地连接
Source Server Type : MySQL
Source Server Version : 80030 (8.0.30)
Source Host : localhost:3306
Source Schema : homeschool
Target Server Type : MySQL
Target Server Version : 80030 (8.0.30)
File Encoding : 65001
Date: 23/04/2024 07:47:39
*/
SET NAMES utf8mb3;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for accusation
-- ----------------------------
DROP TABLE IF EXISTS `accusation`;
CREATE TABLE `accusation` (
`accusation_id` int NOT NULL AUTO_INCREMENT,
`accusation_user_id` int NULL DEFAULT NULL,
`accusation_type` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL,
`accusation_news_id` int NULL DEFAULT NULL,
`accusation_comment_id` int NULL DEFAULT NULL,
`accusation_intro` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL,
`accusation_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`accusation_status` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT '0',
PRIMARY KEY (`accusation_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of accusation
-- ----------------------------
INSERT INTO `accusation` VALUES (3, 2, '1', 1, 1, '1', NULL, '0');
INSERT INTO `accusation` VALUES (4, 2, '1', 1, 1, '1', '2024-04-22 22:51:30', '0');
-- ----------------------------
-- Table structure for class·
-- ----------------------------
DROP TABLE IF EXISTS `class`;
CREATE TABLE `class` (
`class_id` int NOT NULL AUTO_INCREMENT,
`class_name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL,
`class_intro` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`class_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of class
-- ----------------------------
-- ----------------------------
-- Table structure for comment
-- ----------------------------
DROP TABLE IF EXISTS `comment`;
CREATE TABLE `comment` (
`comment_id` int NOT NULL AUTO_INCREMENT,
`comment_news_id` int NULL DEFAULT NULL,
`comment_user_id` int NULL DEFAULT NULL,
`comment_content` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL,
`comment_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`comment_target_id` int NULL DEFAULT NULL,
`comment_type` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`comment_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of comment
-- ----------------------------
INSERT INTO `comment` VALUES (1, 1, 1, '1', '2024-04-22 16:14:01', 2, '1');
INSERT INTO `comment` VALUES (2, 1, 2, '1', '2024-04-22 16:14:27', 3, '0');
INSERT INTO `comment` VALUES (3, 1, 3, '22222', '2024-04-22 16:25:59', 2, '0');
INSERT INTO `comment` VALUES (6, 1, 3, '2222', '2024-04-22 22:51:23', 2, '1');
-- ----------------------------
-- Table structure for concern
-- ----------------------------
DROP TABLE IF EXISTS `concern`;
CREATE TABLE `concern` (
`id` int NOT NULL AUTO_INCREMENT,
`concern_id` int NULL DEFAULT NULL,
`concerned_id` int NULL DEFAULT NULL,
`concernTime` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`starConcern` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of concern
-- ----------------------------
INSERT INTO `concern` VALUES (1, 1, 2, '2024-04-22 17:33:16', '1');
INSERT INTO `concern` VALUES (3, 2, 2, '2024-04-22 17:32:15', '1');
INSERT INTO `concern` VALUES (4, 2, 1, '2024-04-22 17:33:28', '2');
INSERT INTO `concern` VALUES (5, 1, 1, '2024-04-22 17:34:11', '1');
-- ----------------------------
-- Table structure for like
-- ----------------------------
DROP TABLE IF EXISTS `like`;
CREATE TABLE `like` (
`like_news_id` int NOT NULL AUTO_INCREMENT,
`like_user_id` int NULL DEFAULT NULL,
`like_type` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`like_news_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of like
-- ----------------------------
-- ----------------------------
-- Table structure for mature
-- ----------------------------
DROP TABLE IF EXISTS `mature`;
CREATE TABLE `mature` (
`id` int NOT NULL AUTO_INCREMENT,
`news_id` int NULL DEFAULT NULL,
`user_id` int NULL DEFAULT NULL,
`grouping` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL,
`comment` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL,
`insert_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of mature
-- ----------------------------
INSERT INTO `mature` VALUES (1, 1, 1, '22222', '3231232', '2024-04-22 22:45:10');
INSERT INTO `mature` VALUES (2, 4, 2, '22222', '3231232', '2024-04-22 22:50:41');
INSERT INTO `mature` VALUES (3, 1, 1, '22222', '3231232', '2024-04-22 22:45:10');
-- ----------------------------
-- Table structure for news
-- ----------------------------
DROP TABLE IF EXISTS `news`;
CREATE TABLE `news` (
`news_id` int NOT NULL AUTO_INCREMENT,
`news_user_id` int NULL DEFAULT NULL,
`news_content` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL,
`news_upload_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`news_imageURLs` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL,
`news_videoURLs` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`news_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of news
-- ----------------------------
INSERT INTO `news` VALUES (1, 2, '1', '2024-04-22 22:40:46', '1', '1');
INSERT INTO `news` VALUES (4, 2, '1', '2024-04-22 22:40:46', '1', '1');
-- ----------------------------
-- Table structure for notification
-- ----------------------------
DROP TABLE IF EXISTS `notification`;
CREATE TABLE `notification` (
`notification_class_id` int NOT NULL AUTO_INCREMENT,
`notification_user_id` int NULL DEFAULT NULL,
`notification_title` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL,
`notification_content` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL,
`notification_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`notification_class_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of notification
-- ----------------------------
INSERT INTO `notification` VALUES (2, 1, '1232131', '2312321', '2024-04-22 22:01:51');
INSERT INTO `notification` VALUES (3, 1, '1232131', '2312321', '2024-04-22 22:02:02');
INSERT INTO `notification` VALUES (4, 1, '1232131', '2312321', '2024-04-22 22:38:19');
INSERT INTO `notification` VALUES (5, 1, '1232131', '2312321', '2024-04-22 22:39:56');
INSERT INTO `notification` VALUES (6, 1, '1232131', '2312321', '2024-04-22 22:52:21');
-- ----------------------------
-- Table structure for personalinformation
-- ----------------------------
DROP TABLE IF EXISTS `personalinformation`;
CREATE TABLE `personalinformation` (
`user_id` int NOT NULL,
`jianjie` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL,
`sex` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL,
`phone` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL,
`work` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL,
`address` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL,
`interest` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`user_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of personalinformation
-- ----------------------------
INSERT INTO `personalinformation` VALUES (1, '你好', '男', '133333333333', '销售', '河南', '篮球');
-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`user_id` int NOT NULL AUTO_INCREMENT,
`user_name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL,
`user_password` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL,
`user_type` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT '\"admin\", \"teacher\", \"parent\", \"student\"',
`user_head_url` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL,
`user_cover_url` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL,
`user_nickname` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL,
`user_register_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`user_class_id` int NULL DEFAULT NULL,
PRIMARY KEY (`user_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of user
-- ----------------------------
INSERT INTO `user` VALUES (1, 'admin', 'f8de66b41556e27b1cad47137ed83829', 'admin', NULL, NULL, NULL, '2024-04-20 11:48:41', NULL);
INSERT INTO `user` VALUES (2, 'st1', 'st11', 'student', NULL, NULL, NULL, '2024-04-21 11:48:45', 1);
INSERT INTO `user` VALUES (3, 'st2', 'st2', 'student', NULL, NULL, NULL, '2024-04-22 11:48:49', 2);
SET FOREIGN_KEY_CHECKS = 1;
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。