/*
 Navicat Premium Data Transfer

 Source Server         : zxm
 Source Server Type    : MySQL
 Source Server Version : 50726
 Source Host           : localhost:3306
 Source Schema         : kcfz

 Target Server Type    : MySQL
 Target Server Version : 50726
 File Encoding         : 65001

 Date: 03/01/2025 14:45:50
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for kc_info
-- ----------------------------
DROP TABLE IF EXISTS `kc_info`;
CREATE TABLE `kc_info`  (
  `id` bigint(10) NOT NULL AUTO_INCREMENT COMMENT '实体主键id',
  `type` bigint(10) NULL DEFAULT NULL COMMENT '实体种类(1图文 2视频 3动画 4计算模块 0未设置信息)',
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '实体名称',
  `tw_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '图文资源地址',
  `sp_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '视频资源地址',
  `dw_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '动画资源地址',
  `js_info` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '计算模块信息',
  `parent_id` bigint(10) NULL DEFAULT NULL COMMENT '上级id',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `create_by` bigint(10) NULL DEFAULT NULL COMMENT '创建者',
  `update_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `update_by` bigint(10) NULL DEFAULT NULL COMMENT '修改者',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of kc_info
-- ----------------------------

-- ----------------------------
-- Table structure for kc_relation
-- ----------------------------
DROP TABLE IF EXISTS `kc_relation`;
CREATE TABLE `kc_relation`  (
  `id` bigint(10) NOT NULL AUTO_INCREMENT COMMENT '关系信息主键',
  `source_id` bigint(10) NULL DEFAULT NULL COMMENT '起始实体id',
  `target_id` bigint(10) NULL DEFAULT NULL COMMENT '终止实体id',
  `relation` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '关系信息',
  `source_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '起始实体名称',
  `target_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '终止实体名称',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of kc_relation
-- ----------------------------

-- ----------------------------
-- Table structure for kc_tl_file
-- ----------------------------
DROP TABLE IF EXISTS `kc_tl_file`;
CREATE TABLE `kc_tl_file`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '推理结果文件主键',
  `file_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '生成结果文件地址',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `create_by` bigint(10) NULL DEFAULT NULL COMMENT '创建者',
  `update_by` bigint(10) NULL DEFAULT NULL COMMENT '修改者',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of kc_tl_file
-- ----------------------------

-- ----------------------------
-- Table structure for kc_user
-- ----------------------------
DROP TABLE IF EXISTS `kc_user`;
CREATE TABLE `kc_user`  (
  `id` bigint(10) NOT NULL AUTO_INCREMENT COMMENT '用户主键Id',
  `user_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户名',
  `password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '密码',
  `user_type` bigint(10) NULL DEFAULT NULL COMMENT '用户类型（0学员 1教员）',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_time` datetime NULL DEFAULT NULL COMMENT '修改时间',
  `class_info` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '班级信息',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of kc_user
-- ----------------------------

SET FOREIGN_KEY_CHECKS = 1;
