数据库整合 1.0

master
you hang 6 months ago committed by youahng
parent fef6a5762e
commit 0505cdae76
  1. 47
      sql/course_objectives.sql
  2. 56
      sql/courses.sql
  3. 240
      sql/teaching_db.sql

@ -1,47 +0,0 @@
/*
SQLyog Ultimate v12.09 (64 bit)
MySQL - 8.0.12 : Database - teaching_db
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/`teaching_db` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `teaching_db`;
/*Table structure for table `course_objectives` */
DROP TABLE IF EXISTS `course_objectives`;
CREATE TABLE `course_objectives` (
`id` varchar(36) NOT NULL COMMENT '内部编号',
`create_by` varchar(50) DEFAULT NULL COMMENT '创建人',
`create_time` datetime DEFAULT NULL COMMENT '创建日期',
`update_by` varchar(50) DEFAULT NULL COMMENT '更新人',
`update_time` datetime DEFAULT NULL COMMENT '更新日期',
`pid` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '0' COMMENT '父级节点 默认0没有',
`has_child` varchar(3) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '0' COMMENT '是否有子节点 添加子节点变1,默认0没有',
`name` varchar(200) DEFAULT NULL COMMENT '目标名称',
`type` varchar(10) DEFAULT NULL COMMENT '目标类型',
`content` text COMMENT '目标内容',
`courseid` varchar(32) DEFAULT NULL COMMENT '课程id',
`requireid` varchar(32) DEFAULT NULL COMMENT '毕业要求id',
`temp` text COMMENT '毕业要求',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `course_objectives` */
insert into `course_objectives`(`id`,`create_by`,`create_time`,`update_by`,`update_time`,`pid`,`has_child`,`name`,`type`,`content`,`courseid`,`requireid`,`temp`) values ('43f2c4b4a10a47784e50e772b9d10457','2140110334','2024-05-31 17:39:13',NULL,NULL,'0','0','测试课程课程总体目标',NULL,NULL,'6f5de6dd8c8d5d9d02a63c8444b9d5bb',NULL,NULL),('7a302cd72d653647778840b42f4e076a',NULL,'2024-06-03 10:43:13',NULL,NULL,'0','0','软件构造课程总体目标',NULL,NULL,'ee2447b4463a5ad3f47e1744d912a824',NULL,NULL),('b41fa8332f39cca11d35635bd9fac720','2140110334','2024-05-31 11:24:33',NULL,NULL,'0','0','计算机导论课程总体目标',NULL,NULL,'2fa0fd63262230639d2c45a3acd9045c',NULL,NULL),('d452f583115465d067a1719458690b95','2140110334','2024-05-31 11:16:37',NULL,NULL,'0','0','计算机组成原理总体目标',NULL,NULL,'36c34a4225526dd20ee3840da61d3701',NULL,NULL),('da6e7283befa8965dae0f0f39ea7f24e',NULL,'2024-05-31 20:49:52',NULL,NULL,'0','1','离散数学及其应用课程总体目标',NULL,NULL,'de3100cad98f76be3176dd39aa748a9e',NULL,NULL),('e668f90e40d85e051381541b9d8436c3',NULL,'2024-05-31 20:49:52',NULL,'2024-06-03 09:51:31','da6e7283befa8965dae0f0f39ea7f24e','1','思政目标','1','阿巴阿巴2','de3100cad98f76be3176dd39aa748a9e',NULL,NULL);
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

@ -1,56 +0,0 @@
/*
SQLyog Ultimate v12.09 (64 bit)
MySQL - 8.0.12 : Database - teaching_db
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/`teaching_db` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `teaching_db`;
/*Table structure for table `courses` */
DROP TABLE IF EXISTS `courses`;
CREATE TABLE `courses` (
`id` varchar(36) NOT NULL COMMENT '内部编号',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
`img` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '课程封面',
`category` varchar(50) DEFAULT NULL COMMENT '课程类别',
`nature` varchar(50) DEFAULT NULL COMMENT '课程性质',
`name` varchar(100) DEFAULT NULL COMMENT '课程名称',
`code` varchar(50) DEFAULT NULL COMMENT '课程编码',
`semester` varchar(50) DEFAULT NULL COMMENT '开课学期',
`credit` decimal(5,0) DEFAULT NULL COMMENT '课程学分',
`classhours` int(11) DEFAULT NULL COMMENT '课程学时',
`theoryhours` int(11) DEFAULT NULL COMMENT '理论学时',
`practicehours` int(11) DEFAULT NULL COMMENT '实践学时',
`experimenthours` int(11) DEFAULT NULL COMMENT '实验学时',
`otherhours` int(11) DEFAULT NULL COMMENT '其他学时',
`weeks` int(11) DEFAULT NULL COMMENT '上课周数',
`assessmenttype` varchar(32) DEFAULT NULL COMMENT '考核类型',
`assessmentway` varchar(32) DEFAULT NULL COMMENT '考核方式',
`teacher` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '负责教师',
`teachermethod` text COMMENT '教学方法',
`teacherway` text COMMENT '教学方式',
`description` text COMMENT '课程简介',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `courses` */
insert into `courses`(`id`,`create_time`,`update_time`,`img`,`category`,`nature`,`name`,`code`,`semester`,`credit`,`classhours`,`theoryhours`,`practicehours`,`experimenthours`,`otherhours`,`weeks`,`assessmenttype`,`assessmentway`,`teacher`,`teachermethod`,`teacherway`,`description`) values ('2fa0fd63262230639d2c45a3acd9045c','2024-05-30 20:58:34',NULL,'','1','1','计算机导论','111007',NULL,'4',64,NULL,NULL,NULL,NULL,NULL,'1','1','2140110334,2140110339','暂定','线下授课',NULL),('36c34a4225526dd20ee3840da61d3701','2024-05-28 20:58:36',NULL,'','1','1','计算机组成原理','111006',NULL,'4',64,NULL,NULL,NULL,NULL,NULL,'1','1','2140110334,2140110339','暂定','线下授课',NULL),('6f5de6dd8c8d5d9d02a63c8444b9d5bb','2024-05-26 20:58:40',NULL,'','1','1','测试课程','111008',NULL,'4',64,NULL,NULL,NULL,NULL,NULL,'1','1','2140110334,2140110339','暂定','线下授课',NULL),('8721e6864387eb99b04692f125ac0a9f','2024-05-27 20:58:43',NULL,'','1','1','SQLServer数据库教程','111004',NULL,'4',0,NULL,NULL,NULL,NULL,NULL,'1','1','2140110334,2140110327','暂定111','线下机房授课',NULL),('90ce365ae4e362f616776550e04ae0b4','2024-05-24 20:58:48',NULL,'','1','1','JavaEE','111002',NULL,'4',0,NULL,NULL,NULL,NULL,NULL,'1','1','2140110334,2140110327','暂定','线下机房授课',NULL),('a2ba84374d86e85208c5906a96ea8205','2024-05-24 20:58:48',NULL,'https://teaching-edu123.oss-cn-beijing.aliyuncs.com/Borovets_ZH-CN5914681811_UHD.jpg','1','1','JavaWeb','111003',NULL,'4',0,NULL,NULL,NULL,NULL,NULL,'1','1','2140110334,2140110327','暂定','线下机房授课',NULL),('d511d26df8de551bc85ce765089771b4','2024-05-24 20:58:48',NULL,'','1','1','高级编程','111001',NULL,'4',0,NULL,NULL,NULL,NULL,NULL,'1','1','2140110334,2140110327','暂定','线下机房授课',NULL),('de3100cad98f76be3176dd39aa748a9e','2024-05-31 20:49:52',NULL,'','1','1','离散数学及其应用','111009',NULL,'2',64,NULL,NULL,NULL,NULL,NULL,'1','1','2140110334','暂定','线下授课',NULL);
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

@ -11,23 +11,186 @@
Target Server Version : 80037
File Encoding : 65001
Date: 03/06/2024 10:11:01
Date: 06/06/2024 17:36:05
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for course_objectives
-- ----------------------------
DROP TABLE IF EXISTS `course_objectives`;
CREATE TABLE `course_objectives`
(
`id` varchar(36) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT '内部编号',
`create_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT '创建人',
`create_time` datetime NULL DEFAULT NULL COMMENT '创建日期',
`update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT '更新人',
`update_time` datetime NULL DEFAULT NULL COMMENT '更新日期',
`pid` varchar(32) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT '0' COMMENT '父级节点 默认0没有',
`has_child` varchar(3) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT '0' COMMENT '是否有子节点 添加子节点变1,默认0没有',
`name` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT '目标名称',
`type` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT '目标类型',
`content` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL COMMENT '目标内容',
`courseid` varchar(32) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT '课程id',
`requireid` varchar(32) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT '毕业要求id',
`temp` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL COMMENT '毕业要求',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of course_objectives
-- ----------------------------
INSERT INTO `course_objectives`
VALUES ('43f2c4b4a10a47784e50e772b9d10457', '2140110334', '2024-05-31 17:39:13', NULL, NULL, '0', '0',
'测试课程课程总体目标', NULL, NULL, '6f5de6dd8c8d5d9d02a63c8444b9d5bb', NULL, NULL);
INSERT INTO `course_objectives`
VALUES ('7a302cd72d653647778840b42f4e076a', NULL, '2024-06-03 10:43:13', NULL, NULL, '0', '0', '软件构造课程总体目标',
NULL, NULL, 'ee2447b4463a5ad3f47e1744d912a824', NULL, NULL);
INSERT INTO `course_objectives`
VALUES ('b41fa8332f39cca11d35635bd9fac720', '2140110334', '2024-05-31 11:24:33', NULL, NULL, '0', '0',
'计算机导论课程总体目标', NULL, NULL, '2fa0fd63262230639d2c45a3acd9045c', NULL, NULL);
INSERT INTO `course_objectives`
VALUES ('d452f583115465d067a1719458690b95', '2140110334', '2024-05-31 11:16:37', NULL, NULL, '0', '0',
'计算机组成原理总体目标', NULL, NULL, '36c34a4225526dd20ee3840da61d3701', NULL, NULL);
INSERT INTO `course_objectives`
VALUES ('da6e7283befa8965dae0f0f39ea7f24e', NULL, '2024-05-31 20:49:52', NULL, NULL, '0', '1',
'离散数学及其应用课程总体目标', NULL, NULL, 'de3100cad98f76be3176dd39aa748a9e', NULL, NULL);
INSERT INTO `course_objectives`
VALUES ('e668f90e40d85e051381541b9d8436c3', NULL, '2024-05-31 20:49:52', NULL, '2024-06-03 09:51:31',
'da6e7283befa8965dae0f0f39ea7f24e', '1', '思政目标', '1', '阿巴阿巴2', 'de3100cad98f76be3176dd39aa748a9e', NULL,
NULL);
-- ----------------------------
-- Table structure for courses
-- ----------------------------
DROP TABLE IF EXISTS `courses`;
CREATE TABLE `courses`
(
`id` varchar(36) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT '内部编号',
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
`img` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT '课程封面',
`category` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT '课程类别',
`nature` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT '课程性质',
`name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT '课程名称',
`code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT '课程编码',
`semester` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT '开课学期',
`credit` decimal(5, 0) NULL DEFAULT NULL COMMENT '课程学分',
`classhours` int NULL DEFAULT NULL COMMENT '课程学时',
`theoryhours` int NULL DEFAULT NULL COMMENT '理论学时',
`practicehours` int NULL DEFAULT NULL COMMENT '实践学时',
`experimenthours` int NULL DEFAULT NULL COMMENT '实验学时',
`otherhours` int NULL DEFAULT NULL COMMENT '其他学时',
`weeks` int NULL DEFAULT NULL COMMENT '上课周数',
`assessmenttype` varchar(32) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT '考核类型',
`assessmentway` varchar(32) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT '考核方式',
`teacher` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT '负责教师',
`teachermethod` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL COMMENT '教学方法',
`teacherway` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL COMMENT '教学方式',
`description` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL COMMENT '课程简介',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of courses
-- ----------------------------
INSERT INTO `courses`
VALUES ('2fa0fd63262230639d2c45a3acd9045c', '2024-05-30 20:58:34', NULL,
'https://youhang.oss-cn-beijing.aliyuncs.com/5a117cf0-f76e-431a-932e-ac3693a710bd.jpg', '1', '1', '计算机导论',
'111007', NULL, 4, 64, NULL, NULL, NULL, NULL, NULL, '1', '1', '2140110334,2140110339', '暂定', '线下授课',
NULL);
INSERT INTO `courses`
VALUES ('36c34a4225526dd20ee3840da61d3701', '2024-05-28 20:58:36', NULL,
'https://youhang.oss-cn-beijing.aliyuncs.com/5a117cf0-f76e-431a-932e-ac3693a710bd.jpg', '1', '1',
'计算机组成原理', '111006', NULL, 4, 64, NULL, NULL, NULL, NULL, NULL, '1', '1', '2140110334,2140110339',
'暂定', '线下授课', NULL);
INSERT INTO `courses`
VALUES ('6f5de6dd8c8d5d9d02a63c8444b9d5bb', '2024-05-26 20:58:40', NULL,
'https://youhang.oss-cn-beijing.aliyuncs.com/5a117cf0-f76e-431a-932e-ac3693a710bd.jpg', '1', '1', '测试课程',
'111008', NULL, 4, 64, NULL, NULL, NULL, NULL, NULL, '1', '1', '2140110334,2140110339', '暂定', '线下授课',
NULL);
INSERT INTO `courses`
VALUES ('8721e6864387eb99b04692f125ac0a9f', '2024-05-27 20:58:43', NULL,
'https://youhang.oss-cn-beijing.aliyuncs.com/5a117cf0-f76e-431a-932e-ac3693a710bd.jpg', '1', '1',
'SQLServer数据库教程', '111004', NULL, 4, 0, NULL, NULL, NULL, NULL, NULL, '1', '1', '2140110334,2140110327',
'暂定111', '线下机房授课', NULL);
INSERT INTO `courses`
VALUES ('90ce365ae4e362f616776550e04ae0b4', '2024-05-24 20:58:48', NULL,
'https://youhang.oss-cn-beijing.aliyuncs.com/5a117cf0-f76e-431a-932e-ac3693a710bd.jpg', '1', '1', 'JavaEE',
'111002', NULL, 4, 0, NULL, NULL, NULL, NULL, NULL, '1', '1', '2140110334,2140110327', '暂定', '线下机房授课',
NULL);
INSERT INTO `courses`
VALUES ('a2ba84374d86e85208c5906a96ea8205', '2024-05-24 20:58:48', NULL,
'https://teaching-edu123.oss-cn-beijing.aliyuncs.com/Borovets_ZH-CN5914681811_UHD.jpg', '1', '1', 'JavaWeb',
'111003', NULL, 4, 0, NULL, NULL, NULL, NULL, NULL, '1', '1', '2140110334,2140110327', '暂定', '线下机房授课',
NULL);
INSERT INTO `courses`
VALUES ('d511d26df8de551bc85ce765089771b4', '2024-05-24 20:58:48', NULL,
'https://youhang.oss-cn-beijing.aliyuncs.com/5a117cf0-f76e-431a-932e-ac3693a710bd.jpg', '1', '1', '高级编程',
'111001', NULL, 4, 0, NULL, NULL, NULL, NULL, NULL, '1', '1', '2140110334,2140110327', '暂定', '线下机房授课',
NULL);
INSERT INTO `courses`
VALUES ('de3100cad98f76be3176dd39aa748a9e', '2024-05-31 20:49:52', NULL,
'https://youhang.oss-cn-beijing.aliyuncs.com/5a117cf0-f76e-431a-932e-ac3693a710bd.jpg', '1', '1',
'离散数学及其应用', '111009', NULL, 2, 64, NULL, NULL, NULL, NULL, NULL, '1', '1', '2140110334', '暂定',
'线下授课', NULL);
-- ----------------------------
-- Table structure for filetable
-- ----------------------------
DROP TABLE IF EXISTS `filetable`;
CREATE TABLE `filetable`
(
`id` int NOT NULL AUTO_INCREMENT,
`course_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`file_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`file_path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of filetable
-- ----------------------------
INSERT INTO `filetable`
VALUES (1, '1', '1f88e9df6f0b4412b0eb067ad057adb5.mp4', 'video/1f88e9df6f0b4412b0eb067ad057adb5.mp4');
INSERT INTO `filetable`
VALUES (2, '2', 'bda16852b6944ae08cfcc70597f8dbb6.md', 'others/bda16852b6944ae08cfcc70597f8dbb6.md');
INSERT INTO `filetable`
VALUES (3, '3', '4c0dbc0ad84344bc8ba3431346cc7078.md', 'others/4c0dbc0ad84344bc8ba3431346cc7078.md');
-- ----------------------------
-- Table structure for se_course_favour
-- ----------------------------
DROP TABLE IF EXISTS `se_course_favour`;
CREATE TABLE `se_course_favour` (
`id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
`course_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`user_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'id',
`course_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '课程id',
`user_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '用户',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of se_course_favour
-- ----------------------------
INSERT INTO `se_course_favour`
VALUES ('1796378327262564353', 'a2ba84374d86e85208c5906a96ea8205', '2');
INSERT INTO `se_course_favour`
VALUES ('1796454599099658242', '36c34a4225526dd20ee3840da61d3701', '2');
INSERT INTO `se_course_favour`
VALUES ('1796789887730647041', '2fa0fd63262230639d2c45a3acd9045c', '2');
INSERT INTO `se_course_favour`
VALUES ('1797497056650289154', 'd511d26df8de551bc85ce765089771b4', '1');
INSERT INTO `se_course_favour`
VALUES ('1797499380101767170', 'd511d26df8de551bc85ce765089771b4', '2');
INSERT INTO `se_course_favour`
VALUES ('1798221492412149761', 'd511d26df8de551bc85ce765089771b4', '5');
INSERT INTO `se_course_favour`
VALUES ('1798621775654993922', 'd511d26df8de551bc85ce765089771b4', '8');
INSERT INTO `se_course_favour`
VALUES ('1798632199670714369', 'de3100cad98f76be3176dd39aa748a9e', '2');
-- ----------------------------
-- Table structure for se_course_thumb
-- ----------------------------
@ -39,6 +202,20 @@ CREATE TABLE `se_course_thumb` (
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of se_course_thumb
-- ----------------------------
INSERT INTO `se_course_thumb`
VALUES ('1796343958854623233', '2', '1');
INSERT INTO `se_course_thumb`
VALUES ('1796344002215337985', '2', '2');
INSERT INTO `se_course_thumb`
VALUES ('1796362250491191298', '1', '2');
INSERT INTO `se_course_thumb`
VALUES ('1796437673614974977', '6', '2');
INSERT INTO `se_course_thumb`
VALUES ('1796445964822847489', '7', '4');
-- ----------------------------
-- Table structure for se_know_favour
-- ----------------------------
@ -51,6 +228,12 @@ CREATE TABLE `se_know_favour` (
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of se_know_favour
-- ----------------------------
INSERT INTO `se_know_favour`
VALUES ('1796378889450295297', '1', '2', '3');
-- ----------------------------
-- Table structure for se_know_thumb
-- ----------------------------
@ -63,6 +246,18 @@ CREATE TABLE `se_know_thumb` (
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of se_know_thumb
-- ----------------------------
INSERT INTO `se_know_thumb`
VALUES ('1796347057337982977', '1', '2', '2');
INSERT INTO `se_know_thumb`
VALUES ('1796347303317135361', '2', '2', '3');
INSERT INTO `se_know_thumb`
VALUES ('1796347343968329730', '2', '3', '3');
INSERT INTO `se_know_thumb`
VALUES ('1796347380697849857', '1', '3', '3');
-- ----------------------------
-- Table structure for se_resource_favour
-- ----------------------------
@ -75,6 +270,12 @@ CREATE TABLE `se_resource_favour` (
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of se_resource_favour
-- ----------------------------
INSERT INTO `se_resource_favour`
VALUES ('1796379012112715778', '1', '2', '3');
-- ----------------------------
-- Table structure for se_resource_thumb
-- ----------------------------
@ -87,4 +288,35 @@ CREATE TABLE `se_resource_thumb` (
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of se_resource_thumb
-- ----------------------------
INSERT INTO `se_resource_thumb`
VALUES ('1796366535710904322', '2', '1', '1');
-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user`
(
`id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
`userAccount` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '账号',
`userPassword` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '密码',
`userName` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '用户昵称',
`userAvatar` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '用户头像',
`userRole` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'user' COMMENT '用户角色:user/admin/ban',
`createTime` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`updateTime` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`isDelete` tinyint NOT NULL DEFAULT 0 COMMENT '是否删除',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1793257199111405570 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '用户' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of user
-- ----------------------------
INSERT INTO `user`
VALUES (1793257199111405569, 'youhang', '84fccf8fe96cab775b23698a9c9b7eaa', '游航', NULL, 'admin',
'2024-05-22 20:26:48', '2024-05-22 20:27:53', 0);
SET FOREIGN_KEY_CHECKS = 1;

Loading…
Cancel
Save