/*
 Navicat Premium Dump SQL

 Source Server         : upm正式
 Source Server Type    : MySQL
 Source Server Version : 80034 (8.0.34)
 Source Host           : 123.57.39.193:3306
 Source Schema         : training-cloud-prod

 Target Server Type    : MySQL
 Target Server Version : 80034 (8.0.34)
 File Encoding         : 65001

 Date: 11/11/2025 12:41:29
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
CREATE DATABASE IF NOT EXISTS `training-cloud-prod`;
USE `training-cloud-prod`;
-- ----------------------------
-- Table structure for campus_lesson_map_epic
-- ----------------------------
DROP TABLE IF EXISTS `campus_lesson_map_epic`;
CREATE TABLE `campus_lesson_map_epic`  (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键',
  `super_id` bigint NULL DEFAULT NULL COMMENT '来源的ID',
  `lesson_id` bigint NULL DEFAULT NULL COMMENT '授课ID',
  `goal_id` bigint NULL DEFAULT NULL COMMENT '所属目标ID',
  `epic_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '史诗名称(任务集合)',
  `sort` int NULL DEFAULT NULL COMMENT '排序',
  `creator` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updater` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
  `tenant_id` bigint NOT NULL DEFAULT 0 COMMENT '租户编号',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 435 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '课程地图-任务集合' ROW_FORMAT = Dynamic;

SET FOREIGN_KEY_CHECKS = 1;
