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 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207
|
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0;
DROP TABLE IF EXISTS `edu_document`; CREATE TABLE `edu_document` ( `id` int(11) NOT NULL AUTO_INCREMENT, `document_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '文章类型', `document_level` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '文章等级:1-初级,2-中级,3-高级', `document_stars` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '文章推荐指数星际:1-一星,2-二星,3-三星', `document_up_user` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '文章维护用户', `document_content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL COMMENT '文章内容', `create_time` timestamp(0) NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '创建时间', `update_time` datetime(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '文章信息表' ROW_FORMAT = Dynamic;
INSERT INTO `edu_document` VALUES (1, '测试文章类型', '中级', '3', NULL, '测试文章内容222', '2023-02-17 08:35:18', '2023-02-17 08:35:18');
DROP TABLE IF EXISTS `edu_question`; CREATE TABLE `edu_question` ( `id` int(11) NOT NULL AUTO_INCREMENT, `question_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '题库名称', `question_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '题库类型:1-单选,2-多选,3-论述', `question_up_user` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '题库维护管理员', `question_level` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '题库等级:1-简单,2-中等,3-困难', `create_time` timestamp(0) NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '创建时间', `update_time` datetime(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '题库信息表' ROW_FORMAT = Dynamic;
INSERT INTO `edu_question` VALUES (1, '测试题库名称', '1', NULL, NULL, '2023-01-31 10:09:40', NULL); INSERT INTO `edu_question` VALUES (2, '测试题库名称2', '2', NULL, NULL, '2023-01-31 10:09:50', NULL); INSERT INTO `edu_question` VALUES (3, '测试题库名称3', '3', NULL, NULL, '2023-01-31 10:09:57', NULL); INSERT INTO `edu_question` VALUES (4, '测试题库名称4', '1', NULL, NULL, '2023-01-31 10:10:06', NULL); INSERT INTO `edu_question` VALUES (5, '测试题库名称5', '1', NULL, NULL, '2023-01-31 10:10:14', NULL);
DROP TABLE IF EXISTS `edu_question_content`; CREATE TABLE `edu_question_content` ( `id` int(11) NOT NULL AUTO_INCREMENT, `question_id` int(11) NULL DEFAULT NULL COMMENT '题库Id', `pretext_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '题目名称', `pretext_answer` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '题目答案', `create_time` timestamp(0) NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '创建时间', `update_time` datetime(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '题库内容表' ROW_FORMAT = Dynamic;
INSERT INTO `edu_question_content` VALUES (1, 1, NULL, '123', '2023-02-01 09:52:28', NULL);
DROP TABLE IF EXISTS `edu_report`; CREATE TABLE `edu_report` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NULL DEFAULT NULL COMMENT '用户Id', `report_title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '测评标题', `report_content` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '测评内容', `report_time` datetime(0) NULL DEFAULT NULL COMMENT '测评报告生成时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '用户测评报告信息表' ROW_FORMAT = Dynamic;
INSERT INTO `edu_report` VALUES (1, 3, '测试测评报告', '准确率100%', '2023-02-15 08:26:56');
DROP TABLE IF EXISTS `edu_user`; CREATE TABLE `edu_user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '用户名', `password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '密码', `phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '手机', `sex` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '性别', `email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '邮箱', `address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '地址', `create_time` timestamp(0) NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '创建时间', `update_time` datetime(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间', `user_role` int(11) NULL DEFAULT NULL COMMENT '1-普通用户,2-管理员', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '用户信息表' ROW_FORMAT = Dynamic;
INSERT INTO `edu_user` VALUES (3, 'testCommonRegister', '123456', '13222333232', '男', '244007461@qq.com', '银河系', '2023-02-15 21:40:20', '2023-02-15 21:40:20', NULL); INSERT INTO `edu_user` VALUES (4, 'testCommonRegister', '123456', '13677652728', '男', '244007461@qq.com', '地球', '2023-02-15 21:29:42', NULL, NULL);
DROP TABLE IF EXISTS `edu_user_document`; CREATE TABLE `edu_user_document` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NULL DEFAULT NULL COMMENT '用户Id', `document_id` int(11) NULL DEFAULT NULL COMMENT '文章Id', `document_user_start_time` datetime(0) NULL DEFAULT NULL COMMENT '用户开始学习时间', `document_user_end_time` datetime(0) NULL DEFAULT NULL COMMENT '用户结束学习时间', `document_user_total_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '用户学习文章总时间', `create_time` timestamp(0) NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '创建时间', `update_time` datetime(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '用户文章学习表' ROW_FORMAT = Dynamic;
DROP TABLE IF EXISTS `edu_user_question`; CREATE TABLE `edu_user_question` ( `id` int(11) NOT NULL AUTO_INCREMENT, `question_id` int(11) NULL DEFAULT NULL COMMENT '题库Id', `pretext_id` int(11) NULL DEFAULT NULL COMMENT '题目Id', `user_id` int(11) NULL DEFAULT NULL COMMENT '用户Id', `user_answer` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '用户答案', `user_question_start_time` datetime(0) NULL DEFAULT NULL COMMENT '用户开始作答时间', `user_question_end_time` datetime(0) NULL DEFAULT NULL COMMENT '用户结束作答时间', `user_question_total_time` varchar(0) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '用户题库作答学习时间', `create_time` timestamp(0) NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '创建时间', `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '用户题库学习表' ROW_FORMAT = Dynamic;
INSERT INTO `edu_user_question` VALUES (1, 1, 1, 1, '123', NULL, NULL, NULL, '2023-02-01 09:54:07', NULL); INSERT INTO `edu_user_question` VALUES (2, 4, 1, 1, '123', NULL, NULL, NULL, '2023-02-01 09:54:08', NULL); INSERT INTO `edu_user_question` VALUES (3, 5, 1, 1, '123', NULL, NULL, NULL, '2023-02-01 09:54:09', NULL); INSERT INTO `edu_user_question` VALUES (4, 2, 1, 1, '123', NULL, NULL, NULL, '2023-02-01 09:54:09', NULL); INSERT INTO `edu_user_question` VALUES (5, 3, 1, 1, '123', NULL, NULL, NULL, '2023-02-01 09:54:10', NULL);
DROP TABLE IF EXISTS `edu_user_video`; CREATE TABLE `edu_user_video` ( `id` int(11) NOT NULL AUTO_INCREMENT, `video_id` int(11) NULL DEFAULT NULL COMMENT '视频Id', `user_id` int(11) NULL DEFAULT NULL COMMENT '用户Id', `video_user_start_time` datetime(0) NULL DEFAULT NULL COMMENT '用户开始学习时间', `video_user_end_time` datetime(0) NULL DEFAULT NULL COMMENT '用户结束学习时间', `video_user_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '用户视频学习总时间', `create_time` timestamp(0) NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '创建时间', `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '用户视频学习表' ROW_FORMAT = Dynamic;
INSERT INTO `edu_user_video` VALUES (1, 1, 1, NULL, NULL, '1', '2023-01-31 10:31:07', NULL); INSERT INTO `edu_user_video` VALUES (2, 2, 1, NULL, NULL, '1', '2023-01-31 10:31:12', NULL); INSERT INTO `edu_user_video` VALUES (3, 3, 1, NULL, NULL, '2', '2023-01-31 10:31:20', NULL);
DROP TABLE IF EXISTS `edu_video`; CREATE TABLE `edu_video` ( `id` int(11) NOT NULL AUTO_INCREMENT, `video_src` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '视频地址', `video_up_user` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '视频up主', `video_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '视频类型', `video_timeline` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '视频时长', `create_time` timestamp(0) NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '创建时间', `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '视频信息表' ROW_FORMAT = Dynamic;
SET FOREIGN_KEY_CHECKS = 1;
|