【优化】统一名称
This commit is contained in:
@@ -18,12 +18,12 @@ SET NAMES utf8mb4;
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for app_course
|
||||
-- Table structure for app_tutorial
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `app_course`;
|
||||
CREATE TABLE `app_course` (
|
||||
DROP TABLE IF EXISTS `app_tutorial`;
|
||||
CREATE TABLE `app_tutorial` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
`course_title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '教程标题',
|
||||
`tutorial_title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '教程标题',
|
||||
`description` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '教程描述',
|
||||
`content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '教程详情',
|
||||
`view_count` int DEFAULT '0' COMMENT '查看次数',
|
||||
@@ -35,10 +35,10 @@ CREATE TABLE `app_course` (
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='使用教程表';
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of app_course
|
||||
-- Records of app_tutorial
|
||||
-- ----------------------------
|
||||
BEGIN;
|
||||
INSERT INTO `app_course` (`id`, `course_title`, `description`, `content`, `view_count`, `recommend_status`, `status`, `create_time`, `update_time`) VALUES (1, '快速开始指南', '了解酷翼应用的基本功能与布局,快速上手使用各项功能。', NULL, 0, 0, 1, '2025-10-28 12:03:52', NULL);
|
||||
INSERT INTO `app_tutorial` (`id`, `tutorial_title`, `description`, `content`, `view_count`, `recommend_status`, `status`, `create_time`, `update_time`) VALUES (1, '快速开始指南', '了解酷翼应用的基本功能与布局,快速上手使用各项功能。', NULL, 0, 0, 1, '2025-10-28 12:03:52', NULL);
|
||||
COMMIT;
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
@@ -18,10 +18,10 @@ SET NAMES utf8mb4;
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for app_course_category
|
||||
-- Table structure for app_tutorial_category
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `app_course_category`;
|
||||
CREATE TABLE `app_course_category` (
|
||||
DROP TABLE IF EXISTS `app_tutorial_category`;
|
||||
CREATE TABLE `app_tutorial_category` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
`icon` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '图标',
|
||||
`category_title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '分类名称',
|
||||
@@ -35,10 +35,10 @@ CREATE TABLE `app_course_category` (
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='使用教程分类/标签表';
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of app_course_category
|
||||
-- Records of app_tutorial_category
|
||||
-- ----------------------------
|
||||
BEGIN;
|
||||
INSERT INTO `app_course_category` (`id`, `icon`, `category_title`, `description`, `first_status`, `type`, `status`, `create_time`, `update_time`) VALUES (1, NULL, '快速指南', NULL, 1, 'category', 1, '2025-10-28 12:06:03', NULL);
|
||||
INSERT INTO `app_tutorial_category` (`id`, `icon`, `category_title`, `description`, `first_status`, `type`, `status`, `create_time`, `update_time`) VALUES (1, NULL, '快速指南', NULL, 1, 'category', 1, '2025-10-28 12:06:03', NULL);
|
||||
COMMIT;
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
@@ -18,21 +18,21 @@ SET NAMES utf8mb4;
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for app_course_category_relation
|
||||
-- Table structure for app_tutorial_category_relation
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `app_course_category_relation`;
|
||||
CREATE TABLE `app_course_category_relation` (
|
||||
DROP TABLE IF EXISTS `app_tutorial_category_relation`;
|
||||
CREATE TABLE `app_tutorial_category_relation` (
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
`course_id` bigint DEFAULT NULL COMMENT '教程id',
|
||||
`tutorial_id` bigint DEFAULT NULL COMMENT '教程id',
|
||||
`category_id` bigint DEFAULT NULL COMMENT '教程分类id',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='教程与教程分类关系表';
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of app_course_category_relation
|
||||
-- Records of app_tutorial_category_relation
|
||||
-- ----------------------------
|
||||
BEGIN;
|
||||
INSERT INTO `app_course_category_relation` (`id`, `course_id`, `category_id`) VALUES (1, 1, 1);
|
||||
INSERT INTO `app_tutorial_category_relation` (`id`, `tutorial_id`, `category_id`) VALUES (1, 1, 1);
|
||||
COMMIT;
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
Reference in New Issue
Block a user