【新增】教程与分类关联

This commit is contained in:
2025-10-28 13:51:04 +08:00
parent 4c66e875cf
commit 816396d9c0
5 changed files with 81 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
/*
Navicat Premium Dump SQL
Source Server : 120.24.204.180
Source Server Type : MySQL
Source Server Version : 80036 (8.0.36)
Source Host : 120.24.204.180:3306
Source Schema : app
Target Server Type : MySQL
Target Server Version : 80036 (8.0.36)
File Encoding : 65001
Date: 28/10/2025 13:46:38
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for app_course_category_relation
-- ----------------------------
DROP TABLE IF EXISTS `app_course_category_relation`;
CREATE TABLE `app_course_category_relation` (
`id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
`course_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
-- ----------------------------
BEGIN;
INSERT INTO `app_course_category_relation` (`id`, `course_id`, `category_id`) VALUES (1, 1, 1);
COMMIT;
SET FOREIGN_KEY_CHECKS = 1;