-- MySQL dump 10.13  Distrib 8.0.44, for Win64 (x86_64)
--
-- Host: localhost    Database: ry_news
-- ------------------------------------------------------
-- Server version	8.0.44

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `gen_table`
--

DROP TABLE IF EXISTS `gen_table`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `gen_table` (
  `table_id` bigint NOT NULL AUTO_INCREMENT COMMENT '编号',
  `table_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '表名称',
  `table_comment` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '表描述',
  `sub_table_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '关联子表的表名',
  `sub_table_fk_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '子表关联的外键名',
  `class_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '实体类名称',
  `tpl_category` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'crud' COMMENT '使用的模板（crud单表操作 tree树表操作）',
  `tpl_web_type` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '前端模板类型（element-ui模版 element-plus模版）',
  `package_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '生成包路径',
  `module_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '生成模块名',
  `business_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '生成业务名',
  `function_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '生成功能名',
  `function_author` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '生成功能作者',
  `gen_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '生成代码方式（0zip压缩包 1自定义路径）',
  `gen_path` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '/' COMMENT '生成路径（不填默认项目路径）',
  `options` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '其它生成选项',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`table_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='代码生成业务表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `gen_table`
--

LOCK TABLES `gen_table` WRITE;
/*!40000 ALTER TABLE `gen_table` DISABLE KEYS */;
/*!40000 ALTER TABLE `gen_table` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `gen_table_column`
--

DROP TABLE IF EXISTS `gen_table_column`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `gen_table_column` (
  `column_id` bigint NOT NULL AUTO_INCREMENT COMMENT '编号',
  `table_id` bigint DEFAULT NULL COMMENT '归属表编号',
  `column_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '列名称',
  `column_comment` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '列描述',
  `column_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '列类型',
  `java_type` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'JAVA类型',
  `java_field` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'JAVA字段名',
  `is_pk` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '是否主键（1是）',
  `is_increment` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '是否自增（1是）',
  `is_required` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '是否必填（1是）',
  `is_insert` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '是否为插入字段（1是）',
  `is_edit` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '是否编辑字段（1是）',
  `is_list` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '是否列表字段（1是）',
  `is_query` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '是否查询字段（1是）',
  `query_type` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'EQ' COMMENT '查询方式（等于、不等于、大于、小于、范围）',
  `html_type` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '显示类型（文本框、文本域、下拉框、复选框、单选框、日期控件）',
  `dict_type` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '字典类型',
  `sort` int DEFAULT NULL COMMENT '排序',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`column_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='代码生成业务表字段';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `gen_table_column`
--

LOCK TABLES `gen_table_column` WRITE;
/*!40000 ALTER TABLE `gen_table_column` DISABLE KEYS */;
/*!40000 ALTER TABLE `gen_table_column` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `psy_assessment`
--

DROP TABLE IF EXISTS `psy_assessment`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `psy_assessment` (
  `assessment_id` bigint NOT NULL AUTO_INCREMENT COMMENT '测评ID',
  `scale_id` bigint NOT NULL COMMENT '量表ID',
  `user_id` bigint DEFAULT NULL COMMENT '用户ID（关联sys_user，可为空表示匿名测评）',
  `assessee_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '被测评人姓名（匿名测评时使用）',
  `assessee_gender` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '被测评人性别（0男 1女 2未知）',
  `assessee_age` int DEFAULT NULL COMMENT '被测评人年龄',
  `assessee_id_card` varchar(18) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '被测评人身份证号（可选）',
  `assessee_phone` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '被测评人手机号',
  `assessee_email` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '被测评人邮箱',
  `start_time` datetime DEFAULT NULL COMMENT '开始时间',
  `pause_time` datetime DEFAULT NULL COMMENT '暂停时间',
  `resume_time` datetime DEFAULT NULL COMMENT '恢复时间',
  `pause_count` int DEFAULT '0' COMMENT '暂停次数',
  `submit_time` datetime DEFAULT NULL COMMENT '提交时间',
  `complete_time` int DEFAULT NULL COMMENT '完成耗时（秒）',
  `total_score` decimal(10,2) DEFAULT NULL COMMENT '总分',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '状态（0进行中 1已完成 2已作废 3已暂停）',
  `ip_address` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT 'IP地址',
  `user_agent` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '用户代理',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`assessment_id`),
  KEY `idx_scale_id` (`scale_id`),
  KEY `idx_user_id` (`user_id`),
  KEY `idx_status` (`status`),
  KEY `idx_submit_time` (`submit_time`),
  CONSTRAINT `fk_assessment_scale` FOREIGN KEY (`scale_id`) REFERENCES `psy_scale` (`scale_id`),
  CONSTRAINT `fk_assessment_user` FOREIGN KEY (`user_id`) REFERENCES `sys_user` (`user_id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='测评记录表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `psy_assessment`
--

LOCK TABLES `psy_assessment` WRITE;
/*!40000 ALTER TABLE `psy_assessment` DISABLE KEYS */;
INSERT INTO `psy_assessment` VALUES (1,13,1,'admin','0',0,NULL,'15888888888',NULL,'2025-11-10 14:41:09',NULL,NULL,0,'2025-11-10 14:41:27',17,174.00,'1','127.0.0.1','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36 Edg/100.0.1185.36','admin','2025-11-10 14:41:08','admin','2025-11-10 14:41:26',NULL);
/*!40000 ALTER TABLE `psy_assessment` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `psy_assessment_answer`
--

DROP TABLE IF EXISTS `psy_assessment_answer`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `psy_assessment_answer` (
  `answer_id` bigint NOT NULL AUTO_INCREMENT COMMENT '答案ID',
  `assessment_id` bigint NOT NULL COMMENT '测评ID',
  `item_id` bigint NOT NULL COMMENT '题目ID',
  `option_id` bigint DEFAULT NULL COMMENT '选项ID（单选时使用）',
  `option_ids` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '选项ID列表（多选时使用，多个用逗号分隔）',
  `answer_score` decimal(10,2) DEFAULT '0.00' COMMENT '答案得分',
  `answer_text` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '文本答案（适用于开放题）',
  `create_time` datetime DEFAULT NULL COMMENT '答题时间',
  PRIMARY KEY (`answer_id`),
  UNIQUE KEY `uk_assessment_item` (`assessment_id`,`item_id`),
  KEY `idx_assessment_id` (`assessment_id`),
  KEY `idx_item_id` (`item_id`),
  KEY `idx_option_id` (`option_id`),
  CONSTRAINT `fk_answer_assessment` FOREIGN KEY (`assessment_id`) REFERENCES `psy_assessment` (`assessment_id`) ON DELETE CASCADE,
  CONSTRAINT `fk_answer_item` FOREIGN KEY (`item_id`) REFERENCES `psy_scale_item` (`item_id`),
  CONSTRAINT `fk_answer_option` FOREIGN KEY (`option_id`) REFERENCES `psy_scale_option` (`option_id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=91 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='测评答案表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `psy_assessment_answer`
--

LOCK TABLES `psy_assessment_answer` WRITE;
/*!40000 ALTER TABLE `psy_assessment_answer` DISABLE KEYS */;
INSERT INTO `psy_assessment_answer` VALUES (1,1,6,24,NULL,3.00,NULL,'2025-11-10 14:41:21'),(2,1,7,29,NULL,3.00,NULL,'2025-11-10 14:41:21'),(3,1,11,46,NULL,0.00,NULL,'2025-11-10 14:41:21'),(4,1,9,40,NULL,4.00,NULL,'2025-11-10 14:41:21'),(5,1,10,44,NULL,3.00,NULL,'2025-11-10 14:41:21'),(6,1,8,32,NULL,1.00,NULL,'2025-11-10 14:41:21'),(7,1,15,66,NULL,0.00,NULL,'2025-11-10 14:41:21'),(8,1,12,52,NULL,1.00,NULL,'2025-11-10 14:41:21'),(9,1,17,79,NULL,3.00,NULL,'2025-11-10 14:41:21'),(10,1,16,71,NULL,0.00,NULL,'2025-11-10 14:41:21'),(11,1,14,62,NULL,1.00,NULL,'2025-11-10 14:41:21'),(12,1,13,57,NULL,1.00,NULL,'2025-11-10 14:41:21'),(13,1,21,97,NULL,1.00,NULL,'2025-11-10 14:41:22'),(14,1,20,95,NULL,4.00,NULL,'2025-11-10 14:41:22'),(15,1,18,81,NULL,0.00,NULL,'2025-11-10 14:41:22'),(16,1,19,88,NULL,2.00,NULL,'2025-11-10 14:41:22'),(17,1,22,105,NULL,4.00,NULL,'2025-11-10 14:41:22'),(18,1,23,108,NULL,2.00,NULL,'2025-11-10 14:41:22'),(19,1,27,127,NULL,1.00,NULL,'2025-11-10 14:41:22'),(20,1,25,118,NULL,2.00,NULL,'2025-11-10 14:41:22'),(21,1,24,114,NULL,3.00,NULL,'2025-11-10 14:41:22'),(22,1,26,124,NULL,3.00,NULL,'2025-11-10 14:41:22'),(23,1,28,132,NULL,1.00,NULL,'2025-11-10 14:41:22'),(24,1,29,138,NULL,2.00,NULL,'2025-11-10 14:41:22'),(25,1,31,149,NULL,3.00,NULL,'2025-11-10 14:41:22'),(26,1,30,143,NULL,2.00,NULL,'2025-11-10 14:41:22'),(27,1,35,170,NULL,4.00,NULL,'2025-11-10 14:41:22'),(28,1,33,158,NULL,2.00,NULL,'2025-11-10 14:41:22'),(29,1,32,154,NULL,3.00,NULL,'2025-11-10 14:41:22'),(30,1,34,165,NULL,4.00,NULL,'2025-11-10 14:41:23'),(31,1,38,183,NULL,2.00,NULL,'2025-11-10 14:41:23'),(32,1,37,178,NULL,2.00,NULL,'2025-11-10 14:41:23'),(33,1,36,172,NULL,1.00,NULL,'2025-11-10 14:41:23'),(34,1,40,193,NULL,2.00,NULL,'2025-11-10 14:41:23'),(35,1,41,198,NULL,2.00,NULL,'2025-11-10 14:41:23'),(36,1,39,186,NULL,0.00,NULL,'2025-11-10 14:41:23'),(37,1,47,227,NULL,1.00,NULL,'2025-11-10 14:41:23'),(38,1,42,201,NULL,0.00,NULL,'2025-11-10 14:41:23'),(39,1,45,217,NULL,1.00,NULL,'2025-11-10 14:41:23'),(40,1,43,206,NULL,0.00,NULL,'2025-11-10 14:41:23'),(41,1,46,221,NULL,0.00,NULL,'2025-11-10 14:41:23'),(42,1,44,214,NULL,3.00,NULL,'2025-11-10 14:41:23'),(43,1,51,249,NULL,3.00,NULL,'2025-11-10 14:41:24'),(44,1,48,232,NULL,1.00,NULL,'2025-11-10 14:41:24'),(45,1,53,260,NULL,4.00,NULL,'2025-11-10 14:41:24'),(46,1,49,237,NULL,1.00,NULL,'2025-11-10 14:41:24'),(47,1,50,245,NULL,4.00,NULL,'2025-11-10 14:41:24'),(48,1,52,255,NULL,4.00,NULL,'2025-11-10 14:41:24'),(49,1,56,273,NULL,2.00,NULL,'2025-11-10 14:41:24'),(50,1,55,270,NULL,4.00,NULL,'2025-11-10 14:41:24'),(51,1,57,279,NULL,3.00,NULL,'2025-11-10 14:41:24'),(52,1,59,286,NULL,0.00,NULL,'2025-11-10 14:41:24'),(53,1,58,284,NULL,3.00,NULL,'2025-11-10 14:41:24'),(54,1,54,265,NULL,4.00,NULL,'2025-11-10 14:41:24'),(55,1,62,304,NULL,3.00,NULL,'2025-11-10 14:41:24'),(56,1,61,300,NULL,4.00,NULL,'2025-11-10 14:41:24'),(57,1,60,293,NULL,2.00,NULL,'2025-11-10 14:41:24'),(58,1,63,307,NULL,1.00,NULL,'2025-11-10 14:41:24'),(59,1,64,315,NULL,4.00,NULL,'2025-11-10 14:41:24'),(60,1,65,318,NULL,2.00,NULL,'2025-11-10 14:41:24'),(61,1,67,330,NULL,4.00,NULL,'2025-11-10 14:41:25'),(62,1,68,335,NULL,4.00,NULL,'2025-11-10 14:41:25'),(63,1,66,325,NULL,4.00,NULL,'2025-11-10 14:41:25'),(64,1,69,338,NULL,2.00,NULL,'2025-11-10 14:41:25'),(65,1,70,342,NULL,1.00,NULL,'2025-11-10 14:41:25'),(66,1,71,350,NULL,4.00,NULL,'2025-11-10 14:41:25'),(67,1,74,364,NULL,3.00,NULL,'2025-11-10 14:41:25'),(68,1,72,354,NULL,3.00,NULL,'2025-11-10 14:41:25'),(69,1,73,360,NULL,4.00,NULL,'2025-11-10 14:41:25'),(70,1,75,366,NULL,0.00,NULL,'2025-11-10 14:41:25'),(71,1,76,373,NULL,2.00,NULL,'2025-11-10 14:41:25'),(72,1,77,380,NULL,4.00,NULL,'2025-11-10 14:41:25'),(73,1,79,386,NULL,0.00,NULL,'2025-11-10 14:41:25'),(74,1,80,395,NULL,4.00,NULL,'2025-11-10 14:41:25'),(75,1,78,381,NULL,0.00,NULL,'2025-11-10 14:41:25'),(76,1,81,399,NULL,3.00,NULL,'2025-11-10 14:41:25'),(77,1,82,402,NULL,1.00,NULL,'2025-11-10 14:41:25'),(78,1,83,406,NULL,0.00,NULL,'2025-11-10 14:41:25'),(79,1,84,415,NULL,4.00,NULL,'2025-11-10 14:41:26'),(80,1,85,416,NULL,0.00,NULL,'2025-11-10 14:41:26'),(81,1,86,425,NULL,4.00,NULL,'2025-11-10 14:41:26'),(82,1,87,428,NULL,2.00,NULL,'2025-11-10 14:41:26'),(83,1,88,431,NULL,0.00,NULL,'2025-11-10 14:41:26'),(84,1,89,439,NULL,3.00,NULL,'2025-11-10 14:41:26'),(85,1,90,442,NULL,1.00,NULL,'2025-11-10 14:41:26'),(86,1,92,455,NULL,4.00,NULL,'2025-11-10 14:41:26'),(87,1,91,446,NULL,0.00,NULL,'2025-11-10 14:41:26'),(88,1,94,462,NULL,1.00,NULL,'2025-11-10 14:41:26'),(89,1,93,458,NULL,2.00,NULL,'2025-11-10 14:41:26'),(90,1,95,467,NULL,1.00,NULL,'2025-11-10 14:41:26');
/*!40000 ALTER TABLE `psy_assessment_answer` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `psy_assessment_report`
--

DROP TABLE IF EXISTS `psy_assessment_report`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `psy_assessment_report` (
  `report_id` bigint NOT NULL AUTO_INCREMENT COMMENT '报告ID',
  `assessment_id` bigint NOT NULL COMMENT '测评ID',
  `report_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'standard' COMMENT '报告类型（standard标准 detailed详细 brief简要）',
  `report_title` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '报告标题',
  `report_content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '报告内容（HTML格式）',
  `summary` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '报告摘要',
  `chart_data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '图表数据（JSON格式）',
  `pdf_path` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'PDF文件路径',
  `is_generated` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '是否已生成（0否 1是）',
  `generate_time` datetime DEFAULT NULL COMMENT '生成时间',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`report_id`),
  UNIQUE KEY `uk_assessment_report` (`assessment_id`),
  CONSTRAINT `fk_report_assessment` FOREIGN KEY (`assessment_id`) REFERENCES `psy_assessment` (`assessment_id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='测评报告表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `psy_assessment_report`
--

LOCK TABLES `psy_assessment_report` WRITE;
/*!40000 ALTER TABLE `psy_assessment_report` DISABLE KEYS */;
INSERT INTO `psy_assessment_report` VALUES (1,1,'standard','症状自评量表SCL-90测评报告','<div class=\'report-container\'><h1>症状自评量表SCL-90测评报告</h1><p class=\'report-info\'>测评时间：2025-11-10 14:41:27</p><p class=\'report-info\'>被测评人：admin</p><p class=\'report-info\'>总题目数：90</p><p class=\'report-info\'>总分：174.0000</p><h2>因子得分</h2><table class=\'score-table\' style=\'width: 100%; border-collapse: collapse; margin: 20px 0;\'><thead><tr style=\'background-color: #f5f7fa;\'><th style=\'padding: 10px; border: 1px solid #ddd;\'>因子名称</th><th style=\'padding: 10px; border: 1px solid #ddd;\'>得分</th><th style=\'padding: 10px; border: 1px solid #ddd;\'>解释</th></tr></thead><tbody><tr><td style=\'padding: 10px; border: 1px solid #ddd;\'>躯体化</td><td style=\'padding: 10px; border: 1px solid #ddd; text-align: center;\'>34.0000</td><td style=\'padding: 10px; border: 1px solid #ddd;\'>您的总体得分在正常范围内，心理健康状况良好。<br/><strong>建议：</strong>继续保持良好的心理状态，注意日常生活中的压力管理。</td></tr><tr><td style=\'padding: 10px; border: 1px solid #ddd;\'>强迫症状</td><td style=\'padding: 10px; border: 1px solid #ddd; text-align: center;\'>16.0000</td><td style=\'padding: 10px; border: 1px solid #ddd;\'>您的总体得分在正常范围内，心理健康状况良好。<br/><strong>建议：</strong>继续保持良好的心理状态，注意日常生活中的压力管理。</td></tr><tr><td style=\'padding: 10px; border: 1px solid #ddd;\'>人际关系敏感</td><td style=\'padding: 10px; border: 1px solid #ddd; text-align: center;\'>12.0000</td><td style=\'padding: 10px; border: 1px solid #ddd;\'>您的总体得分在正常范围内，心理健康状况良好。<br/><strong>建议：</strong>继续保持良好的心理状态，注意日常生活中的压力管理。</td></tr><tr><td style=\'padding: 10px; border: 1px solid #ddd;\'>抑郁</td><td style=\'padding: 10px; border: 1px solid #ddd; text-align: center;\'>32.0000</td><td style=\'padding: 10px; border: 1px solid #ddd;\'>您的总体得分在正常范围内，心理健康状况良好。<br/><strong>建议：</strong>继续保持良好的心理状态，注意日常生活中的压力管理。</td></tr><tr><td style=\'padding: 10px; border: 1px solid #ddd;\'>焦虑</td><td style=\'padding: 10px; border: 1px solid #ddd; text-align: center;\'>20.0000</td><td style=\'padding: 10px; border: 1px solid #ddd;\'>您的总体得分在正常范围内，心理健康状况良好。<br/><strong>建议：</strong>继续保持良好的心理状态，注意日常生活中的压力管理。</td></tr><tr><td style=\'padding: 10px; border: 1px solid #ddd;\'>敌对</td><td style=\'padding: 10px; border: 1px solid #ddd; text-align: center;\'>13.0000</td><td style=\'padding: 10px; border: 1px solid #ddd;\'>您的总体得分在正常范围内，心理健康状况良好。<br/><strong>建议：</strong>继续保持良好的心理状态，注意日常生活中的压力管理。</td></tr><tr><td style=\'padding: 10px; border: 1px solid #ddd;\'>恐怖</td><td style=\'padding: 10px; border: 1px solid #ddd; text-align: center;\'>16.0000</td><td style=\'padding: 10px; border: 1px solid #ddd;\'>您的总体得分在正常范围内，心理健康状况良好。<br/><strong>建议：</strong>继续保持良好的心理状态，注意日常生活中的压力管理。</td></tr><tr><td style=\'padding: 10px; border: 1px solid #ddd;\'>偏执</td><td style=\'padding: 10px; border: 1px solid #ddd; text-align: center;\'>11.0000</td><td style=\'padding: 10px; border: 1px solid #ddd;\'>您的总体得分在正常范围内，心理健康状况良好。<br/><strong>建议：</strong>继续保持良好的心理状态，注意日常生活中的压力管理。</td></tr><tr><td style=\'padding: 10px; border: 1px solid #ddd;\'>精神病性</td><td style=\'padding: 10px; border: 1px solid #ddd; text-align: center;\'>20.0000</td><td style=\'padding: 10px; border: 1px solid #ddd;\'>您的总体得分在正常范围内，心理健康状况良好。<br/><strong>建议：</strong>继续保持良好的心理状态，注意日常生活中的压力管理。</td></tr></tbody></table><h2>总体结论</h2><p>您可能存在轻度的心理症状，建议适当关注自己的心理健康。</p><h3>建议</h3><p>建议通过放松训练、运动、社交等方式缓解压力，如症状持续可考虑咨询专业人士。</p></div>','本次测评完成于2025-11-10 14:41:27，共评估了9个因子，完成90道题目。总分：174.0000。成功计算出9个因子的得分，详见报告正文。',NULL,NULL,'1','2025-11-10 14:41:27','system','2025-11-10 14:41:26','',NULL);
/*!40000 ALTER TABLE `psy_assessment_report` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `psy_factor`
--

DROP TABLE IF EXISTS `psy_factor`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `psy_factor` (
  `factor_id` bigint NOT NULL AUTO_INCREMENT COMMENT '因子ID',
  `scale_id` bigint NOT NULL COMMENT '量表ID',
  `factor_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '因子编码',
  `factor_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '因子名称',
  `factor_en_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '因子英文名称',
  `factor_description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '因子描述',
  `factor_order` int DEFAULT '0' COMMENT '因子顺序',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`factor_id`),
  KEY `idx_scale_id` (`scale_id`),
  KEY `idx_factor_code` (`scale_id`,`factor_code`),
  CONSTRAINT `fk_factor_scale` FOREIGN KEY (`scale_id`) REFERENCES `psy_scale` (`scale_id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='量表因子（维度）表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `psy_factor`
--

LOCK TABLES `psy_factor` WRITE;
/*!40000 ALTER TABLE `psy_factor` DISABLE KEYS */;
INSERT INTO `psy_factor` VALUES (1,1,'ENVIRONMENTAL','环境适应','Environmental Adaptation','对社会环境的适应能力',1,'admin','2025-11-10 14:39:08','',NULL,NULL),(2,1,'INTERPERSONAL','人际适应','Interpersonal Adaptation','与他人相处的能力',2,'admin','2025-11-10 14:39:08','',NULL,NULL),(3,1,'LIFE_SKILLS','生活适应','Life Skills Adaptation','日常生活技能的适应',3,'admin','2025-11-10 14:39:08','',NULL,NULL),(4,1,'EMOTIONAL','情感适应','Emotional Adaptation','情绪情感调节能力',4,'admin','2025-11-10 14:39:08','',NULL,NULL),(5,13,'F1','躯体化','Somatization','SCL-90 躯体化因子，包含12个题目',1,'admin','2025-11-10 14:40:26','',NULL,NULL),(6,13,'F2','强迫症状','Obsessive-Compulsive','SCL-90 强迫症状因子，包含10个题目',2,'admin','2025-11-10 14:40:26','',NULL,NULL),(7,13,'F3','人际关系敏感','Interpersonal Sensitivity','SCL-90 人际关系敏感因子，包含9个题目',3,'admin','2025-11-10 14:40:26','',NULL,NULL),(8,13,'F4','抑郁','Depression','SCL-90 抑郁因子，包含13个题目',4,'admin','2025-11-10 14:40:26','',NULL,NULL),(9,13,'F5','焦虑','Anxiety','SCL-90 焦虑因子，包含10个题目',5,'admin','2025-11-10 14:40:26','',NULL,NULL),(10,13,'F6','敌对','Hostility','SCL-90 敌对因子，包含6个题目',6,'admin','2025-11-10 14:40:26','',NULL,NULL),(11,13,'F7','恐怖','Phobic Anxiety','SCL-90 恐怖因子，包含7个题目',7,'admin','2025-11-10 14:40:26','',NULL,NULL),(12,13,'F8','偏执','Paranoid Ideation','SCL-90 偏执因子，包含6个题目',8,'admin','2025-11-10 14:40:26','',NULL,NULL),(13,13,'F9','精神病性','Psychoticism','SCL-90 精神病性因子，包含10个题目',9,'admin','2025-11-10 14:40:26','',NULL,NULL);
/*!40000 ALTER TABLE `psy_factor` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `psy_factor_rule`
--

DROP TABLE IF EXISTS `psy_factor_rule`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `psy_factor_rule` (
  `rule_id` bigint NOT NULL AUTO_INCREMENT COMMENT '规则ID',
  `factor_id` bigint NOT NULL COMMENT '因子ID',
  `item_id` bigint NOT NULL COMMENT '题目ID',
  `option_ids` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '参与计分的选项ID（多个用逗号分隔，为空表示该题的所有选项）',
  `weight` decimal(5,2) DEFAULT '1.00' COMMENT '权重（默认1.0）',
  `calculation_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'sum' COMMENT '计算方式（sum求和 average平均 max最大 min最小）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`rule_id`),
  UNIQUE KEY `uk_factor_item` (`factor_id`,`item_id`),
  KEY `idx_factor_id` (`factor_id`),
  KEY `idx_item_id` (`item_id`),
  CONSTRAINT `fk_rule_factor` FOREIGN KEY (`factor_id`) REFERENCES `psy_factor` (`factor_id`) ON DELETE CASCADE,
  CONSTRAINT `fk_rule_item` FOREIGN KEY (`item_id`) REFERENCES `psy_scale_item` (`item_id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=86 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='因子计分规则表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `psy_factor_rule`
--

LOCK TABLES `psy_factor_rule` WRITE;
/*!40000 ALTER TABLE `psy_factor_rule` DISABLE KEYS */;
INSERT INTO `psy_factor_rule` VALUES (1,1,1,NULL,1.00,'sum','admin','2025-11-10 14:39:08'),(2,1,2,NULL,1.00,'sum','admin','2025-11-10 14:39:08'),(3,5,6,'',1.00,'sum','admin','2025-11-10 14:40:27'),(4,5,9,'',1.00,'sum','admin','2025-11-10 14:40:27'),(5,5,17,'',1.00,'sum','admin','2025-11-10 14:40:27'),(6,5,32,'',1.00,'sum','admin','2025-11-10 14:40:27'),(7,5,45,'',1.00,'sum','admin','2025-11-10 14:40:27'),(8,5,47,'',1.00,'sum','admin','2025-11-10 14:40:27'),(9,5,53,'',1.00,'sum','admin','2025-11-10 14:40:27'),(10,5,54,'',1.00,'sum','admin','2025-11-10 14:40:27'),(11,5,57,'',1.00,'sum','admin','2025-11-10 14:40:27'),(12,5,58,'',1.00,'sum','admin','2025-11-10 14:40:27'),(13,5,61,'',1.00,'sum','admin','2025-11-10 14:40:27'),(14,5,63,'',1.00,'sum','admin','2025-11-10 14:40:27'),(15,6,8,'',1.00,'sum','admin','2025-11-10 14:40:27'),(16,6,14,'',1.00,'sum','admin','2025-11-10 14:40:27'),(17,6,15,'',1.00,'sum','admin','2025-11-10 14:40:27'),(18,6,33,'',1.00,'sum','admin','2025-11-10 14:40:27'),(19,6,43,'',1.00,'sum','admin','2025-11-10 14:40:27'),(20,6,50,'',1.00,'sum','admin','2025-11-10 14:40:27'),(21,6,51,'',1.00,'sum','admin','2025-11-10 14:40:27'),(22,6,56,'',1.00,'sum','admin','2025-11-10 14:40:27'),(23,6,60,'',1.00,'sum','admin','2025-11-10 14:40:27'),(24,6,70,'',1.00,'sum','admin','2025-11-10 14:40:27'),(25,7,11,'',1.00,'sum','admin','2025-11-10 14:40:27'),(26,7,26,'',1.00,'sum','admin','2025-11-10 14:40:27'),(27,7,39,'',1.00,'sum','admin','2025-11-10 14:40:27'),(28,7,41,'',1.00,'sum','admin','2025-11-10 14:40:27'),(29,7,42,'',1.00,'sum','admin','2025-11-10 14:40:27'),(30,7,46,'',1.00,'sum','admin','2025-11-10 14:40:27'),(31,7,66,'',1.00,'sum','admin','2025-11-10 14:40:27'),(32,7,74,'',1.00,'sum','admin','2025-11-10 14:40:27'),(33,7,78,'',1.00,'sum','admin','2025-11-10 14:40:27'),(34,8,10,'',1.00,'sum','admin','2025-11-10 14:40:27'),(35,8,19,'',1.00,'sum','admin','2025-11-10 14:40:27'),(36,8,20,'',1.00,'sum','admin','2025-11-10 14:40:27'),(37,8,25,'',1.00,'sum','admin','2025-11-10 14:40:27'),(38,8,27,'',1.00,'sum','admin','2025-11-10 14:40:27'),(39,8,31,'',1.00,'sum','admin','2025-11-10 14:40:27'),(40,8,34,'',1.00,'sum','admin','2025-11-10 14:40:27'),(41,8,35,'',1.00,'sum','admin','2025-11-10 14:40:27'),(42,8,36,'',1.00,'sum','admin','2025-11-10 14:40:27'),(43,8,37,'',1.00,'sum','admin','2025-11-10 14:40:27'),(44,8,59,'',1.00,'sum','admin','2025-11-10 14:40:27'),(45,8,76,'',1.00,'sum','admin','2025-11-10 14:40:27'),(46,8,84,'',1.00,'sum','admin','2025-11-10 14:40:27'),(47,9,7,'',1.00,'sum','admin','2025-11-10 14:40:27'),(48,9,22,'',1.00,'sum','admin','2025-11-10 14:40:27'),(49,9,28,'',1.00,'sum','admin','2025-11-10 14:40:27'),(50,9,38,'',1.00,'sum','admin','2025-11-10 14:40:27'),(51,9,44,'',1.00,'sum','admin','2025-11-10 14:40:27'),(52,9,62,'',1.00,'sum','admin','2025-11-10 14:40:27'),(53,9,77,'',1.00,'sum','admin','2025-11-10 14:40:27'),(54,9,83,'',1.00,'sum','admin','2025-11-10 14:40:27'),(55,9,85,'',1.00,'sum','admin','2025-11-10 14:40:27'),(56,9,91,'',1.00,'sum','admin','2025-11-10 14:40:27'),(57,10,16,'',1.00,'sum','admin','2025-11-10 14:40:27'),(58,10,29,'',1.00,'sum','admin','2025-11-10 14:40:27'),(59,10,68,'',1.00,'sum','admin','2025-11-10 14:40:27'),(60,10,72,'',1.00,'sum','admin','2025-11-10 14:40:27'),(61,10,79,'',1.00,'sum','admin','2025-11-10 14:40:27'),(62,10,86,'',1.00,'sum','admin','2025-11-10 14:40:27'),(63,11,18,'',1.00,'sum','admin','2025-11-10 14:40:27'),(64,11,30,'',1.00,'sum','admin','2025-11-10 14:40:27'),(65,11,52,'',1.00,'sum','admin','2025-11-10 14:40:27'),(66,11,55,'',1.00,'sum','admin','2025-11-10 14:40:27'),(67,11,75,'',1.00,'sum','admin','2025-11-10 14:40:27'),(68,11,80,'',1.00,'sum','admin','2025-11-10 14:40:27'),(69,11,87,'',1.00,'sum','admin','2025-11-10 14:40:27'),(70,12,13,'',1.00,'sum','admin','2025-11-10 14:40:27'),(71,12,23,'',1.00,'sum','admin','2025-11-10 14:40:27'),(72,12,48,'',1.00,'sum','admin','2025-11-10 14:40:27'),(73,12,73,'',1.00,'sum','admin','2025-11-10 14:40:27'),(74,12,81,'',1.00,'sum','admin','2025-11-10 14:40:27'),(75,12,88,'',1.00,'sum','admin','2025-11-10 14:40:27'),(76,13,12,'',1.00,'sum','admin','2025-11-10 14:40:27'),(77,13,21,'',1.00,'sum','admin','2025-11-10 14:40:27'),(78,13,40,'',1.00,'sum','admin','2025-11-10 14:40:27'),(79,13,67,'',1.00,'sum','admin','2025-11-10 14:40:27'),(80,13,82,'',1.00,'sum','admin','2025-11-10 14:40:27'),(81,13,89,'',1.00,'sum','admin','2025-11-10 14:40:27'),(82,13,90,'',1.00,'sum','admin','2025-11-10 14:40:27'),(83,13,92,'',1.00,'sum','admin','2025-11-10 14:40:27'),(84,13,93,'',1.00,'sum','admin','2025-11-10 14:40:27'),(85,13,95,'',1.00,'sum','admin','2025-11-10 14:40:27');
/*!40000 ALTER TABLE `psy_factor_rule` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `psy_factor_score`
--

DROP TABLE IF EXISTS `psy_factor_score`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `psy_factor_score` (
  `score_id` bigint NOT NULL AUTO_INCREMENT COMMENT '得分ID',
  `assessment_id` bigint NOT NULL COMMENT '测评ID',
  `factor_id` bigint NOT NULL COMMENT '因子ID',
  `factor_score` decimal(10,2) NOT NULL COMMENT '因子得分',
  `standard_score` decimal(10,2) DEFAULT NULL COMMENT '标准分（T分、Z分等）',
  `percentile` decimal(5,2) DEFAULT NULL COMMENT '百分位',
  `create_time` datetime DEFAULT NULL COMMENT '计算时间',
  PRIMARY KEY (`score_id`),
  UNIQUE KEY `uk_assessment_factor` (`assessment_id`,`factor_id`),
  KEY `idx_assessment_id` (`assessment_id`),
  KEY `idx_factor_id` (`factor_id`),
  CONSTRAINT `fk_score_assessment` FOREIGN KEY (`assessment_id`) REFERENCES `psy_assessment` (`assessment_id`) ON DELETE CASCADE,
  CONSTRAINT `fk_score_factor` FOREIGN KEY (`factor_id`) REFERENCES `psy_factor` (`factor_id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='因子得分表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `psy_factor_score`
--

LOCK TABLES `psy_factor_score` WRITE;
/*!40000 ALTER TABLE `psy_factor_score` DISABLE KEYS */;
INSERT INTO `psy_factor_score` VALUES (1,1,5,34.00,NULL,NULL,'2025-11-10 14:41:26'),(2,1,6,16.00,NULL,NULL,'2025-11-10 14:41:26'),(3,1,7,12.00,NULL,NULL,'2025-11-10 14:41:26'),(4,1,8,32.00,NULL,NULL,'2025-11-10 14:41:26'),(5,1,9,20.00,NULL,NULL,'2025-11-10 14:41:26'),(6,1,10,13.00,NULL,NULL,'2025-11-10 14:41:26'),(7,1,11,16.00,NULL,NULL,'2025-11-10 14:41:26'),(8,1,12,11.00,NULL,NULL,'2025-11-10 14:41:26'),(9,1,13,20.00,NULL,NULL,'2025-11-10 14:41:26');
/*!40000 ALTER TABLE `psy_factor_score` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `psy_qrcode`
--

DROP TABLE IF EXISTS `psy_qrcode`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `psy_qrcode` (
  `qrcode_id` bigint NOT NULL AUTO_INCREMENT COMMENT '二维码ID',
  `qrcode_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '二维码编号',
  `qrcode_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '二维码类型（test测评 view_report查看报告 register注册 login登录）',
  `target_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '目标类型（scale量表 assessment测评 report报告）',
  `target_id` bigint DEFAULT NULL COMMENT '目标ID',
  `short_url` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '短链接',
  `qrcode_url` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '二维码图片URL',
  `scan_count` int DEFAULT '0' COMMENT '扫码次数',
  `expire_time` datetime DEFAULT NULL COMMENT '过期时间',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '状态（0有效 1无效 2已过期）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`qrcode_id`),
  UNIQUE KEY `uk_qrcode_code` (`qrcode_code`),
  KEY `idx_qrcode_type` (`qrcode_type`),
  KEY `idx_status` (`status`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='二维码管理表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `psy_qrcode`
--

LOCK TABLES `psy_qrcode` WRITE;
/*!40000 ALTER TABLE `psy_qrcode` DISABLE KEYS */;
/*!40000 ALTER TABLE `psy_qrcode` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `psy_qrcode_log`
--

DROP TABLE IF EXISTS `psy_qrcode_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `psy_qrcode_log` (
  `log_id` bigint NOT NULL AUTO_INCREMENT COMMENT '记录ID',
  `qrcode_id` bigint NOT NULL COMMENT '二维码ID',
  `user_id` bigint DEFAULT NULL COMMENT '扫码用户ID',
  `ip_address` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT 'IP地址',
  `user_agent` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '用户代理',
  `scan_time` datetime DEFAULT NULL COMMENT '扫码时间',
  PRIMARY KEY (`log_id`),
  KEY `idx_qrcode_id` (`qrcode_id`),
  KEY `idx_scan_time` (`scan_time`),
  CONSTRAINT `fk_qrcode_log_qrcode` FOREIGN KEY (`qrcode_id`) REFERENCES `psy_qrcode` (`qrcode_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='二维码扫码记录表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `psy_qrcode_log`
--

LOCK TABLES `psy_qrcode_log` WRITE;
/*!40000 ALTER TABLE `psy_qrcode_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `psy_qrcode_log` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `psy_questionnaire`
--

DROP TABLE IF EXISTS `psy_questionnaire`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `psy_questionnaire` (
  `questionnaire_id` bigint NOT NULL AUTO_INCREMENT COMMENT '问卷ID',
  `questionnaire_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '问卷编码',
  `questionnaire_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '问卷名称',
  `questionnaire_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'custom' COMMENT '问卷类型（custom自定义 exam考试 practice练习）',
  `paper_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'manual' COMMENT '组卷方式（manual手动 random随机 mixed混合）',
  `item_count` int DEFAULT '0' COMMENT '题目数量',
  `total_score` decimal(10,2) DEFAULT '0.00' COMMENT '总分',
  `pass_score` decimal(10,2) DEFAULT NULL COMMENT '及格分数',
  `estimated_time` int DEFAULT NULL COMMENT '预计完成时间（分钟）',
  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '问卷描述',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '状态（0正常 1停用）',
  `sort_order` int DEFAULT '0' COMMENT '排序顺序',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`questionnaire_id`),
  UNIQUE KEY `uk_questionnaire_code` (`questionnaire_code`),
  KEY `idx_questionnaire_type` (`questionnaire_type`),
  KEY `idx_status` (`status`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='自定义问卷表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `psy_questionnaire`
--

LOCK TABLES `psy_questionnaire` WRITE;
/*!40000 ALTER TABLE `psy_questionnaire` DISABLE KEYS */;
INSERT INTO `psy_questionnaire` VALUES (1,'2332','阿法迪三','custom','manual',1,0.00,0.00,1,NULL,'0',0,'admin','2025-11-12 10:54:04','admin','2025-11-12 10:55:29',NULL);
/*!40000 ALTER TABLE `psy_questionnaire` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `psy_questionnaire_answer`
--

DROP TABLE IF EXISTS `psy_questionnaire_answer`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `psy_questionnaire_answer` (
  `answer_id` bigint NOT NULL AUTO_INCREMENT COMMENT '答案ID',
  `questionnaire_id` bigint NOT NULL COMMENT '问卷ID',
  `user_id` bigint DEFAULT NULL COMMENT '用户ID（关联sys_user）',
  `respondent_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '答题人姓名',
  `start_time` datetime DEFAULT NULL COMMENT '开始时间',
  `submit_time` datetime DEFAULT NULL COMMENT '提交时间',
  `total_score` decimal(10,2) DEFAULT '0.00' COMMENT '总得分',
  `is_pass` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '是否及格（0否 1是）',
  `rank` int DEFAULT NULL COMMENT '排名',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '状态（0进行中 1已完成 2已作废）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`answer_id`),
  KEY `idx_questionnaire_id` (`questionnaire_id`),
  KEY `idx_user_id` (`user_id`),
  KEY `idx_status` (`status`),
  CONSTRAINT `fk_q_answer_questionnaire` FOREIGN KEY (`questionnaire_id`) REFERENCES `psy_questionnaire` (`questionnaire_id`),
  CONSTRAINT `fk_q_answer_user` FOREIGN KEY (`user_id`) REFERENCES `sys_user` (`user_id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='问卷答题记录表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `psy_questionnaire_answer`
--

LOCK TABLES `psy_questionnaire_answer` WRITE;
/*!40000 ALTER TABLE `psy_questionnaire_answer` DISABLE KEYS */;
INSERT INTO `psy_questionnaire_answer` VALUES (1,1,1,NULL,'2025-11-12 10:55:38','2025-11-12 10:55:43',1.00,'0',1,'1','admin','2025-11-12 10:55:38','admin','2025-11-12 11:06:46'),(2,1,1,NULL,'2025-11-12 11:00:03','2025-11-12 11:00:08',1.00,'0',2,'1','admin','2025-11-12 11:00:02','admin','2025-11-12 11:06:46'),(3,1,1,NULL,'2025-11-12 11:06:41','2025-11-12 11:06:46',0.00,'0',NULL,'1','admin','2025-11-12 11:06:41','admin','2025-11-12 11:06:46');
/*!40000 ALTER TABLE `psy_questionnaire_answer` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `psy_questionnaire_answer_detail`
--

DROP TABLE IF EXISTS `psy_questionnaire_answer_detail`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `psy_questionnaire_answer_detail` (
  `detail_id` bigint NOT NULL AUTO_INCREMENT COMMENT '详情ID',
  `answer_id` bigint NOT NULL COMMENT '答案ID（关联问卷答题记录）',
  `item_id` bigint NOT NULL COMMENT '题目ID',
  `option_id` bigint DEFAULT NULL COMMENT '选项ID（单选/判断时使用）',
  `option_ids` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '选项ID列表（多选时使用，逗号分隔）',
  `answer_text` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '文本答案（填空、简答、问答、作文等）',
  `answer_score` decimal(10,2) DEFAULT '0.00' COMMENT '答案得分',
  `is_subjective` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '是否主观题（0否 1是）',
  `is_scored` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '是否已评分（0否 1是）',
  `scored_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '评分人',
  `scored_time` datetime DEFAULT NULL COMMENT '评分时间',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`detail_id`),
  KEY `idx_answer_id` (`answer_id`),
  KEY `idx_item_id` (`item_id`),
  KEY `idx_is_subjective` (`is_subjective`),
  KEY `idx_is_scored` (`is_scored`),
  CONSTRAINT `fk_q_detail_answer` FOREIGN KEY (`answer_id`) REFERENCES `psy_questionnaire_answer` (`answer_id`) ON DELETE CASCADE,
  CONSTRAINT `fk_q_detail_item` FOREIGN KEY (`item_id`) REFERENCES `psy_questionnaire_item` (`item_id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='问卷答案详情表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `psy_questionnaire_answer_detail`
--

LOCK TABLES `psy_questionnaire_answer_detail` WRITE;
/*!40000 ALTER TABLE `psy_questionnaire_answer_detail` DISABLE KEYS */;
INSERT INTO `psy_questionnaire_answer_detail` VALUES (1,1,1,3,NULL,NULL,1.00,'0','1',NULL,NULL,'2025-11-12 10:55:40','2025-11-12 10:55:42'),(2,2,1,3,NULL,NULL,1.00,'0','1',NULL,NULL,'2025-11-12 11:00:05','2025-11-12 11:00:07'),(3,3,1,2,NULL,NULL,0.00,'0','1',NULL,NULL,'2025-11-12 11:06:44','2025-11-12 11:06:46');
/*!40000 ALTER TABLE `psy_questionnaire_answer_detail` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `psy_questionnaire_item`
--

DROP TABLE IF EXISTS `psy_questionnaire_item`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `psy_questionnaire_item` (
  `item_id` bigint NOT NULL AUTO_INCREMENT COMMENT '题目ID',
  `questionnaire_id` bigint NOT NULL COMMENT '问卷ID',
  `item_number` int NOT NULL COMMENT '题目序号',
  `item_content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '题目内容',
  `item_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '题目类型（radio单选 checkbox多选 boolean判断 input填空 sort排序 calculate计算 text简答 textarea问答 essay作文）',
  `is_required` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '1' COMMENT '是否必填（0否 1是）',
  `score` decimal(10,2) DEFAULT '0.00' COMMENT '题目分值',
  `sort_order` int DEFAULT '0' COMMENT '排序顺序',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`item_id`),
  KEY `idx_questionnaire_id` (`questionnaire_id`),
  KEY `idx_item_number` (`questionnaire_id`,`item_number`),
  CONSTRAINT `fk_q_item_questionnaire` FOREIGN KEY (`questionnaire_id`) REFERENCES `psy_questionnaire` (`questionnaire_id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='问卷题目表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `psy_questionnaire_item`
--

LOCK TABLES `psy_questionnaire_item` WRITE;
/*!40000 ALTER TABLE `psy_questionnaire_item` DISABLE KEYS */;
INSERT INTO `psy_questionnaire_item` VALUES (1,1,1,'阿斯蒂芬撒旦法的方式','radio','1',0.00,0,'admin','2025-11-12 10:54:17','',NULL,NULL);
/*!40000 ALTER TABLE `psy_questionnaire_item` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `psy_questionnaire_option`
--

DROP TABLE IF EXISTS `psy_questionnaire_option`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `psy_questionnaire_option` (
  `option_id` bigint NOT NULL AUTO_INCREMENT COMMENT '选项ID',
  `item_id` bigint NOT NULL COMMENT '题目ID',
  `option_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '选项编码（如A、B、C或1、2、3）',
  `option_content` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '选项内容',
  `option_score` decimal(10,2) DEFAULT '0.00' COMMENT '选项分值',
  `is_correct` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '是否正确答案（0否 1是）',
  `sort_order` int DEFAULT '0' COMMENT '排序顺序',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`option_id`),
  KEY `idx_item_id` (`item_id`),
  CONSTRAINT `fk_q_option_item` FOREIGN KEY (`item_id`) REFERENCES `psy_questionnaire_item` (`item_id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='问卷选项表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `psy_questionnaire_option`
--

LOCK TABLES `psy_questionnaire_option` WRITE;
/*!40000 ALTER TABLE `psy_questionnaire_option` DISABLE KEYS */;
INSERT INTO `psy_questionnaire_option` VALUES (1,1,'A','阿萨德噶事范德萨说的发',0.00,'0',0,'admin','2025-11-12 10:54:25','',NULL),(2,1,'B','阿斯蒂芬三撒地方',0.00,'0',1,'admin','2025-11-12 10:54:33','',NULL),(3,1,'C','sfd adffafasd ',1.00,'1',2,'admin','2025-11-12 10:54:44','',NULL);
/*!40000 ALTER TABLE `psy_questionnaire_option` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `psy_questionnaire_report`
--

DROP TABLE IF EXISTS `psy_questionnaire_report`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `psy_questionnaire_report` (
  `report_id` bigint NOT NULL AUTO_INCREMENT COMMENT '报告ID',
  `answer_id` bigint NOT NULL COMMENT '答题ID（关联问卷答题记录）',
  `report_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'standard' COMMENT '报告类型（standard标准 detailed详细 brief简要）',
  `report_title` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '报告标题',
  `report_content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '报告内容（HTML格式）',
  `summary` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '报告摘要',
  `chart_data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '图表数据（JSON格式）',
  `pdf_path` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'PDF文件路径',
  `is_generated` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '是否已生成（0否 1是）',
  `generate_time` datetime DEFAULT NULL COMMENT '生成时间',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`report_id`),
  UNIQUE KEY `uk_answer_report` (`answer_id`),
  CONSTRAINT `fk_q_report_answer` FOREIGN KEY (`answer_id`) REFERENCES `psy_questionnaire_answer` (`answer_id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='问卷报告表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `psy_questionnaire_report`
--

LOCK TABLES `psy_questionnaire_report` WRITE;
/*!40000 ALTER TABLE `psy_questionnaire_report` DISABLE KEYS */;
INSERT INTO `psy_questionnaire_report` VALUES (1,1,'standard','阿法迪三 - 答题报告','<div class=\'report-container\'><h1>阿法迪三 - 答题报告</h1><p class=\'report-info\'>答题时间：2025-11-12 10:55:38</p><p class=\'report-info\'>总题目数：1</p><p class=\'report-info\'>总得分：1.00</p><h2>题目得分详情</h2><table class=\'score-table\' style=\'width: 100%; border-collapse: collapse; margin: 20px 0;\'><thead><tr style=\'background-color: #f5f7fa;\'><th style=\'padding: 10px; border: 1px solid #ddd;\'>题目序号</th><th style=\'padding: 10px; border: 1px solid #ddd;\'>题目内容</th><th style=\'padding: 10px; border: 1px solid #ddd;\'>得分</th><th style=\'padding: 10px; border: 1px solid #ddd;\'>状态</th></tr></thead><tbody><tr><td style=\'padding: 10px; border: 1px solid #ddd;\'>1</td><td style=\'padding: 10px; border: 1px solid #ddd;\'>阿斯蒂芬撒旦法的方式</td><td style=\'padding: 10px; border: 1px solid #ddd; text-align: center;\'>1.00</td><td style=\'padding: 10px; border: 1px solid #ddd;\'>已评分</td></tr></tbody></table></div>','本次答题共完成1道题目，总得分1.00分',NULL,NULL,'1','2025-11-12 10:55:43','admin','2025-11-12 10:55:42','',NULL),(2,2,'standard','阿法迪三 - 答题报告','<div class=\'report-container\'><h1>阿法迪三 - 答题报告</h1><p class=\'report-info\'>答题时间：2025-11-12 11:00:03</p><p class=\'report-info\'>总题目数：1</p><p class=\'report-info\'>总得分：1.00</p><h2>题目得分详情</h2><table class=\'score-table\' style=\'width: 100%; border-collapse: collapse; margin: 20px 0;\'><thead><tr style=\'background-color: #f5f7fa;\'><th style=\'padding: 10px; border: 1px solid #ddd;\'>题目序号</th><th style=\'padding: 10px; border: 1px solid #ddd;\'>题目内容</th><th style=\'padding: 10px; border: 1px solid #ddd;\'>得分</th><th style=\'padding: 10px; border: 1px solid #ddd;\'>状态</th></tr></thead><tbody><tr><td style=\'padding: 10px; border: 1px solid #ddd;\'>1</td><td style=\'padding: 10px; border: 1px solid #ddd;\'>阿斯蒂芬撒旦法的方式</td><td style=\'padding: 10px; border: 1px solid #ddd; text-align: center;\'>1.00</td><td style=\'padding: 10px; border: 1px solid #ddd;\'>已评分</td></tr></tbody></table></div>','本次答题共完成1道题目，总得分1.00分',NULL,NULL,'1','2025-11-12 11:00:08','admin','2025-11-12 11:00:07','',NULL),(3,3,'standard','阿法迪三 - 答题报告','<div class=\'report-container\'><h1>阿法迪三 - 答题报告</h1><p class=\'report-info\'>答题时间：2025-11-12 11:06:41</p><p class=\'report-info\'>总题目数：1</p><p class=\'report-info\'>总得分：0.00</p><h2>题目得分详情</h2><table class=\'score-table\' style=\'width: 100%; border-collapse: collapse; margin: 20px 0;\'><thead><tr style=\'background-color: #f5f7fa;\'><th style=\'padding: 10px; border: 1px solid #ddd;\'>题目序号</th><th style=\'padding: 10px; border: 1px solid #ddd;\'>题目内容</th><th style=\'padding: 10px; border: 1px solid #ddd;\'>得分</th><th style=\'padding: 10px; border: 1px solid #ddd;\'>状态</th></tr></thead><tbody><tr><td style=\'padding: 10px; border: 1px solid #ddd;\'>1</td><td style=\'padding: 10px; border: 1px solid #ddd;\'>阿斯蒂芬撒旦法的方式</td><td style=\'padding: 10px; border: 1px solid #ddd; text-align: center;\'>0.00</td><td style=\'padding: 10px; border: 1px solid #ddd;\'>已评分</td></tr></tbody></table></div>','本次答题共完成1道题目，总得分0.00分',NULL,NULL,'1','2025-11-12 11:06:47','admin','2025-11-12 11:06:46','',NULL);
/*!40000 ALTER TABLE `psy_questionnaire_report` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `psy_result_interpretation`
--

DROP TABLE IF EXISTS `psy_result_interpretation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `psy_result_interpretation` (
  `interpretation_id` bigint NOT NULL AUTO_INCREMENT COMMENT '解释ID',
  `scale_id` bigint DEFAULT NULL COMMENT '量表ID（为空表示通用解释）',
  `questionnaire_id` bigint DEFAULT NULL COMMENT '问卷ID（为空表示通用解释，与scale_id互斥）',
  `factor_id` bigint DEFAULT NULL COMMENT '因子ID（为空表示总体解释）',
  `score_range_min` decimal(10,2) DEFAULT NULL COMMENT '分数范围最小值',
  `score_range_max` decimal(10,2) DEFAULT NULL COMMENT '分数范围最大值',
  `level` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '等级（如：低、中、高）',
  `level_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '等级名称（如：轻度、中度、重度）',
  `interpretation_title` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '解释标题',
  `interpretation_content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '解释内容',
  `suggestions` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '建议或指导',
  `sort_order` int DEFAULT '0' COMMENT '排序顺序',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`interpretation_id`),
  KEY `idx_scale_id` (`scale_id`),
  KEY `idx_questionnaire_id` (`questionnaire_id`),
  KEY `idx_factor_id` (`factor_id`),
  KEY `idx_score_range` (`score_range_min`,`score_range_max`),
  CONSTRAINT `fk_interpretation_factor` FOREIGN KEY (`factor_id`) REFERENCES `psy_factor` (`factor_id`) ON DELETE CASCADE,
  CONSTRAINT `fk_interpretation_questionnaire` FOREIGN KEY (`questionnaire_id`) REFERENCES `psy_questionnaire` (`questionnaire_id`) ON DELETE CASCADE,
  CONSTRAINT `fk_interpretation_scale` FOREIGN KEY (`scale_id`) REFERENCES `psy_scale` (`scale_id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='结果解释标准表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `psy_result_interpretation`
--

LOCK TABLES `psy_result_interpretation` WRITE;
/*!40000 ALTER TABLE `psy_result_interpretation` DISABLE KEYS */;
INSERT INTO `psy_result_interpretation` VALUES (1,1,NULL,1,8.00,10.00,'high','适应良好','环境适应良好','您的环境适应能力较好，能够较快适应新的社会环境。','继续保持良好的适应状态，多参与集体活动，提升适应能力。',1,'admin','2025-11-10 14:39:08','',NULL),(2,1,NULL,1,4.00,7.00,'medium','适应一般','环境适应一般','您的环境适应能力一般，在适应新环境时可能需要较长时间。','建议主动参与环境适应训练，多与他人交流，逐步改善。',2,'admin','2025-11-10 14:39:08','',NULL),(3,1,NULL,1,2.00,3.00,'low','适应较差','环境适应较差','您的环境适应能力较差，可能需要更多的支持和帮助。','建议寻求专业心理帮助，参加环境适应辅导，改善适应状况。',3,'admin','2025-11-10 14:39:08','',NULL),(4,13,NULL,NULL,0.00,160.00,'低','正常','正常范围','您的总体得分在正常范围内，心理健康状况良好。','继续保持良好的心理状态，注意日常生活中的压力管理。',1,'admin','2025-11-10 14:40:27','',NULL),(5,13,NULL,NULL,161.00,250.00,'中','轻度','轻度症状','您可能存在轻度的心理症状，建议适当关注自己的心理健康。','建议通过放松训练、运动、社交等方式缓解压力，如症状持续可考虑咨询专业人士。',2,'admin','2025-11-10 14:40:27','',NULL),(6,13,NULL,NULL,251.00,360.00,'高','中重度','中重度症状','您的得分显示可能存在中重度的心理症状，建议寻求专业心理帮助。','强烈建议咨询心理医生或心理治疗师，进行专业的心理评估和治疗。',3,'admin','2025-11-10 14:40:27','',NULL);
/*!40000 ALTER TABLE `psy_result_interpretation` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `psy_scale`
--

DROP TABLE IF EXISTS `psy_scale`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `psy_scale` (
  `scale_id` bigint NOT NULL AUTO_INCREMENT COMMENT '量表ID',
  `scale_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '量表编码（唯一标识）',
  `scale_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '量表名称',
  `scale_en_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '量表英文名称',
  `scale_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '量表类型（如：人格量表、情绪量表、认知量表等）',
  `scale_version` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '1.0' COMMENT '量表版本',
  `scale_intro` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '量表简介',
  `scale_description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '量表详细描述',
  `item_count` int DEFAULT '0' COMMENT '题目数量',
  `estimated_time` int DEFAULT NULL COMMENT '预计完成时间（分钟）',
  `target_population` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '适用人群',
  `author` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '量表作者',
  `source` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '量表来源（权威机构或文献）',
  `reference` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '参考文献',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '状态（0正常 1停用）',
  `sort_order` int DEFAULT '0' COMMENT '排序顺序',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`scale_id`),
  UNIQUE KEY `uk_scale_code` (`scale_code`),
  KEY `idx_scale_type` (`scale_type`),
  KEY `idx_status` (`status`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='心理量表基本信息表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `psy_scale`
--

LOCK TABLES `psy_scale` WRITE;
/*!40000 ALTER TABLE `psy_scale` DISABLE KEYS */;
INSERT INTO `psy_scale` VALUES (1,'COPA_SAI','罪犯社会适应状况分测验','Criminal Social Adaptation Inventory','behavior','1.0','用于评估罪犯的社会适应状况，包括社会认知、社会行为和社会情感等方面。','该测验从多个维度评估罪犯的社会适应能力，包括：环境适应、人际适应、生活适应等。适用于对服刑人员进行心理健康筛查和风险评估。',40,20,'服刑人员','中国心理学会','司法部监狱管理局',NULL,'0',1,'admin','2025-11-10 14:39:08','',NULL,'COPA系列量表之一'),(3,'SAS','焦虑自评量表','Self-Rating Anxiety Scale','emotion','1.0','用于评定焦虑情绪的主观感受。','该量表包含20个题目，采用4级评分，用于评估个体的焦虑程度。标准分≥50分为焦虑，分数越高焦虑程度越重。',20,10,'一般人群','Zung','心理学量表专业机构',NULL,'0',11,'admin','2025-11-10 14:39:08','',NULL,'国际通用焦虑量表'),(4,'SDS','抑郁自评量表','Self-Rating Depression Scale','emotion','1.0','用于评定抑郁情绪的主观感受。','该量表包含20个题目，采用4级评分，用于评估个体的抑郁程度。标准分≥53分为抑郁，分数越高抑郁程度越重。',20,10,'一般人群','Zung','心理学量表专业机构',NULL,'0',12,'admin','2025-11-10 14:39:08','',NULL,'国际通用抑郁量表'),(5,'COPA_PI','罪犯个性分测验','Criminal Personality Inventory','personality','1.0',NULL,NULL,300,40,'服刑人员',NULL,NULL,NULL,'0',2,'admin','2025-11-10 14:39:08','',NULL,NULL),(6,'COPA_TCMI','罪犯犯罪心理结构变化状况分测验','Criminal Mind Structure Change','behavior','1.0',NULL,NULL,200,30,'服刑人员',NULL,NULL,NULL,'0',3,'admin','2025-11-10 14:39:08','',NULL,NULL),(7,'COPA_SCMI','罪犯心理结构状况分测验','Criminal Psychology Structure','personality','1.0',NULL,NULL,250,35,'服刑人员',NULL,NULL,NULL,'0',4,'admin','2025-11-10 14:39:08','',NULL,NULL),(8,'COPA_MPI','罪犯刑罚心理状况分测验','Criminal Penalty Psychology','emotion','1.0',NULL,NULL,180,25,'服刑人员',NULL,NULL,NULL,'0',5,'admin','2025-11-10 14:39:08','',NULL,NULL),(9,'VIOLENT_TENDENCY','罪犯暴力倾向量表','Violent Tendency Scale','behavior','1.0',NULL,NULL,50,15,'服刑人员',NULL,NULL,NULL,'0',6,'admin','2025-11-10 14:39:08','',NULL,NULL),(10,'SUICIDE_TENDENCY','罪犯自杀倾向量表','Suicide Tendency Scale','emotion','1.0',NULL,NULL,40,15,'服刑人员',NULL,NULL,NULL,'0',7,'admin','2025-11-10 14:39:08','',NULL,NULL),(11,'MMPI','明尼苏达多相个性测查表','Minnesota Multiphasic Personality Inventory','personality','1.0',NULL,NULL,566,60,'一般人群',NULL,NULL,NULL,'0',8,'admin','2025-11-10 14:39:08','',NULL,NULL),(12,'16PF','卡特尔十六种人格因素测验','16 Personality Factors','personality','1.0',NULL,NULL,187,45,'一般人群',NULL,NULL,NULL,'0',9,'admin','2025-11-10 14:39:08','',NULL,NULL),(13,'SCL_90','症状自评量表SCL-90','Symptom Checklist 90','symptom','1.0','SCL-90是一个包含90个项目的症状自评量表，用于评估个体的心理症状水平','SCL-90量表包含90个项目，涵盖9个症状因子：躯体化、强迫症状、人际关系敏感、抑郁、焦虑、敌对、恐怖、偏执、精神病性。采用5级评分（0-4分），是心理健康评估的重要工具。',0,30,'一般人群','Derogatis','心理卫生评定量表手册','Derogatis, L. R. (1977). SCL-90: Administration, scoring, and procedures manual. Clinical Psychometric Research.','0',0,'admin','2025-11-10 14:40:26','',NULL,NULL);
/*!40000 ALTER TABLE `psy_scale` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `psy_scale_item`
--

DROP TABLE IF EXISTS `psy_scale_item`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `psy_scale_item` (
  `item_id` bigint NOT NULL AUTO_INCREMENT COMMENT '题目ID',
  `scale_id` bigint NOT NULL COMMENT '量表ID',
  `item_number` int NOT NULL COMMENT '题目序号',
  `item_content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '题目内容',
  `item_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'single' COMMENT '题目类型（single单选 multiple多选 matrix矩阵）',
  `required` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '1' COMMENT '是否必填（0否 1是）',
  `reverse_score` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '是否反向计分（0否 1是）',
  `sort_order` int DEFAULT '0' COMMENT '排序顺序',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`item_id`),
  KEY `idx_scale_id` (`scale_id`),
  KEY `idx_item_number` (`scale_id`,`item_number`),
  CONSTRAINT `fk_item_scale` FOREIGN KEY (`scale_id`) REFERENCES `psy_scale` (`scale_id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=96 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='量表题目表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `psy_scale_item`
--

LOCK TABLES `psy_scale_item` WRITE;
/*!40000 ALTER TABLE `psy_scale_item` DISABLE KEYS */;
INSERT INTO `psy_scale_item` VALUES (1,1,1,'我能够很快适应新的环境','single','1','0',1,'admin','2025-11-10 14:39:08','',NULL,NULL),(2,1,2,'对于生活环境的改变，我感到很不适应','single','1','1',2,'admin','2025-11-10 14:39:08','',NULL,NULL),(3,1,3,'我能够很好地融入集体生活','single','1','0',3,'admin','2025-11-10 14:39:08','',NULL,NULL),(4,1,4,'我感觉自己很难与他人建立良好关系','single','1','1',4,'admin','2025-11-10 14:39:08','',NULL,NULL),(5,1,5,'我能够管理好自己的日常生活','single','1','0',5,'admin','2025-11-10 14:39:08','',NULL,NULL),(6,13,1,'头痛','single','1','0',1,'admin','2025-11-10 14:40:26','',NULL,NULL),(7,13,2,'神经过敏，心中不踏实','single','1','0',2,'admin','2025-11-10 14:40:26','',NULL,NULL),(8,13,3,'头脑中有不必要的想法或字句盘旋','single','1','0',3,'admin','2025-11-10 14:40:26','',NULL,NULL),(9,13,4,'头昏或昏倒','single','1','0',4,'admin','2025-11-10 14:40:26','',NULL,NULL),(10,13,5,'对异性的兴趣减退','single','1','0',5,'admin','2025-11-10 14:40:26','',NULL,NULL),(11,13,6,'对旁人责备求全','single','1','0',6,'admin','2025-11-10 14:40:26','',NULL,NULL),(12,13,7,'感到别人能控制您的思想','single','1','0',7,'admin','2025-11-10 14:40:26','',NULL,NULL),(13,13,8,'责怪别人制造麻烦','single','1','0',8,'admin','2025-11-10 14:40:26','',NULL,NULL),(14,13,9,'忘记性大','single','1','0',9,'admin','2025-11-10 14:40:26','',NULL,NULL),(15,13,10,'担心自己的衣饰整齐及仪态的端正','single','1','0',10,'admin','2025-11-10 14:40:26','',NULL,NULL),(16,13,11,'容易烦恼和激动','single','1','0',11,'admin','2025-11-10 14:40:26','',NULL,NULL),(17,13,12,'胸痛','single','1','0',12,'admin','2025-11-10 14:40:26','',NULL,NULL),(18,13,13,'害怕空旷的场所或街道','single','1','0',13,'admin','2025-11-10 14:40:26','',NULL,NULL),(19,13,14,'感到自己的精力下降，活动减慢','single','1','0',14,'admin','2025-11-10 14:40:26','',NULL,NULL),(20,13,15,'想结束自己的生命','single','1','0',15,'admin','2025-11-10 14:40:26','',NULL,NULL),(21,13,16,'听到旁人听不到的声音','single','1','0',16,'admin','2025-11-10 14:40:26','',NULL,NULL),(22,13,17,'发抖','single','1','0',17,'admin','2025-11-10 14:40:26','',NULL,NULL),(23,13,18,'感到大多数人都不可信任','single','1','0',18,'admin','2025-11-10 14:40:26','',NULL,NULL),(24,13,19,'胃口不好','single','1','0',19,'admin','2025-11-10 14:40:26','',NULL,NULL),(25,13,20,'容易哭泣','single','1','0',20,'admin','2025-11-10 14:40:26','',NULL,NULL),(26,13,21,'同异性相处时感到害羞不自在','single','1','0',21,'admin','2025-11-10 14:40:26','',NULL,NULL),(27,13,22,'感到受骗、中了圈套或有人想抓住您','single','1','0',22,'admin','2025-11-10 14:40:26','',NULL,NULL),(28,13,23,'无缘无故地突然感到害怕','single','1','0',23,'admin','2025-11-10 14:40:26','',NULL,NULL),(29,13,24,'自己不能控制地大发脾气','single','1','0',24,'admin','2025-11-10 14:40:26','',NULL,NULL),(30,13,25,'怕单独出门','single','1','0',25,'admin','2025-11-10 14:40:26','',NULL,NULL),(31,13,26,'经常责怪自己','single','1','0',26,'admin','2025-11-10 14:40:26','',NULL,NULL),(32,13,27,'腰痛','single','1','0',27,'admin','2025-11-10 14:40:26','',NULL,NULL),(33,13,28,'感到难以完成任务','single','1','0',28,'admin','2025-11-10 14:40:26','',NULL,NULL),(34,13,29,'感到孤独','single','1','0',29,'admin','2025-11-10 14:40:26','',NULL,NULL),(35,13,30,'感到苦闷','single','1','0',30,'admin','2025-11-10 14:40:26','',NULL,NULL),(36,13,31,'过分担忧','single','1','0',31,'admin','2025-11-10 14:40:26','',NULL,NULL),(37,13,32,'对事物不感兴趣','single','1','0',32,'admin','2025-11-10 14:40:26','',NULL,NULL),(38,13,33,'感到害怕','single','1','0',33,'admin','2025-11-10 14:40:26','',NULL,NULL),(39,13,34,'您的感情容易受到伤害','single','1','0',34,'admin','2025-11-10 14:40:27','',NULL,NULL),(40,13,35,'感到旁人能知道您的私下想法','single','1','0',35,'admin','2025-11-10 14:40:27','',NULL,NULL),(41,13,36,'感到别人不理解您、不同情您','single','1','0',36,'admin','2025-11-10 14:40:27','',NULL,NULL),(42,13,37,'感到人们对您不友好、不喜欢您','single','1','0',37,'admin','2025-11-10 14:40:27','',NULL,NULL),(43,13,38,'做事必须做得很慢以保证做得正确','single','1','0',38,'admin','2025-11-10 14:40:27','',NULL,NULL),(44,13,39,'心跳得很厉害','single','1','0',39,'admin','2025-11-10 14:40:27','',NULL,NULL),(45,13,40,'恶心或胃部不舒服','single','1','0',40,'admin','2025-11-10 14:40:27','',NULL,NULL),(46,13,41,'感到比不上他人','single','1','0',41,'admin','2025-11-10 14:40:27','',NULL,NULL),(47,13,42,'肌肉酸痛','single','1','0',42,'admin','2025-11-10 14:40:27','',NULL,NULL),(48,13,43,'感到有人在监视您、谈论您','single','1','0',43,'admin','2025-11-10 14:40:27','',NULL,NULL),(49,13,44,'难以入睡','single','1','0',44,'admin','2025-11-10 14:40:27','',NULL,NULL),(50,13,45,'做事必须反复检查','single','1','0',45,'admin','2025-11-10 14:40:27','',NULL,NULL),(51,13,46,'难以做出决定','single','1','0',46,'admin','2025-11-10 14:40:27','',NULL,NULL),(52,13,47,'怕乘电车、公共汽车、地铁或火车','single','1','0',47,'admin','2025-11-10 14:40:27','',NULL,NULL),(53,13,48,'呼吸有困难','single','1','0',48,'admin','2025-11-10 14:40:27','',NULL,NULL),(54,13,49,'一阵阵发冷或发热','single','1','0',49,'admin','2025-11-10 14:40:27','',NULL,NULL),(55,13,50,'因为感到害怕而避开某些东西、场合或活动','single','1','0',50,'admin','2025-11-10 14:40:27','',NULL,NULL),(56,13,51,'脑子变空了','single','1','0',51,'admin','2025-11-10 14:40:27','',NULL,NULL),(57,13,52,'身体发麻或刺痛','single','1','0',52,'admin','2025-11-10 14:40:27','',NULL,NULL),(58,13,53,'喉咙有梗塞感','single','1','0',53,'admin','2025-11-10 14:40:27','',NULL,NULL),(59,13,54,'感到前途没有希望','single','1','0',54,'admin','2025-11-10 14:40:27','',NULL,NULL),(60,13,55,'不能集中注意','single','1','0',55,'admin','2025-11-10 14:40:27','',NULL,NULL),(61,13,56,'感到身体的某一部分软弱无力','single','1','0',56,'admin','2025-11-10 14:40:27','',NULL,NULL),(62,13,57,'感到紧张或容易紧张','single','1','0',57,'admin','2025-11-10 14:40:27','',NULL,NULL),(63,13,58,'感到手或脚发重','single','1','0',58,'admin','2025-11-10 14:40:27','',NULL,NULL),(64,13,59,'想到死亡的事','single','1','0',59,'admin','2025-11-10 14:40:27','',NULL,NULL),(65,13,60,'吃得太多','single','1','0',60,'admin','2025-11-10 14:40:27','',NULL,NULL),(66,13,61,'当别人看着您或谈论您时感到不自在','single','1','0',61,'admin','2025-11-10 14:40:27','',NULL,NULL),(67,13,62,'有一些不属于您自己的想法','single','1','0',62,'admin','2025-11-10 14:40:27','',NULL,NULL),(68,13,63,'有想打人或伤害他人的冲动','single','1','0',63,'admin','2025-11-10 14:40:27','',NULL,NULL),(69,13,64,'醒得太早','single','1','0',64,'admin','2025-11-10 14:40:27','',NULL,NULL),(70,13,65,'必须反复洗手、点数或触摸某些东西','single','1','0',65,'admin','2025-11-10 14:40:27','',NULL,NULL),(71,13,66,'睡得不稳不深','single','1','0',66,'admin','2025-11-10 14:40:27','',NULL,NULL),(72,13,67,'有想摔坏或破坏东西的冲动','single','1','0',67,'admin','2025-11-10 14:40:27','',NULL,NULL),(73,13,68,'有一些别人没有的想法或念头','single','1','0',68,'admin','2025-11-10 14:40:27','',NULL,NULL),(74,13,69,'感到对别人神经过敏','single','1','0',69,'admin','2025-11-10 14:40:27','',NULL,NULL),(75,13,70,'在商店或电影院等人多的地方感到不自在','single','1','0',70,'admin','2025-11-10 14:40:27','',NULL,NULL),(76,13,71,'感到任何事情都很困难','single','1','0',71,'admin','2025-11-10 14:40:27','',NULL,NULL),(77,13,72,'一阵阵恐惧或惊恐','single','1','0',72,'admin','2025-11-10 14:40:27','',NULL,NULL),(78,13,73,'感到在公共场合吃东西很不舒服','single','1','0',73,'admin','2025-11-10 14:40:27','',NULL,NULL),(79,13,74,'经常与人争论','single','1','0',74,'admin','2025-11-10 14:40:27','',NULL,NULL),(80,13,75,'单独一人时神经很紧张','single','1','0',75,'admin','2025-11-10 14:40:27','',NULL,NULL),(81,13,76,'别人对您的成绩没有做出恰当的评价','single','1','0',76,'admin','2025-11-10 14:40:27','',NULL,NULL),(82,13,77,'即使和别人在一起也感到孤单','single','1','0',77,'admin','2025-11-10 14:40:27','',NULL,NULL),(83,13,78,'感到坐立不安心神不定','single','1','0',78,'admin','2025-11-10 14:40:27','',NULL,NULL),(84,13,79,'感到自己没有什么价值','single','1','0',79,'admin','2025-11-10 14:40:27','',NULL,NULL),(85,13,80,'感到熟悉的东西变成陌生或不像是真的','single','1','0',80,'admin','2025-11-10 14:40:27','',NULL,NULL),(86,13,81,'大叫或摔东西','single','1','0',81,'admin','2025-11-10 14:40:27','',NULL,NULL),(87,13,82,'害怕会在公共场合昏倒','single','1','0',82,'admin','2025-11-10 14:40:27','',NULL,NULL),(88,13,83,'感到别人想占您的便宜','single','1','0',83,'admin','2025-11-10 14:40:27','',NULL,NULL),(89,13,84,'为一些有关\"性\"的想法而很苦恼','single','1','0',84,'admin','2025-11-10 14:40:27','',NULL,NULL),(90,13,85,'您认为应该因为自己的过错而受到惩罚','single','1','0',85,'admin','2025-11-10 14:40:27','',NULL,NULL),(91,13,86,'感到要很快把事情做完','single','1','0',86,'admin','2025-11-10 14:40:27','',NULL,NULL),(92,13,87,'感到自己的身体有严重问题','single','1','0',87,'admin','2025-11-10 14:40:27','',NULL,NULL),(93,13,88,'从未感到和其他人很亲近','single','1','0',88,'admin','2025-11-10 14:40:27','',NULL,NULL),(94,13,89,'感到自己有罪','single','1','0',89,'admin','2025-11-10 14:40:27','',NULL,NULL),(95,13,90,'感到自己的脑子有毛病','single','1','0',90,'admin','2025-11-10 14:40:27','',NULL,NULL);
/*!40000 ALTER TABLE `psy_scale_item` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `psy_scale_option`
--

DROP TABLE IF EXISTS `psy_scale_option`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `psy_scale_option` (
  `option_id` bigint NOT NULL AUTO_INCREMENT COMMENT '选项ID',
  `item_id` bigint NOT NULL COMMENT '题目ID',
  `option_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '选项编码（如A、B、C或1、2、3）',
  `option_content` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '选项内容',
  `option_score` decimal(10,2) DEFAULT '0.00' COMMENT '选项分值',
  `sort_order` int DEFAULT '0' COMMENT '排序顺序',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`option_id`),
  KEY `idx_item_id` (`item_id`),
  CONSTRAINT `fk_option_item` FOREIGN KEY (`item_id`) REFERENCES `psy_scale_item` (`item_id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=471 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='题目选项表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `psy_scale_option`
--

LOCK TABLES `psy_scale_option` WRITE;
/*!40000 ALTER TABLE `psy_scale_option` DISABLE KEYS */;
INSERT INTO `psy_scale_option` VALUES (1,1,'A','完全符合',1.00,1,'admin','2025-11-10 14:39:08','',NULL),(2,1,'B','比较符合',2.00,2,'admin','2025-11-10 14:39:08','',NULL),(3,1,'C','不太符合',3.00,3,'admin','2025-11-10 14:39:08','',NULL),(4,1,'D','完全不符合',4.00,4,'admin','2025-11-10 14:39:08','',NULL),(5,2,'A','完全符合',1.00,1,'admin','2025-11-10 14:39:08','',NULL),(6,2,'B','比较符合',2.00,2,'admin','2025-11-10 14:39:08','',NULL),(7,2,'C','不太符合',3.00,3,'admin','2025-11-10 14:39:08','',NULL),(8,2,'D','完全不符合',4.00,4,'admin','2025-11-10 14:39:08','',NULL),(9,3,'A','完全符合',1.00,1,'admin','2025-11-10 14:39:08','',NULL),(10,3,'B','比较符合',2.00,2,'admin','2025-11-10 14:39:08','',NULL),(11,3,'C','不太符合',3.00,3,'admin','2025-11-10 14:39:08','',NULL),(12,3,'D','完全不符合',4.00,4,'admin','2025-11-10 14:39:08','',NULL),(13,4,'A','完全符合',1.00,1,'admin','2025-11-10 14:39:08','',NULL),(14,4,'B','比较符合',2.00,2,'admin','2025-11-10 14:39:08','',NULL),(15,4,'C','不太符合',3.00,3,'admin','2025-11-10 14:39:08','',NULL),(16,4,'D','完全不符合',4.00,4,'admin','2025-11-10 14:39:08','',NULL),(17,5,'A','完全符合',1.00,1,'admin','2025-11-10 14:39:08','',NULL),(18,5,'B','比较符合',2.00,2,'admin','2025-11-10 14:39:08','',NULL),(19,5,'C','不太符合',3.00,3,'admin','2025-11-10 14:39:08','',NULL),(20,5,'D','完全不符合',4.00,4,'admin','2025-11-10 14:39:08','',NULL),(21,6,'A','没有',0.00,1,'admin','2025-11-10 14:40:26','',NULL),(22,6,'B','很轻',1.00,2,'admin','2025-11-10 14:40:26','',NULL),(23,6,'C','中等',2.00,3,'admin','2025-11-10 14:40:26','',NULL),(24,6,'D','偏重',3.00,4,'admin','2025-11-10 14:40:26','',NULL),(25,6,'E','严重',4.00,5,'admin','2025-11-10 14:40:26','',NULL),(26,7,'A','没有',0.00,1,'admin','2025-11-10 14:40:26','',NULL),(27,7,'B','很轻',1.00,2,'admin','2025-11-10 14:40:26','',NULL),(28,7,'C','中等',2.00,3,'admin','2025-11-10 14:40:26','',NULL),(29,7,'D','偏重',3.00,4,'admin','2025-11-10 14:40:26','',NULL),(30,7,'E','严重',4.00,5,'admin','2025-11-10 14:40:26','',NULL),(31,8,'A','没有',0.00,1,'admin','2025-11-10 14:40:26','',NULL),(32,8,'B','很轻',1.00,2,'admin','2025-11-10 14:40:26','',NULL),(33,8,'C','中等',2.00,3,'admin','2025-11-10 14:40:26','',NULL),(34,8,'D','偏重',3.00,4,'admin','2025-11-10 14:40:26','',NULL),(35,8,'E','严重',4.00,5,'admin','2025-11-10 14:40:26','',NULL),(36,9,'A','没有',0.00,1,'admin','2025-11-10 14:40:26','',NULL),(37,9,'B','很轻',1.00,2,'admin','2025-11-10 14:40:26','',NULL),(38,9,'C','中等',2.00,3,'admin','2025-11-10 14:40:26','',NULL),(39,9,'D','偏重',3.00,4,'admin','2025-11-10 14:40:26','',NULL),(40,9,'E','严重',4.00,5,'admin','2025-11-10 14:40:26','',NULL),(41,10,'A','没有',0.00,1,'admin','2025-11-10 14:40:26','',NULL),(42,10,'B','很轻',1.00,2,'admin','2025-11-10 14:40:26','',NULL),(43,10,'C','中等',2.00,3,'admin','2025-11-10 14:40:26','',NULL),(44,10,'D','偏重',3.00,4,'admin','2025-11-10 14:40:26','',NULL),(45,10,'E','严重',4.00,5,'admin','2025-11-10 14:40:26','',NULL),(46,11,'A','没有',0.00,1,'admin','2025-11-10 14:40:26','',NULL),(47,11,'B','很轻',1.00,2,'admin','2025-11-10 14:40:26','',NULL),(48,11,'C','中等',2.00,3,'admin','2025-11-10 14:40:26','',NULL),(49,11,'D','偏重',3.00,4,'admin','2025-11-10 14:40:26','',NULL),(50,11,'E','严重',4.00,5,'admin','2025-11-10 14:40:26','',NULL),(51,12,'A','没有',0.00,1,'admin','2025-11-10 14:40:26','',NULL),(52,12,'B','很轻',1.00,2,'admin','2025-11-10 14:40:26','',NULL),(53,12,'C','中等',2.00,3,'admin','2025-11-10 14:40:26','',NULL),(54,12,'D','偏重',3.00,4,'admin','2025-11-10 14:40:26','',NULL),(55,12,'E','严重',4.00,5,'admin','2025-11-10 14:40:26','',NULL),(56,13,'A','没有',0.00,1,'admin','2025-11-10 14:40:26','',NULL),(57,13,'B','很轻',1.00,2,'admin','2025-11-10 14:40:26','',NULL),(58,13,'C','中等',2.00,3,'admin','2025-11-10 14:40:26','',NULL),(59,13,'D','偏重',3.00,4,'admin','2025-11-10 14:40:26','',NULL),(60,13,'E','严重',4.00,5,'admin','2025-11-10 14:40:26','',NULL),(61,14,'A','没有',0.00,1,'admin','2025-11-10 14:40:26','',NULL),(62,14,'B','很轻',1.00,2,'admin','2025-11-10 14:40:26','',NULL),(63,14,'C','中等',2.00,3,'admin','2025-11-10 14:40:26','',NULL),(64,14,'D','偏重',3.00,4,'admin','2025-11-10 14:40:26','',NULL),(65,14,'E','严重',4.00,5,'admin','2025-11-10 14:40:26','',NULL),(66,15,'A','没有',0.00,1,'admin','2025-11-10 14:40:26','',NULL),(67,15,'B','很轻',1.00,2,'admin','2025-11-10 14:40:26','',NULL),(68,15,'C','中等',2.00,3,'admin','2025-11-10 14:40:26','',NULL),(69,15,'D','偏重',3.00,4,'admin','2025-11-10 14:40:26','',NULL),(70,15,'E','严重',4.00,5,'admin','2025-11-10 14:40:26','',NULL),(71,16,'A','没有',0.00,1,'admin','2025-11-10 14:40:26','',NULL),(72,16,'B','很轻',1.00,2,'admin','2025-11-10 14:40:26','',NULL),(73,16,'C','中等',2.00,3,'admin','2025-11-10 14:40:26','',NULL),(74,16,'D','偏重',3.00,4,'admin','2025-11-10 14:40:26','',NULL),(75,16,'E','严重',4.00,5,'admin','2025-11-10 14:40:26','',NULL),(76,17,'A','没有',0.00,1,'admin','2025-11-10 14:40:26','',NULL),(77,17,'B','很轻',1.00,2,'admin','2025-11-10 14:40:26','',NULL),(78,17,'C','中等',2.00,3,'admin','2025-11-10 14:40:26','',NULL),(79,17,'D','偏重',3.00,4,'admin','2025-11-10 14:40:26','',NULL),(80,17,'E','严重',4.00,5,'admin','2025-11-10 14:40:26','',NULL),(81,18,'A','没有',0.00,1,'admin','2025-11-10 14:40:26','',NULL),(82,18,'B','很轻',1.00,2,'admin','2025-11-10 14:40:26','',NULL),(83,18,'C','中等',2.00,3,'admin','2025-11-10 14:40:26','',NULL),(84,18,'D','偏重',3.00,4,'admin','2025-11-10 14:40:26','',NULL),(85,18,'E','严重',4.00,5,'admin','2025-11-10 14:40:26','',NULL),(86,19,'A','没有',0.00,1,'admin','2025-11-10 14:40:26','',NULL),(87,19,'B','很轻',1.00,2,'admin','2025-11-10 14:40:26','',NULL),(88,19,'C','中等',2.00,3,'admin','2025-11-10 14:40:26','',NULL),(89,19,'D','偏重',3.00,4,'admin','2025-11-10 14:40:26','',NULL),(90,19,'E','严重',4.00,5,'admin','2025-11-10 14:40:26','',NULL),(91,20,'A','没有',0.00,1,'admin','2025-11-10 14:40:26','',NULL),(92,20,'B','很轻',1.00,2,'admin','2025-11-10 14:40:26','',NULL),(93,20,'C','中等',2.00,3,'admin','2025-11-10 14:40:26','',NULL),(94,20,'D','偏重',3.00,4,'admin','2025-11-10 14:40:26','',NULL),(95,20,'E','严重',4.00,5,'admin','2025-11-10 14:40:26','',NULL),(96,21,'A','没有',0.00,1,'admin','2025-11-10 14:40:26','',NULL),(97,21,'B','很轻',1.00,2,'admin','2025-11-10 14:40:26','',NULL),(98,21,'C','中等',2.00,3,'admin','2025-11-10 14:40:26','',NULL),(99,21,'D','偏重',3.00,4,'admin','2025-11-10 14:40:26','',NULL),(100,21,'E','严重',4.00,5,'admin','2025-11-10 14:40:26','',NULL),(101,22,'A','没有',0.00,1,'admin','2025-11-10 14:40:26','',NULL),(102,22,'B','很轻',1.00,2,'admin','2025-11-10 14:40:26','',NULL),(103,22,'C','中等',2.00,3,'admin','2025-11-10 14:40:26','',NULL),(104,22,'D','偏重',3.00,4,'admin','2025-11-10 14:40:26','',NULL),(105,22,'E','严重',4.00,5,'admin','2025-11-10 14:40:26','',NULL),(106,23,'A','没有',0.00,1,'admin','2025-11-10 14:40:26','',NULL),(107,23,'B','很轻',1.00,2,'admin','2025-11-10 14:40:26','',NULL),(108,23,'C','中等',2.00,3,'admin','2025-11-10 14:40:26','',NULL),(109,23,'D','偏重',3.00,4,'admin','2025-11-10 14:40:26','',NULL),(110,23,'E','严重',4.00,5,'admin','2025-11-10 14:40:26','',NULL),(111,24,'A','没有',0.00,1,'admin','2025-11-10 14:40:26','',NULL),(112,24,'B','很轻',1.00,2,'admin','2025-11-10 14:40:26','',NULL),(113,24,'C','中等',2.00,3,'admin','2025-11-10 14:40:26','',NULL),(114,24,'D','偏重',3.00,4,'admin','2025-11-10 14:40:26','',NULL),(115,24,'E','严重',4.00,5,'admin','2025-11-10 14:40:26','',NULL),(116,25,'A','没有',0.00,1,'admin','2025-11-10 14:40:26','',NULL),(117,25,'B','很轻',1.00,2,'admin','2025-11-10 14:40:26','',NULL),(118,25,'C','中等',2.00,3,'admin','2025-11-10 14:40:26','',NULL),(119,25,'D','偏重',3.00,4,'admin','2025-11-10 14:40:26','',NULL),(120,25,'E','严重',4.00,5,'admin','2025-11-10 14:40:26','',NULL),(121,26,'A','没有',0.00,1,'admin','2025-11-10 14:40:26','',NULL),(122,26,'B','很轻',1.00,2,'admin','2025-11-10 14:40:26','',NULL),(123,26,'C','中等',2.00,3,'admin','2025-11-10 14:40:26','',NULL),(124,26,'D','偏重',3.00,4,'admin','2025-11-10 14:40:26','',NULL),(125,26,'E','严重',4.00,5,'admin','2025-11-10 14:40:26','',NULL),(126,27,'A','没有',0.00,1,'admin','2025-11-10 14:40:26','',NULL),(127,27,'B','很轻',1.00,2,'admin','2025-11-10 14:40:26','',NULL),(128,27,'C','中等',2.00,3,'admin','2025-11-10 14:40:26','',NULL),(129,27,'D','偏重',3.00,4,'admin','2025-11-10 14:40:26','',NULL),(130,27,'E','严重',4.00,5,'admin','2025-11-10 14:40:26','',NULL),(131,28,'A','没有',0.00,1,'admin','2025-11-10 14:40:26','',NULL),(132,28,'B','很轻',1.00,2,'admin','2025-11-10 14:40:26','',NULL),(133,28,'C','中等',2.00,3,'admin','2025-11-10 14:40:26','',NULL),(134,28,'D','偏重',3.00,4,'admin','2025-11-10 14:40:26','',NULL),(135,28,'E','严重',4.00,5,'admin','2025-11-10 14:40:26','',NULL),(136,29,'A','没有',0.00,1,'admin','2025-11-10 14:40:26','',NULL),(137,29,'B','很轻',1.00,2,'admin','2025-11-10 14:40:26','',NULL),(138,29,'C','中等',2.00,3,'admin','2025-11-10 14:40:26','',NULL),(139,29,'D','偏重',3.00,4,'admin','2025-11-10 14:40:26','',NULL),(140,29,'E','严重',4.00,5,'admin','2025-11-10 14:40:26','',NULL),(141,30,'A','没有',0.00,1,'admin','2025-11-10 14:40:26','',NULL),(142,30,'B','很轻',1.00,2,'admin','2025-11-10 14:40:26','',NULL),(143,30,'C','中等',2.00,3,'admin','2025-11-10 14:40:26','',NULL),(144,30,'D','偏重',3.00,4,'admin','2025-11-10 14:40:26','',NULL),(145,30,'E','严重',4.00,5,'admin','2025-11-10 14:40:26','',NULL),(146,31,'A','没有',0.00,1,'admin','2025-11-10 14:40:26','',NULL),(147,31,'B','很轻',1.00,2,'admin','2025-11-10 14:40:26','',NULL),(148,31,'C','中等',2.00,3,'admin','2025-11-10 14:40:26','',NULL),(149,31,'D','偏重',3.00,4,'admin','2025-11-10 14:40:26','',NULL),(150,31,'E','严重',4.00,5,'admin','2025-11-10 14:40:26','',NULL),(151,32,'A','没有',0.00,1,'admin','2025-11-10 14:40:26','',NULL),(152,32,'B','很轻',1.00,2,'admin','2025-11-10 14:40:26','',NULL),(153,32,'C','中等',2.00,3,'admin','2025-11-10 14:40:26','',NULL),(154,32,'D','偏重',3.00,4,'admin','2025-11-10 14:40:26','',NULL),(155,32,'E','严重',4.00,5,'admin','2025-11-10 14:40:26','',NULL),(156,33,'A','没有',0.00,1,'admin','2025-11-10 14:40:26','',NULL),(157,33,'B','很轻',1.00,2,'admin','2025-11-10 14:40:26','',NULL),(158,33,'C','中等',2.00,3,'admin','2025-11-10 14:40:26','',NULL),(159,33,'D','偏重',3.00,4,'admin','2025-11-10 14:40:26','',NULL),(160,33,'E','严重',4.00,5,'admin','2025-11-10 14:40:26','',NULL),(161,34,'A','没有',0.00,1,'admin','2025-11-10 14:40:26','',NULL),(162,34,'B','很轻',1.00,2,'admin','2025-11-10 14:40:26','',NULL),(163,34,'C','中等',2.00,3,'admin','2025-11-10 14:40:26','',NULL),(164,34,'D','偏重',3.00,4,'admin','2025-11-10 14:40:26','',NULL),(165,34,'E','严重',4.00,5,'admin','2025-11-10 14:40:26','',NULL),(166,35,'A','没有',0.00,1,'admin','2025-11-10 14:40:26','',NULL),(167,35,'B','很轻',1.00,2,'admin','2025-11-10 14:40:26','',NULL),(168,35,'C','中等',2.00,3,'admin','2025-11-10 14:40:26','',NULL),(169,35,'D','偏重',3.00,4,'admin','2025-11-10 14:40:26','',NULL),(170,35,'E','严重',4.00,5,'admin','2025-11-10 14:40:26','',NULL),(171,36,'A','没有',0.00,1,'admin','2025-11-10 14:40:26','',NULL),(172,36,'B','很轻',1.00,2,'admin','2025-11-10 14:40:26','',NULL),(173,36,'C','中等',2.00,3,'admin','2025-11-10 14:40:26','',NULL),(174,36,'D','偏重',3.00,4,'admin','2025-11-10 14:40:26','',NULL),(175,36,'E','严重',4.00,5,'admin','2025-11-10 14:40:26','',NULL),(176,37,'A','没有',0.00,1,'admin','2025-11-10 14:40:26','',NULL),(177,37,'B','很轻',1.00,2,'admin','2025-11-10 14:40:26','',NULL),(178,37,'C','中等',2.00,3,'admin','2025-11-10 14:40:26','',NULL),(179,37,'D','偏重',3.00,4,'admin','2025-11-10 14:40:26','',NULL),(180,37,'E','严重',4.00,5,'admin','2025-11-10 14:40:26','',NULL),(181,38,'A','没有',0.00,1,'admin','2025-11-10 14:40:26','',NULL),(182,38,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(183,38,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(184,38,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(185,38,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(186,39,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(187,39,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(188,39,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(189,39,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(190,39,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(191,40,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(192,40,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(193,40,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(194,40,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(195,40,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(196,41,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(197,41,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(198,41,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(199,41,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(200,41,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(201,42,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(202,42,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(203,42,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(204,42,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(205,42,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(206,43,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(207,43,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(208,43,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(209,43,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(210,43,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(211,44,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(212,44,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(213,44,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(214,44,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(215,44,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(216,45,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(217,45,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(218,45,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(219,45,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(220,45,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(221,46,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(222,46,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(223,46,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(224,46,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(225,46,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(226,47,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(227,47,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(228,47,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(229,47,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(230,47,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(231,48,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(232,48,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(233,48,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(234,48,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(235,48,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(236,49,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(237,49,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(238,49,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(239,49,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(240,49,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(241,50,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(242,50,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(243,50,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(244,50,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(245,50,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(246,51,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(247,51,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(248,51,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(249,51,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(250,51,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(251,52,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(252,52,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(253,52,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(254,52,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(255,52,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(256,53,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(257,53,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(258,53,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(259,53,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(260,53,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(261,54,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(262,54,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(263,54,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(264,54,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(265,54,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(266,55,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(267,55,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(268,55,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(269,55,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(270,55,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(271,56,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(272,56,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(273,56,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(274,56,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(275,56,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(276,57,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(277,57,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(278,57,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(279,57,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(280,57,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(281,58,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(282,58,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(283,58,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(284,58,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(285,58,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(286,59,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(287,59,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(288,59,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(289,59,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(290,59,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(291,60,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(292,60,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(293,60,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(294,60,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(295,60,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(296,61,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(297,61,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(298,61,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(299,61,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(300,61,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(301,62,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(302,62,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(303,62,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(304,62,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(305,62,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(306,63,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(307,63,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(308,63,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(309,63,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(310,63,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(311,64,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(312,64,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(313,64,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(314,64,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(315,64,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(316,65,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(317,65,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(318,65,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(319,65,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(320,65,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(321,66,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(322,66,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(323,66,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(324,66,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(325,66,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(326,67,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(327,67,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(328,67,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(329,67,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(330,67,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(331,68,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(332,68,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(333,68,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(334,68,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(335,68,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(336,69,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(337,69,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(338,69,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(339,69,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(340,69,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(341,70,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(342,70,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(343,70,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(344,70,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(345,70,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(346,71,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(347,71,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(348,71,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(349,71,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(350,71,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(351,72,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(352,72,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(353,72,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(354,72,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(355,72,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(356,73,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(357,73,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(358,73,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(359,73,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(360,73,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(361,74,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(362,74,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(363,74,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(364,74,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(365,74,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(366,75,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(367,75,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(368,75,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(369,75,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(370,75,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(371,76,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(372,76,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(373,76,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(374,76,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(375,76,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(376,77,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(377,77,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(378,77,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(379,77,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(380,77,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(381,78,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(382,78,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(383,78,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(384,78,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(385,78,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(386,79,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(387,79,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(388,79,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(389,79,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(390,79,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(391,80,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(392,80,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(393,80,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(394,80,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(395,80,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(396,81,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(397,81,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(398,81,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(399,81,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(400,81,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(401,82,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(402,82,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(403,82,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(404,82,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(405,82,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(406,83,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(407,83,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(408,83,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(409,83,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(410,83,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(411,84,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(412,84,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(413,84,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(414,84,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(415,84,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(416,85,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(417,85,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(418,85,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(419,85,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(420,85,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(421,86,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(422,86,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(423,86,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(424,86,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(425,86,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(426,87,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(427,87,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(428,87,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(429,87,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(430,87,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(431,88,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(432,88,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(433,88,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(434,88,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(435,88,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(436,89,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(437,89,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(438,89,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(439,89,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(440,89,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(441,90,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(442,90,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(443,90,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(444,90,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(445,90,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(446,91,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(447,91,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(448,91,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(449,91,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(450,91,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(451,92,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(452,92,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(453,92,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(454,92,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(455,92,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(456,93,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(457,93,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(458,93,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(459,93,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(460,93,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(461,94,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(462,94,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(463,94,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(464,94,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(465,94,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL),(466,95,'A','没有',0.00,1,'admin','2025-11-10 14:40:27','',NULL),(467,95,'B','很轻',1.00,2,'admin','2025-11-10 14:40:27','',NULL),(468,95,'C','中等',2.00,3,'admin','2025-11-10 14:40:27','',NULL),(469,95,'D','偏重',3.00,4,'admin','2025-11-10 14:40:27','',NULL),(470,95,'E','严重',4.00,5,'admin','2025-11-10 14:40:27','',NULL);
/*!40000 ALTER TABLE `psy_scale_option` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `psy_scale_permission`
--

DROP TABLE IF EXISTS `psy_scale_permission`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `psy_scale_permission` (
  `permission_id` bigint NOT NULL AUTO_INCREMENT COMMENT '权限ID',
  `scale_id` bigint NOT NULL COMMENT '量表ID',
  `dept_id` bigint DEFAULT NULL COMMENT '部门ID（关联sys_dept，为空表示所有部门）',
  `role_id` bigint DEFAULT NULL COMMENT '角色ID（关联sys_role，为空表示所有角色）',
  `user_id` bigint DEFAULT NULL COMMENT '用户ID（关联sys_user，为空表示所有用户）',
  `class_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '班级名称（特殊字段，用于罪犯管理）',
  `start_time` datetime DEFAULT NULL COMMENT '开始时间',
  `end_time` datetime DEFAULT NULL COMMENT '结束时间',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '状态（0有效 1无效）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`permission_id`),
  KEY `idx_scale_id` (`scale_id`),
  KEY `idx_dept_id` (`dept_id`),
  KEY `idx_role_id` (`role_id`),
  KEY `idx_user_id` (`user_id`),
  KEY `idx_status` (`status`),
  CONSTRAINT `fk_permission_dept` FOREIGN KEY (`dept_id`) REFERENCES `sys_dept` (`dept_id`) ON DELETE CASCADE,
  CONSTRAINT `fk_permission_role` FOREIGN KEY (`role_id`) REFERENCES `sys_role` (`role_id`) ON DELETE CASCADE,
  CONSTRAINT `fk_permission_scale` FOREIGN KEY (`scale_id`) REFERENCES `psy_scale` (`scale_id`) ON DELETE CASCADE,
  CONSTRAINT `fk_permission_user` FOREIGN KEY (`user_id`) REFERENCES `sys_user` (`user_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='量表权限表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `psy_scale_permission`
--

LOCK TABLES `psy_scale_permission` WRITE;
/*!40000 ALTER TABLE `psy_scale_permission` DISABLE KEYS */;
/*!40000 ALTER TABLE `psy_scale_permission` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `psy_scale_template`
--

DROP TABLE IF EXISTS `psy_scale_template`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `psy_scale_template` (
  `template_id` bigint NOT NULL AUTO_INCREMENT COMMENT '模板ID',
  `template_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '模板名称',
  `template_description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '模板描述',
  `scale_config` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '量表配置（JSON格式，包含题目、选项、因子等完整配置）',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '状态（0正常 1停用）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`template_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='测评模板表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `psy_scale_template`
--

LOCK TABLES `psy_scale_template` WRITE;
/*!40000 ALTER TABLE `psy_scale_template` DISABLE KEYS */;
/*!40000 ALTER TABLE `psy_scale_template` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `psy_user_profile`
--

DROP TABLE IF EXISTS `psy_user_profile`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `psy_user_profile` (
  `profile_id` bigint NOT NULL AUTO_INCREMENT COMMENT '档案ID',
  `user_id` bigint NOT NULL COMMENT '用户ID（关联sys_user）',
  `profile_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'standard' COMMENT '档案类型（如：standard标准 child儿童 adult成人 senior老年）',
  `profile_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '档案数据（JSON格式，支持自定义字段）',
  `avatar` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '头像',
  `id_card` varchar(18) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '身份证号',
  `birthday` date DEFAULT NULL COMMENT '生日',
  `education` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '学历',
  `occupation` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '职业',
  `address` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '地址',
  `emergency_contact` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '紧急联系人',
  `emergency_phone` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '紧急联系电话',
  `medical_history` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '病史',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`profile_id`),
  UNIQUE KEY `uk_user_id` (`user_id`),
  KEY `idx_profile_type` (`profile_type`),
  CONSTRAINT `fk_profile_user` FOREIGN KEY (`user_id`) REFERENCES `sys_user` (`user_id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='用户档案扩展表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `psy_user_profile`
--

LOCK TABLES `psy_user_profile` WRITE;
/*!40000 ALTER TABLE `psy_user_profile` DISABLE KEYS */;
INSERT INTO `psy_user_profile` VALUES (1,1,'standard',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'admin','2025-11-10 14:40:59','',NULL,NULL);
/*!40000 ALTER TABLE `psy_user_profile` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `psy_voice_config`
--

DROP TABLE IF EXISTS `psy_voice_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `psy_voice_config` (
  `config_id` bigint NOT NULL AUTO_INCREMENT COMMENT '配置ID',
  `item_id` bigint DEFAULT NULL COMMENT '题目ID（为空表示全局配置）',
  `voice_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'tts' COMMENT '语音类型（tts合成 human真人录音）',
  `voice_url` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '语音文件URL',
  `voice_provider` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'TTS提供商（aliyun tencent baidu local）',
  `voice_speed` decimal(3,2) DEFAULT '1.00' COMMENT '语速（0.5-2.0）',
  `voice_pitch` decimal(3,2) DEFAULT '1.00' COMMENT '音调（0.5-2.0）',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '状态（0正常 1停用）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`config_id`),
  KEY `idx_item_id` (`item_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='语音读题配置表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `psy_voice_config`
--

LOCK TABLES `psy_voice_config` WRITE;
/*!40000 ALTER TABLE `psy_voice_config` DISABLE KEYS */;
/*!40000 ALTER TABLE `psy_voice_config` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `psy_warning`
--

DROP TABLE IF EXISTS `psy_warning`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `psy_warning` (
  `warning_id` bigint NOT NULL AUTO_INCREMENT COMMENT '预警ID',
  `assessment_id` bigint NOT NULL COMMENT '测评ID',
  `user_id` bigint DEFAULT NULL COMMENT '用户ID',
  `scale_id` bigint NOT NULL COMMENT '量表ID',
  `factor_id` bigint DEFAULT NULL COMMENT '因子ID（为空表示整体预警）',
  `warning_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'score' COMMENT '预警类型（score分数 risk风险）',
  `warning_level` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'medium' COMMENT '预警级别（low低 medium中 high高 critical严重）',
  `warning_score` decimal(10,2) DEFAULT NULL COMMENT '预警分值',
  `warning_reason` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '预警原因',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '状态（0待处理 1处理中 2已解除 3已归档）',
  `handler_id` bigint DEFAULT NULL COMMENT '处理人ID',
  `handle_time` datetime DEFAULT NULL COMMENT '处理时间',
  `handle_result` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '处理结果',
  `relief_time` datetime DEFAULT NULL COMMENT '解除时间',
  `relief_reason` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '解除原因',
  `notification_sent` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '是否已通知（0否 1是）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`warning_id`),
  KEY `idx_assessment_id` (`assessment_id`),
  KEY `idx_user_id` (`user_id`),
  KEY `idx_status` (`status`),
  KEY `idx_warning_level` (`warning_level`),
  KEY `fk_warning_scale` (`scale_id`),
  CONSTRAINT `fk_warning_assessment` FOREIGN KEY (`assessment_id`) REFERENCES `psy_assessment` (`assessment_id`),
  CONSTRAINT `fk_warning_scale` FOREIGN KEY (`scale_id`) REFERENCES `psy_scale` (`scale_id`),
  CONSTRAINT `fk_warning_user` FOREIGN KEY (`user_id`) REFERENCES `sys_user` (`user_id`) ON DELETE SET NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='危机预警表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `psy_warning`
--

LOCK TABLES `psy_warning` WRITE;
/*!40000 ALTER TABLE `psy_warning` DISABLE KEYS */;
/*!40000 ALTER TABLE `psy_warning` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `psy_warning_rule`
--

DROP TABLE IF EXISTS `psy_warning_rule`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `psy_warning_rule` (
  `rule_id` bigint NOT NULL AUTO_INCREMENT COMMENT '规则ID',
  `scale_id` bigint NOT NULL COMMENT '量表ID',
  `factor_id` bigint DEFAULT NULL COMMENT '因子ID（为空表示整体规则）',
  `rule_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '规则名称',
  `warning_level` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'medium' COMMENT '预警级别',
  `score_min` decimal(10,2) DEFAULT NULL COMMENT '分值最小值',
  `score_max` decimal(10,2) DEFAULT NULL COMMENT '分值最大值',
  `percentile_min` decimal(5,2) DEFAULT NULL COMMENT '百分位最小值',
  `percentile_max` decimal(5,2) DEFAULT NULL COMMENT '百分位最大值',
  `auto_relief` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '是否自动解除（0否 1是）',
  `relief_condition` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '解除条件（JSON格式）',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '状态（0启用 1禁用）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`rule_id`),
  KEY `idx_scale_id` (`scale_id`),
  KEY `idx_factor_id` (`factor_id`),
  KEY `idx_status` (`status`),
  CONSTRAINT `fk_warning_rule_factor` FOREIGN KEY (`factor_id`) REFERENCES `psy_factor` (`factor_id`) ON DELETE CASCADE,
  CONSTRAINT `fk_warning_rule_scale` FOREIGN KEY (`scale_id`) REFERENCES `psy_scale` (`scale_id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='预警规则配置表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `psy_warning_rule`
--

LOCK TABLES `psy_warning_rule` WRITE;
/*!40000 ALTER TABLE `psy_warning_rule` DISABLE KEYS */;
INSERT INTO `psy_warning_rule` VALUES (1,13,NULL,'重度症状预警','高',250.00,360.00,NULL,NULL,'0',NULL,'0','admin','2025-11-10 14:40:27','',NULL,NULL),(2,13,NULL,'紧急症状预警','紧急',300.00,360.00,NULL,NULL,'0',NULL,'0','admin','2025-11-10 14:40:27','',NULL,NULL);
/*!40000 ALTER TABLE `psy_warning_rule` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `psy_website_category`
--

DROP TABLE IF EXISTS `psy_website_category`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `psy_website_category` (
  `category_id` bigint NOT NULL AUTO_INCREMENT COMMENT '栏目ID',
  `category_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '栏目名称',
  `category_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '栏目编码',
  `parent_id` bigint DEFAULT '0' COMMENT '父栏目ID（0表示顶级栏目）',
  `category_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'article' COMMENT '栏目类型（article文章 notice公告 banner横幅）',
  `icon` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '栏目图标',
  `description` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '栏目描述',
  `sort_order` int DEFAULT '0' COMMENT '排序顺序',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '状态（0正常 1停用）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`category_id`),
  KEY `idx_parent_id` (`parent_id`),
  KEY `idx_category_type` (`category_type`),
  KEY `idx_status` (`status`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='心理网站栏目表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `psy_website_category`
--

LOCK TABLES `psy_website_category` WRITE;
/*!40000 ALTER TABLE `psy_website_category` DISABLE KEYS */;
/*!40000 ALTER TABLE `psy_website_category` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `psy_website_comment`
--

DROP TABLE IF EXISTS `psy_website_comment`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `psy_website_comment` (
  `comment_id` bigint NOT NULL AUTO_INCREMENT COMMENT '评论ID',
  `content_id` bigint NOT NULL COMMENT '内容ID（关联psy_website_content）',
  `parent_id` bigint DEFAULT '0' COMMENT '父评论ID（0表示顶级评论）',
  `user_id` bigint DEFAULT NULL COMMENT '评论用户ID（关联sys_user，可为空表示匿名）',
  `nickname` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '昵称（匿名评论时使用）',
  `email` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '邮箱（匿名评论时使用）',
  `comment_content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '评论内容',
  `ip_address` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT 'IP地址',
  `like_count` int DEFAULT '0' COMMENT '点赞数',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '状态（0待审核 1已发布 2已删除）',
  `create_time` datetime DEFAULT NULL COMMENT '评论时间',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`comment_id`),
  KEY `idx_content_id` (`content_id`),
  KEY `idx_user_id` (`user_id`),
  KEY `idx_parent_id` (`parent_id`),
  KEY `idx_status` (`status`),
  KEY `idx_create_time` (`create_time`),
  CONSTRAINT `fk_comment_content` FOREIGN KEY (`content_id`) REFERENCES `psy_website_content` (`content_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='心理网站评论表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `psy_website_comment`
--

LOCK TABLES `psy_website_comment` WRITE;
/*!40000 ALTER TABLE `psy_website_comment` DISABLE KEYS */;
/*!40000 ALTER TABLE `psy_website_comment` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `psy_website_config`
--

DROP TABLE IF EXISTS `psy_website_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `psy_website_config` (
  `config_id` bigint NOT NULL AUTO_INCREMENT COMMENT '配置ID',
  `config_key` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '配置键',
  `config_value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '配置值',
  `config_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'text' COMMENT '配置类型（text文本 number数字 jsonJSON image图片）',
  `config_description` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '配置描述',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`config_id`),
  UNIQUE KEY `uk_config_key` (`config_key`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='心理网站配置表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `psy_website_config`
--

LOCK TABLES `psy_website_config` WRITE;
/*!40000 ALTER TABLE `psy_website_config` DISABLE KEYS */;
/*!40000 ALTER TABLE `psy_website_config` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `psy_website_content`
--

DROP TABLE IF EXISTS `psy_website_content`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `psy_website_content` (
  `content_id` bigint NOT NULL AUTO_INCREMENT COMMENT '内容ID',
  `content_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '内容类型（article文章 notice公告 banner横幅 link链接）',
  `category_id` bigint DEFAULT NULL COMMENT '分类ID',
  `title` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '标题',
  `subtitle` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '副标题',
  `summary` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '摘要',
  `content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '正文内容',
  `cover_image` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '封面图片',
  `author` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '作者',
  `source` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '来源',
  `click_count` int DEFAULT '0' COMMENT '点击量',
  `like_count` int DEFAULT '0' COMMENT '点赞数',
  `is_top` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '是否置顶（0否 1是）',
  `is_recommend` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '是否推荐（0否 1是）',
  `publish_time` datetime DEFAULT NULL COMMENT '发布时间',
  `sort_order` int DEFAULT '0' COMMENT '排序顺序',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '状态（0草稿 1已发布 2已下架）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`content_id`),
  KEY `idx_content_type` (`content_type`),
  KEY `idx_status` (`status`),
  KEY `idx_publish_time` (`publish_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='心理网站内容表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `psy_website_content`
--

LOCK TABLES `psy_website_content` WRITE;
/*!40000 ALTER TABLE `psy_website_content` DISABLE KEYS */;
/*!40000 ALTER TABLE `psy_website_content` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `qrtz_blob_triggers`
--

DROP TABLE IF EXISTS `qrtz_blob_triggers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `qrtz_blob_triggers` (
  `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称',
  `trigger_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_name的外键',
  `trigger_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
  `blob_data` blob COMMENT '存放持久化Trigger对象',
  PRIMARY KEY (`sched_name`,`trigger_name`,`trigger_group`),
  CONSTRAINT `qrtz_blob_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='Blob类型的触发器表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `qrtz_blob_triggers`
--

LOCK TABLES `qrtz_blob_triggers` WRITE;
/*!40000 ALTER TABLE `qrtz_blob_triggers` DISABLE KEYS */;
/*!40000 ALTER TABLE `qrtz_blob_triggers` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `qrtz_calendars`
--

DROP TABLE IF EXISTS `qrtz_calendars`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `qrtz_calendars` (
  `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称',
  `calendar_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '日历名称',
  `calendar` blob NOT NULL COMMENT '存放持久化calendar对象',
  PRIMARY KEY (`sched_name`,`calendar_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='日历信息表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `qrtz_calendars`
--

LOCK TABLES `qrtz_calendars` WRITE;
/*!40000 ALTER TABLE `qrtz_calendars` DISABLE KEYS */;
/*!40000 ALTER TABLE `qrtz_calendars` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `qrtz_cron_triggers`
--

DROP TABLE IF EXISTS `qrtz_cron_triggers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `qrtz_cron_triggers` (
  `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称',
  `trigger_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_name的外键',
  `trigger_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
  `cron_expression` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'cron表达式',
  `time_zone_id` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '时区',
  PRIMARY KEY (`sched_name`,`trigger_name`,`trigger_group`),
  CONSTRAINT `qrtz_cron_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='Cron类型的触发器表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `qrtz_cron_triggers`
--

LOCK TABLES `qrtz_cron_triggers` WRITE;
/*!40000 ALTER TABLE `qrtz_cron_triggers` DISABLE KEYS */;
/*!40000 ALTER TABLE `qrtz_cron_triggers` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `qrtz_fired_triggers`
--

DROP TABLE IF EXISTS `qrtz_fired_triggers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `qrtz_fired_triggers` (
  `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称',
  `entry_id` varchar(95) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度器实例id',
  `trigger_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_name的外键',
  `trigger_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
  `instance_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度器实例名',
  `fired_time` bigint NOT NULL COMMENT '触发的时间',
  `sched_time` bigint NOT NULL COMMENT '定时器制定的时间',
  `priority` int NOT NULL COMMENT '优先级',
  `state` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '状态',
  `job_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '任务名称',
  `job_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '任务组名',
  `is_nonconcurrent` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '是否并发',
  `requests_recovery` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '是否接受恢复执行',
  PRIMARY KEY (`sched_name`,`entry_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='已触发的触发器表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `qrtz_fired_triggers`
--

LOCK TABLES `qrtz_fired_triggers` WRITE;
/*!40000 ALTER TABLE `qrtz_fired_triggers` DISABLE KEYS */;
/*!40000 ALTER TABLE `qrtz_fired_triggers` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `qrtz_job_details`
--

DROP TABLE IF EXISTS `qrtz_job_details`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `qrtz_job_details` (
  `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称',
  `job_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务名称',
  `job_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务组名',
  `description` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '相关介绍',
  `job_class_name` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '执行任务类名称',
  `is_durable` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否持久化',
  `is_nonconcurrent` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否并发',
  `is_update_data` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否更新数据',
  `requests_recovery` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否接受恢复执行',
  `job_data` blob COMMENT '存放持久化job对象',
  PRIMARY KEY (`sched_name`,`job_name`,`job_group`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='任务详细信息表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `qrtz_job_details`
--

LOCK TABLES `qrtz_job_details` WRITE;
/*!40000 ALTER TABLE `qrtz_job_details` DISABLE KEYS */;
/*!40000 ALTER TABLE `qrtz_job_details` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `qrtz_locks`
--

DROP TABLE IF EXISTS `qrtz_locks`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `qrtz_locks` (
  `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称',
  `lock_name` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '悲观锁名称',
  PRIMARY KEY (`sched_name`,`lock_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='存储的悲观锁信息表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `qrtz_locks`
--

LOCK TABLES `qrtz_locks` WRITE;
/*!40000 ALTER TABLE `qrtz_locks` DISABLE KEYS */;
/*!40000 ALTER TABLE `qrtz_locks` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `qrtz_paused_trigger_grps`
--

DROP TABLE IF EXISTS `qrtz_paused_trigger_grps`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `qrtz_paused_trigger_grps` (
  `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称',
  `trigger_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
  PRIMARY KEY (`sched_name`,`trigger_group`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='暂停的触发器表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `qrtz_paused_trigger_grps`
--

LOCK TABLES `qrtz_paused_trigger_grps` WRITE;
/*!40000 ALTER TABLE `qrtz_paused_trigger_grps` DISABLE KEYS */;
/*!40000 ALTER TABLE `qrtz_paused_trigger_grps` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `qrtz_scheduler_state`
--

DROP TABLE IF EXISTS `qrtz_scheduler_state`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `qrtz_scheduler_state` (
  `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称',
  `instance_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '实例名称',
  `last_checkin_time` bigint NOT NULL COMMENT '上次检查时间',
  `checkin_interval` bigint NOT NULL COMMENT '检查间隔时间',
  PRIMARY KEY (`sched_name`,`instance_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='调度器状态表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `qrtz_scheduler_state`
--

LOCK TABLES `qrtz_scheduler_state` WRITE;
/*!40000 ALTER TABLE `qrtz_scheduler_state` DISABLE KEYS */;
/*!40000 ALTER TABLE `qrtz_scheduler_state` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `qrtz_simple_triggers`
--

DROP TABLE IF EXISTS `qrtz_simple_triggers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `qrtz_simple_triggers` (
  `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称',
  `trigger_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_name的外键',
  `trigger_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
  `repeat_count` bigint NOT NULL COMMENT '重复的次数统计',
  `repeat_interval` bigint NOT NULL COMMENT '重复的间隔时间',
  `times_triggered` bigint NOT NULL COMMENT '已经触发的次数',
  PRIMARY KEY (`sched_name`,`trigger_name`,`trigger_group`),
  CONSTRAINT `qrtz_simple_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='简单触发器的信息表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `qrtz_simple_triggers`
--

LOCK TABLES `qrtz_simple_triggers` WRITE;
/*!40000 ALTER TABLE `qrtz_simple_triggers` DISABLE KEYS */;
/*!40000 ALTER TABLE `qrtz_simple_triggers` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `qrtz_simprop_triggers`
--

DROP TABLE IF EXISTS `qrtz_simprop_triggers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `qrtz_simprop_triggers` (
  `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称',
  `trigger_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_name的外键',
  `trigger_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
  `str_prop_1` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'String类型的trigger的第一个参数',
  `str_prop_2` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'String类型的trigger的第二个参数',
  `str_prop_3` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'String类型的trigger的第三个参数',
  `int_prop_1` int DEFAULT NULL COMMENT 'int类型的trigger的第一个参数',
  `int_prop_2` int DEFAULT NULL COMMENT 'int类型的trigger的第二个参数',
  `long_prop_1` bigint DEFAULT NULL COMMENT 'long类型的trigger的第一个参数',
  `long_prop_2` bigint DEFAULT NULL COMMENT 'long类型的trigger的第二个参数',
  `dec_prop_1` decimal(13,4) DEFAULT NULL COMMENT 'decimal类型的trigger的第一个参数',
  `dec_prop_2` decimal(13,4) DEFAULT NULL COMMENT 'decimal类型的trigger的第二个参数',
  `bool_prop_1` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Boolean类型的trigger的第一个参数',
  `bool_prop_2` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Boolean类型的trigger的第二个参数',
  PRIMARY KEY (`sched_name`,`trigger_name`,`trigger_group`),
  CONSTRAINT `qrtz_simprop_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='同步机制的行锁表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `qrtz_simprop_triggers`
--

LOCK TABLES `qrtz_simprop_triggers` WRITE;
/*!40000 ALTER TABLE `qrtz_simprop_triggers` DISABLE KEYS */;
/*!40000 ALTER TABLE `qrtz_simprop_triggers` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `qrtz_triggers`
--

DROP TABLE IF EXISTS `qrtz_triggers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `qrtz_triggers` (
  `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称',
  `trigger_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '触发器的名字',
  `trigger_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '触发器所属组的名字',
  `job_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_job_details表job_name的外键',
  `job_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_job_details表job_group的外键',
  `description` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '相关介绍',
  `next_fire_time` bigint DEFAULT NULL COMMENT '上一次触发时间（毫秒）',
  `prev_fire_time` bigint DEFAULT NULL COMMENT '下一次触发时间（默认为-1表示不触发）',
  `priority` int DEFAULT NULL COMMENT '优先级',
  `trigger_state` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '触发器状态',
  `trigger_type` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '触发器的类型',
  `start_time` bigint NOT NULL COMMENT '开始时间',
  `end_time` bigint DEFAULT NULL COMMENT '结束时间',
  `calendar_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '日程表名称',
  `misfire_instr` smallint DEFAULT NULL COMMENT '补偿执行的策略',
  `job_data` blob COMMENT '存放持久化job对象',
  PRIMARY KEY (`sched_name`,`trigger_name`,`trigger_group`),
  KEY `sched_name` (`sched_name`,`job_name`,`job_group`),
  CONSTRAINT `qrtz_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `job_name`, `job_group`) REFERENCES `qrtz_job_details` (`sched_name`, `job_name`, `job_group`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='触发器详细信息表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `qrtz_triggers`
--

LOCK TABLES `qrtz_triggers` WRITE;
/*!40000 ALTER TABLE `qrtz_triggers` DISABLE KEYS */;
/*!40000 ALTER TABLE `qrtz_triggers` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sys_api_config`
--

DROP TABLE IF EXISTS `sys_api_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sys_api_config` (
  `config_id` bigint NOT NULL AUTO_INCREMENT COMMENT '配置ID',
  `api_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'API名称',
  `api_key` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'API密钥',
  `api_secret` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'API密文',
  `client_id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '客户端ID',
  `allowed_ips` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '允许的IP地址（多个用逗号分隔）',
  `rate_limit` int DEFAULT '100' COMMENT '限流（每分钟请求数）',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '状态（0启用 1禁用）',
  `expire_time` datetime DEFAULT NULL COMMENT '过期时间',
  `last_use_time` datetime DEFAULT NULL COMMENT '最后使用时间',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`config_id`),
  UNIQUE KEY `uk_api_key` (`api_key`),
  KEY `idx_status` (`status`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='开放式API配置表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sys_api_config`
--

LOCK TABLES `sys_api_config` WRITE;
/*!40000 ALTER TABLE `sys_api_config` DISABLE KEYS */;
/*!40000 ALTER TABLE `sys_api_config` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sys_api_log`
--

DROP TABLE IF EXISTS `sys_api_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sys_api_log` (
  `log_id` bigint NOT NULL AUTO_INCREMENT COMMENT '日志ID',
  `api_key` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'API密钥',
  `api_path` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'API路径',
  `request_method` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '请求方法',
  `request_params` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '请求参数',
  `response_code` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '响应码',
  `response_time` int DEFAULT NULL COMMENT '响应时间（毫秒）',
  `ip_address` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT 'IP地址',
  `user_agent` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '用户代理',
  `create_time` datetime DEFAULT NULL COMMENT '调用时间',
  PRIMARY KEY (`log_id`),
  KEY `idx_api_key` (`api_key`),
  KEY `idx_create_time` (`create_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='API调用日志表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sys_api_log`
--

LOCK TABLES `sys_api_log` WRITE;
/*!40000 ALTER TABLE `sys_api_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `sys_api_log` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sys_backup`
--

DROP TABLE IF EXISTS `sys_backup`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sys_backup` (
  `backup_id` bigint NOT NULL AUTO_INCREMENT COMMENT '备份ID',
  `backup_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '备份名称',
  `backup_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'full' COMMENT '备份类型（full全量 incremental增量）',
  `backup_path` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '备份路径',
  `file_size` bigint DEFAULT NULL COMMENT '文件大小（字节）',
  `backup_status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '备份状态（0备份中 1成功 2失败）',
  `backup_time` datetime DEFAULT NULL COMMENT '备份时间',
  `backup_duration` int DEFAULT NULL COMMENT '备份耗时（秒）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`backup_id`),
  KEY `idx_backup_time` (`backup_time`),
  KEY `idx_backup_status` (`backup_status`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='数据备份表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sys_backup`
--

LOCK TABLES `sys_backup` WRITE;
/*!40000 ALTER TABLE `sys_backup` DISABLE KEYS */;
/*!40000 ALTER TABLE `sys_backup` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sys_config`
--

DROP TABLE IF EXISTS `sys_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sys_config` (
  `config_id` int NOT NULL AUTO_INCREMENT COMMENT '参数主键',
  `config_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '参数名称',
  `config_key` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '参数键名',
  `config_value` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '参数键值',
  `config_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'N' COMMENT '系统内置（Y是 N否）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`config_id`)
) ENGINE=InnoDB AUTO_INCREMENT=100 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='参数配置表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sys_config`
--

LOCK TABLES `sys_config` WRITE;
/*!40000 ALTER TABLE `sys_config` DISABLE KEYS */;
INSERT INTO `sys_config` VALUES (1,'主框架页-默认皮肤样式名称','sys.index.skinName','skin-blue','Y','admin','2025-10-30 15:00:33','',NULL,'蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow'),(2,'用户管理-账号初始密码','sys.user.initPassword','123456','Y','admin','2025-10-30 15:00:33','',NULL,'初始化密码 123456'),(3,'主框架页-侧边栏主题','sys.index.sideTheme','theme-dark','Y','admin','2025-10-30 15:00:33','',NULL,'深色主题theme-dark，浅色主题theme-light'),(4,'账号自助-验证码开关','sys.account.captchaEnabled','true','Y','admin','2025-10-30 15:00:33','',NULL,'是否开启验证码功能（true开启，false关闭）'),(5,'账号自助-是否开启用户注册功能','sys.account.registerUser','false','Y','admin','2025-10-30 15:00:33','',NULL,'是否开启注册用户功能（true开启，false关闭）'),(6,'用户登录-黑名单列表','sys.login.blackIPList','','Y','admin','2025-10-30 15:00:33','',NULL,'设置登录IP黑名单限制，多个匹配项以;分隔，支持匹配（*通配、网段）'),(7,'用户管理-初始密码修改策略','sys.account.initPasswordModify','1','Y','admin','2025-10-30 15:00:33','',NULL,'0：初始密码修改策略关闭，没有任何提示，1：提醒用户，如果未修改初始密码，则在登录时就会提醒修改密码对话框'),(8,'用户管理-账号密码更新周期','sys.account.passwordValidateDays','0','Y','admin','2025-10-30 15:00:33','',NULL,'密码更新周期（填写数字，数据初始化值为0不限制，若修改必须为大于0小于365的正整数），如果超过这个周期登录系统时，则在登录时就会提醒修改密码对话框');
/*!40000 ALTER TABLE `sys_config` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sys_dept`
--

DROP TABLE IF EXISTS `sys_dept`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sys_dept` (
  `dept_id` bigint NOT NULL AUTO_INCREMENT COMMENT '部门id',
  `parent_id` bigint DEFAULT '0' COMMENT '父部门id',
  `ancestors` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '祖级列表',
  `dept_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '部门名称',
  `order_num` int DEFAULT '0' COMMENT '显示顺序',
  `leader` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '负责人',
  `phone` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '联系电话',
  `email` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '邮箱',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '部门状态（0正常 1停用）',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志（0代表存在 2代表删除）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`dept_id`)
) ENGINE=InnoDB AUTO_INCREMENT=200 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='部门表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sys_dept`
--

LOCK TABLES `sys_dept` WRITE;
/*!40000 ALTER TABLE `sys_dept` DISABLE KEYS */;
INSERT INTO `sys_dept` VALUES (100,0,'0','外贸总部',0,'外贸总部','15888888888','admin@ddnai.com','0','0','admin','2025-10-30 15:00:31','',NULL),(101,100,'0,100','深圳总公司',1,'外贸总部','15888888888','admin@ddnai.com','0','0','admin','2025-10-30 15:00:31','',NULL),(102,100,'0,100','长沙分公司',2,'外贸总部','15888888888','admin@ddnai.com','0','0','admin','2025-10-30 15:00:31','',NULL),(103,101,'0,100,101','研发部门',1,'外贸总部','15888888888','admin@ddnai.com','0','0','admin','2025-10-30 15:00:31','',NULL),(104,101,'0,100,101','市场部门',2,'外贸总部','15888888888','admin@ddnai.com','0','0','admin','2025-10-30 15:00:31','',NULL),(105,101,'0,100,101','测试部门',3,'外贸总部','15888888888','admin@ddnai.com','0','0','admin','2025-10-30 15:00:31','',NULL),(106,101,'0,100,101','财务部门',4,'外贸总部','15888888888','admin@ddnai.com','0','0','admin','2025-10-30 15:00:31','',NULL),(107,101,'0,100,101','运维部门',5,'外贸总部','15888888888','admin@ddnai.com','0','0','admin','2025-10-30 15:00:31','',NULL),(108,102,'0,100,102','市场部门',1,'外贸总部','15888888888','admin@ddnai.com','0','0','admin','2025-10-30 15:00:31','',NULL),(109,102,'0,100,102','财务部门',2,'外贸总部','15888888888','admin@ddnai.com','0','0','admin','2025-10-30 15:00:31','',NULL);
/*!40000 ALTER TABLE `sys_dept` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sys_dict_data`
--

DROP TABLE IF EXISTS `sys_dict_data`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sys_dict_data` (
  `dict_code` bigint NOT NULL AUTO_INCREMENT COMMENT '字典编码',
  `dict_sort` int DEFAULT '0' COMMENT '字典排序',
  `dict_label` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '字典标签',
  `dict_value` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '字典键值',
  `dict_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '字典类型',
  `css_class` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '样式属性（其他样式扩展）',
  `list_class` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '表格回显样式',
  `is_default` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'N' COMMENT '是否默认（Y是 N否）',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '状态（0正常 1停用）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`dict_code`)
) ENGINE=InnoDB AUTO_INCREMENT=158 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='字典数据表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sys_dict_data`
--

LOCK TABLES `sys_dict_data` WRITE;
/*!40000 ALTER TABLE `sys_dict_data` DISABLE KEYS */;
INSERT INTO `sys_dict_data` VALUES (1,1,'男','0','sys_user_sex','','','Y','0','admin','2025-10-30 15:00:33','',NULL,'性别男'),(2,2,'女','1','sys_user_sex','','','N','0','admin','2025-10-30 15:00:33','',NULL,'性别女'),(3,3,'未知','2','sys_user_sex','','','N','0','admin','2025-10-30 15:00:33','',NULL,'性别未知'),(4,1,'显示','0','sys_show_hide','','primary','Y','0','admin','2025-10-30 15:00:33','',NULL,'显示菜单'),(5,2,'隐藏','1','sys_show_hide','','danger','N','0','admin','2025-10-30 15:00:33','',NULL,'隐藏菜单'),(6,1,'正常','0','sys_normal_disable','','primary','Y','0','admin','2025-10-30 15:00:33','',NULL,'正常状态'),(7,2,'停用','1','sys_normal_disable','','danger','N','0','admin','2025-10-30 15:00:33','',NULL,'停用状态'),(8,1,'正常','0','sys_job_status','','primary','Y','0','admin','2025-10-30 15:00:33','',NULL,'正常状态'),(9,2,'暂停','1','sys_job_status','','danger','N','0','admin','2025-10-30 15:00:33','',NULL,'停用状态'),(10,1,'默认','DEFAULT','sys_job_group','','','Y','0','admin','2025-10-30 15:00:33','',NULL,'默认分组'),(11,2,'系统','SYSTEM','sys_job_group','','','N','0','admin','2025-10-30 15:00:33','',NULL,'系统分组'),(12,1,'是','Y','sys_yes_no','','primary','Y','0','admin','2025-10-30 15:00:33','',NULL,'系统默认是'),(13,2,'否','N','sys_yes_no','','danger','N','0','admin','2025-10-30 15:00:33','',NULL,'系统默认否'),(14,1,'通知','1','sys_notice_type','','warning','Y','0','admin','2025-10-30 15:00:33','',NULL,'通知'),(15,2,'公告','2','sys_notice_type','','success','N','0','admin','2025-10-30 15:00:33','',NULL,'公告'),(16,1,'正常','0','sys_notice_status','','primary','Y','0','admin','2025-10-30 15:00:33','',NULL,'正常状态'),(17,2,'关闭','1','sys_notice_status','','danger','N','0','admin','2025-10-30 15:00:33','',NULL,'关闭状态'),(18,99,'其他','0','sys_oper_type','','info','N','0','admin','2025-10-30 15:00:33','',NULL,'其他操作'),(19,1,'新增','1','sys_oper_type','','info','N','0','admin','2025-10-30 15:00:33','',NULL,'新增操作'),(20,2,'修改','2','sys_oper_type','','info','N','0','admin','2025-10-30 15:00:33','',NULL,'修改操作'),(21,3,'删除','3','sys_oper_type','','danger','N','0','admin','2025-10-30 15:00:33','',NULL,'删除操作'),(22,4,'授权','4','sys_oper_type','','primary','N','0','admin','2025-10-30 15:00:33','',NULL,'授权操作'),(23,5,'导出','5','sys_oper_type','','warning','N','0','admin','2025-10-30 15:00:33','',NULL,'导出操作'),(24,6,'导入','6','sys_oper_type','','warning','N','0','admin','2025-10-30 15:00:33','',NULL,'导入操作'),(25,7,'强退','7','sys_oper_type','','danger','N','0','admin','2025-10-30 15:00:33','',NULL,'强退操作'),(26,8,'生成代码','8','sys_oper_type','','warning','N','0','admin','2025-10-30 15:00:33','',NULL,'生成操作'),(27,9,'清空数据','9','sys_oper_type','','danger','N','0','admin','2025-10-30 15:00:33','',NULL,'清空操作'),(28,1,'成功','0','sys_common_status','','primary','N','0','admin','2025-10-30 15:00:33','',NULL,'正常状态'),(29,2,'失败','1','sys_common_status','','danger','N','0','admin','2025-10-30 15:00:33','',NULL,'停用状态'),(100,1,'正常','0','psy_scale_status','','primary','Y','0','admin','2025-11-10 14:39:07','',NULL,'正常状态'),(101,2,'停用','1','psy_scale_status','','danger','N','0','admin','2025-11-10 14:39:07','',NULL,'停用状态'),(102,1,'进行中','0','psy_assessment_status','','warning','Y','0','admin','2025-11-10 14:39:07','',NULL,'进行中'),(103,2,'已完成','1','psy_assessment_status','','success','N','0','admin','2025-11-10 14:39:07','',NULL,'已完成'),(104,3,'已作废','2','psy_assessment_status','','danger','N','0','admin','2025-11-10 14:39:07','',NULL,'已作废'),(105,1,'单选题','single','psy_item_type','','primary','Y','0','admin','2025-11-10 14:39:07','',NULL,'单选题'),(106,2,'多选题','multiple','psy_item_type','','success','N','0','admin','2025-11-10 14:39:07','',NULL,'多选题'),(107,3,'矩阵题','matrix','psy_item_type','','info','N','0','admin','2025-11-10 14:39:07','',NULL,'矩阵题'),(108,1,'人格量表','personality','psy_scale_type','','primary','Y','0','admin','2025-11-10 14:39:07','',NULL,'人格量表'),(109,2,'情绪量表','emotion','psy_scale_type','','success','N','0','admin','2025-11-10 14:39:07','',NULL,'情绪量表'),(110,3,'认知量表','cognitive','psy_scale_type','','info','N','0','admin','2025-11-10 14:39:07','',NULL,'认知量表'),(111,4,'行为量表','behavior','psy_scale_type','','warning','N','0','admin','2025-11-10 14:39:07','',NULL,'行为量表'),(112,5,'其他','other','psy_scale_type','','default','N','0','admin','2025-11-10 14:39:07','',NULL,'其他类型'),(113,1,'标准档案','standard','psy_profile_type','','primary','Y','0','admin','2025-11-10 14:39:08','',NULL,'标准档案'),(114,2,'儿童档案','child','psy_profile_type','','success','N','0','admin','2025-11-10 14:39:08','',NULL,'儿童档案'),(115,3,'成人档案','adult','psy_profile_type','','info','N','0','admin','2025-11-10 14:39:08','',NULL,'成人档案'),(116,4,'老年档案','senior','psy_profile_type','','warning','N','0','admin','2025-11-10 14:39:08','',NULL,'老年档案'),(117,1,'自定义','custom','psy_questionnaire_type','','primary','Y','0','admin','2025-11-10 14:39:08','',NULL,'自定义问卷'),(118,2,'考试','exam','psy_questionnaire_type','','warning','N','0','admin','2025-11-10 14:39:08','',NULL,'考试问卷'),(119,3,'练习','practice','psy_questionnaire_type','','success','N','0','admin','2025-11-10 14:39:08','',NULL,'练习问卷'),(120,1,'手动','manual','psy_paper_type','','primary','Y','0','admin','2025-11-10 14:39:08','',NULL,'手动组卷'),(121,2,'随机','random','psy_paper_type','','success','N','0','admin','2025-11-10 14:39:08','',NULL,'随机组卷'),(122,3,'混合','mixed','psy_paper_type','','info','N','0','admin','2025-11-10 14:39:08','',NULL,'手动+随机'),(123,4,'判断题','boolean','psy_item_type','','info','N','0','admin','2025-11-10 14:39:08','',NULL,'判断题'),(124,5,'填空题','input','psy_item_type','','warning','N','0','admin','2025-11-10 14:39:08','',NULL,'填空题'),(125,6,'排序题','sort','psy_item_type','','info','N','0','admin','2025-11-10 14:39:08','',NULL,'排序题'),(126,7,'计算题','calculate','psy_item_type','','warning','N','0','admin','2025-11-10 14:39:08','',NULL,'计算题'),(127,8,'简答题','text','psy_item_type','','info','N','0','admin','2025-11-10 14:39:08','',NULL,'简答题'),(128,9,'问答题','textarea','psy_item_type','','warning','N','0','admin','2025-11-10 14:39:08','',NULL,'问答题'),(129,10,'作文题','essay','psy_item_type','','success','N','0','admin','2025-11-10 14:39:08','',NULL,'作文题'),(130,1,'低','low','psy_warning_level','','info','N','0','admin','2025-11-10 14:39:08','',NULL,'低风险'),(131,2,'中','medium','psy_warning_level','','warning','Y','0','admin','2025-11-10 14:39:08','',NULL,'中风险'),(132,3,'高','high','psy_warning_level','','danger','N','0','admin','2025-11-10 14:39:08','',NULL,'高风险'),(133,4,'严重','critical','psy_warning_level','','danger','N','0','admin','2025-11-10 14:39:08','',NULL,'严重风险'),(134,1,'待处理','0','psy_warning_status','','warning','Y','0','admin','2025-11-10 14:39:08','',NULL,'待处理'),(135,2,'处理中','1','psy_warning_status','','info','N','0','admin','2025-11-10 14:39:08','',NULL,'处理中'),(136,3,'已解除','2','psy_warning_status','','success','N','0','admin','2025-11-10 14:39:08','',NULL,'已解除'),(137,4,'已归档','3','psy_warning_status','','default','N','0','admin','2025-11-10 14:39:08','',NULL,'已归档'),(138,1,'测评','test','psy_qrcode_type','','primary','Y','0','admin','2025-11-10 14:39:08','',NULL,'扫码测评'),(139,2,'查看报告','view_report','psy_qrcode_type','','success','N','0','admin','2025-11-10 14:39:08','',NULL,'扫码查看报告'),(140,3,'注册','register','psy_qrcode_type','','info','N','0','admin','2025-11-10 14:39:08','',NULL,'扫码注册'),(141,4,'登录','login','psy_qrcode_type','','warning','N','0','admin','2025-11-10 14:39:08','',NULL,'扫码登录'),(142,1,'全量备份','full','sys_backup_type','','primary','Y','0','admin','2025-11-10 14:39:08','',NULL,'全量备份'),(143,2,'增量备份','incremental','sys_backup_type','','success','N','0','admin','2025-11-10 14:39:08','',NULL,'增量备份'),(144,1,'文章','article','psy_content_type','','primary','Y','0','admin','2025-11-10 14:39:08','',NULL,'文章内容'),(145,2,'公告','notice','psy_content_type','','warning','N','0','admin','2025-11-10 14:39:08','',NULL,'公告内容'),(146,3,'横幅','banner','psy_content_type','','info','N','0','admin','2025-11-10 14:39:08','',NULL,'横幅图片'),(147,4,'链接','link','psy_content_type','','success','N','0','admin','2025-11-10 14:39:08','',NULL,'外链内容'),(148,4,'已暂停','3','psy_assessment_status','','info','N','0','admin','2025-11-10 14:39:08','',NULL,'已暂停'),(149,1,'文章','article','psy_category_type','','primary','Y','0','admin','2025-11-10 14:39:08','',NULL,'文章栏目'),(150,2,'公告','notice','psy_category_type','','warning','N','0','admin','2025-11-10 14:39:08','',NULL,'公告栏目'),(151,3,'横幅','banner','psy_category_type','','info','N','0','admin','2025-11-10 14:39:08','',NULL,'横幅栏目'),(152,1,'草稿','0','psy_content_status','','info','Y','0','admin','2025-11-10 14:39:08','',NULL,'草稿状态'),(153,2,'已发布','1','psy_content_status','','success','N','0','admin','2025-11-10 14:39:08','',NULL,'已发布状态'),(154,3,'已下架','2','psy_content_status','','warning','N','0','admin','2025-11-10 14:39:08','',NULL,'已下架状态'),(155,1,'待审核','0','psy_comment_status','','warning','Y','0','admin','2025-11-10 14:39:08','',NULL,'待审核状态'),(156,2,'已发布','1','psy_comment_status','','success','N','0','admin','2025-11-10 14:39:08','',NULL,'已发布状态'),(157,3,'已删除','2','psy_comment_status','','danger','N','0','admin','2025-11-10 14:39:08','',NULL,'已删除状态');
/*!40000 ALTER TABLE `sys_dict_data` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sys_dict_type`
--

DROP TABLE IF EXISTS `sys_dict_type`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sys_dict_type` (
  `dict_id` bigint NOT NULL AUTO_INCREMENT COMMENT '字典主键',
  `dict_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '字典名称',
  `dict_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '字典类型',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '状态（0正常 1停用）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`dict_id`),
  UNIQUE KEY `dict_type` (`dict_type`)
) ENGINE=InnoDB AUTO_INCREMENT=115 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='字典类型表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sys_dict_type`
--

LOCK TABLES `sys_dict_type` WRITE;
/*!40000 ALTER TABLE `sys_dict_type` DISABLE KEYS */;
INSERT INTO `sys_dict_type` VALUES (1,'用户性别','sys_user_sex','0','admin','2025-10-30 15:00:33','',NULL,'用户性别列表'),(2,'菜单状态','sys_show_hide','0','admin','2025-10-30 15:00:33','',NULL,'菜单状态列表'),(3,'系统开关','sys_normal_disable','0','admin','2025-10-30 15:00:33','',NULL,'系统开关列表'),(4,'任务状态','sys_job_status','0','admin','2025-10-30 15:00:33','',NULL,'任务状态列表'),(5,'任务分组','sys_job_group','0','admin','2025-10-30 15:00:33','',NULL,'任务分组列表'),(6,'系统是否','sys_yes_no','0','admin','2025-10-30 15:00:33','',NULL,'系统是否列表'),(7,'通知类型','sys_notice_type','0','admin','2025-10-30 15:00:33','',NULL,'通知类型列表'),(8,'通知状态','sys_notice_status','0','admin','2025-10-30 15:00:33','',NULL,'通知状态列表'),(9,'操作类型','sys_oper_type','0','admin','2025-10-30 15:00:33','',NULL,'操作类型列表'),(10,'系统状态','sys_common_status','0','admin','2025-10-30 15:00:33','',NULL,'登录状态列表'),(100,'量表状态','psy_scale_status','0','admin','2025-11-10 14:39:07','',NULL,'心理量表状态列表'),(101,'测评状态','psy_assessment_status','0','admin','2025-11-10 14:39:07','',NULL,'心理测评状态列表'),(102,'题目类型','psy_item_type','0','admin','2025-11-10 14:39:07','',NULL,'心理测评题目类型'),(103,'量表类型','psy_scale_type','0','admin','2025-11-10 14:39:07','',NULL,'心理量表类型'),(104,'档案类型','psy_profile_type','0','admin','2025-11-10 14:39:08','',NULL,'用户档案类型列表'),(105,'问卷类型','psy_questionnaire_type','0','admin','2025-11-10 14:39:08','',NULL,'自定义问卷类型'),(106,'组卷方式','psy_paper_type','0','admin','2025-11-10 14:39:08','',NULL,'问卷组卷方式'),(107,'预警级别','psy_warning_level','0','admin','2025-11-10 14:39:08','',NULL,'危机预警级别'),(108,'预警状态','psy_warning_status','0','admin','2025-11-10 14:39:08','',NULL,'危机预警状态'),(109,'二维码类型','psy_qrcode_type','0','admin','2025-11-10 14:39:08','',NULL,'二维码类型列表'),(110,'备份类型','sys_backup_type','0','admin','2025-11-10 14:39:08','',NULL,'数据备份类型'),(111,'网站内容类型','psy_content_type','0','admin','2025-11-10 14:39:08','',NULL,'心理网站内容类型'),(112,'栏目类型','psy_category_type','0','admin','2025-11-10 14:39:08','',NULL,'心理网站栏目类型'),(113,'内容状态','psy_content_status','0','admin','2025-11-10 14:39:08','',NULL,'心理网站内容状态'),(114,'评论状态','psy_comment_status','0','admin','2025-11-10 14:39:08','',NULL,'心理网站评论状态');
/*!40000 ALTER TABLE `sys_dict_type` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sys_job`
--

DROP TABLE IF EXISTS `sys_job`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sys_job` (
  `job_id` bigint NOT NULL AUTO_INCREMENT COMMENT '任务ID',
  `job_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '任务名称',
  `job_group` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'DEFAULT' COMMENT '任务组名',
  `invoke_target` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调用目标字符串',
  `cron_expression` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT 'cron执行表达式',
  `misfire_policy` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '3' COMMENT '计划执行错误策略（1立即执行 2执行一次 3放弃执行）',
  `concurrent` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '1' COMMENT '是否并发执行（0允许 1禁止）',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '状态（0正常 1暂停）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '备注信息',
  PRIMARY KEY (`job_id`,`job_name`,`job_group`)
) ENGINE=InnoDB AUTO_INCREMENT=100 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='定时任务调度表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sys_job`
--

LOCK TABLES `sys_job` WRITE;
/*!40000 ALTER TABLE `sys_job` DISABLE KEYS */;
/*!40000 ALTER TABLE `sys_job` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sys_job_log`
--

DROP TABLE IF EXISTS `sys_job_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sys_job_log` (
  `job_log_id` bigint NOT NULL AUTO_INCREMENT COMMENT '任务日志ID',
  `job_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务名称',
  `job_group` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务组名',
  `invoke_target` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调用目标字符串',
  `job_message` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '日志信息',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '执行状态（0正常 1失败）',
  `exception_info` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '异常信息',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`job_log_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='定时任务调度日志表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sys_job_log`
--

LOCK TABLES `sys_job_log` WRITE;
/*!40000 ALTER TABLE `sys_job_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `sys_job_log` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sys_logininfor`
--

DROP TABLE IF EXISTS `sys_logininfor`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sys_logininfor` (
  `info_id` bigint NOT NULL AUTO_INCREMENT COMMENT '访问ID',
  `user_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '用户账号',
  `ipaddr` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '登录IP地址',
  `login_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '登录地点',
  `browser` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '浏览器类型',
  `os` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '操作系统',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '登录状态（0成功 1失败）',
  `msg` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '提示消息',
  `login_time` datetime DEFAULT NULL COMMENT '访问时间',
  PRIMARY KEY (`info_id`),
  KEY `idx_sys_logininfor_s` (`status`),
  KEY `idx_sys_logininfor_lt` (`login_time`)
) ENGINE=InnoDB AUTO_INCREMENT=127 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='系统访问记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sys_logininfor`
--

LOCK TABLES `sys_logininfor` WRITE;
/*!40000 ALTER TABLE `sys_logininfor` DISABLE KEYS */;
INSERT INTO `sys_logininfor` VALUES (100,'admin','115.227.113.199','XX XX','Chrome 14','Windows 10','1','用户不存在/密码错误','2025-10-30 16:37:06'),(101,'admin','115.227.113.199','XX XX','Chrome 14','Windows 10','1','用户不存在/密码错误','2025-10-30 16:37:17'),(102,'admin','115.227.113.199','XX XX','Chrome 14','Windows 10','1','用户不存在/密码错误','2025-10-30 16:38:44'),(103,'admin','115.227.113.199','XX XX','Chrome 14','Windows 10','0','登录成功','2025-10-30 16:42:51'),(104,'admin','115.227.113.199','XX XX','Chrome 14','Windows 10','1','验证码已失效','2025-10-30 17:09:53'),(105,'admin','115.227.113.199','XX XX','Chrome 14','Windows 10','1','用户不存在/密码错误','2025-10-30 17:09:58'),(106,'admin','115.227.113.199','XX XX','Chrome 14','Windows 10','1','验证码错误','2025-10-30 17:10:24'),(107,'ruoyi','115.227.113.199','XX XX','Chrome 14','Windows 10','1','用户不存在/密码错误','2025-10-30 17:11:18'),(108,'admin','115.227.113.199','XX XX','Chrome 14','Windows 10','1','验证码错误','2025-10-30 17:11:40'),(109,'admin','115.227.113.199','XX XX','Chrome 14','Windows 10','0','登录成功','2025-10-30 17:12:49'),(110,'admin','115.227.113.199','XX XX','Chrome 14','Windows 10','0','登录成功','2025-10-30 18:18:44'),(111,'admin','115.227.113.199','XX XX','Chrome 14','Windows 10','0','登录成功','2025-10-30 19:32:29'),(112,'admin','115.227.113.199','XX XX','Chrome 14','Windows 10','0','退出成功','2025-10-30 19:48:56'),(113,'admin1','115.227.113.199','XX XX','Chrome 14','Windows 10','0','登录成功','2025-10-30 19:49:08'),(114,'admin1','115.227.113.199','XX XX','Chrome 14','Windows 10','0','退出成功','2025-10-30 19:52:01'),(115,'admin','115.227.113.199','XX XX','Chrome 14','Windows 10','0','登录成功','2025-10-30 19:52:14'),(116,'admin','115.205.193.200','XX XX','Chrome 14','Windows 10','0','登录成功','2025-10-31 09:37:30'),(117,'admin','115.205.193.200','XX XX','Chrome 14','Windows 10','1','用户不存在/密码错误','2025-10-31 13:59:29'),(118,'admin1','115.205.193.200','XX XX','Chrome 14','Windows 10','0','登录成功','2025-10-31 13:59:50'),(119,'admin1','115.205.193.200','XX XX','Chrome 14','Windows 10','0','退出成功','2025-10-31 14:00:04'),(120,'admin','115.205.193.200','XX XX','Chrome 14','Windows 10','0','登录成功','2025-10-31 14:00:28'),(121,'admin','115.205.193.200','XX XX','Chrome 14','Windows 10','0','登录成功','2025-10-31 14:57:17'),(122,'admin1','114.216.62.231','XX XX','Chrome 10','Mac OS X','1','验证码错误','2025-10-31 15:13:00'),(123,'admin1','114.216.62.231','XX XX','Chrome 10','Mac OS X','0','登录成功','2025-10-31 15:13:08'),(124,'admin','127.0.0.1','内网IP','Chrome 10','Windows 10','1','用户不存在/密码错误','2025-10-31 16:01:17'),(125,'admin','127.0.0.1','内网IP','Chrome 10','Windows 10','1','用户不存在/密码错误','2025-10-31 16:22:05'),(126,'admin','127.0.0.1','内网IP','Chrome 10','Windows 10','0','登录成功','2025-11-12 09:05:07');
/*!40000 ALTER TABLE `sys_logininfor` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sys_menu`
--

DROP TABLE IF EXISTS `sys_menu`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sys_menu` (
  `menu_id` bigint NOT NULL AUTO_INCREMENT COMMENT '菜单ID',
  `menu_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '菜单名称',
  `parent_id` bigint DEFAULT '0' COMMENT '父菜单ID',
  `order_num` int DEFAULT '0' COMMENT '显示顺序',
  `path` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '路由地址',
  `component` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '组件路径',
  `query` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '路由参数',
  `route_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '路由名称',
  `is_frame` int DEFAULT '1' COMMENT '是否为外链（0是 1否）',
  `is_cache` int DEFAULT '0' COMMENT '是否缓存（0缓存 1不缓存）',
  `menu_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '菜单类型（M目录 C菜单 F按钮）',
  `visible` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '菜单状态（0显示 1隐藏）',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '菜单状态（0正常 1停用）',
  `perms` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '权限标识',
  `icon` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#' COMMENT '菜单图标',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '备注',
  PRIMARY KEY (`menu_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2103 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='菜单权限表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sys_menu`
--

LOCK TABLES `sys_menu` WRITE;
/*!40000 ALTER TABLE `sys_menu` DISABLE KEYS */;
INSERT INTO `sys_menu` VALUES (1,'系统管理',0,1,'system',NULL,'','',1,0,'M','0','0','','system','admin','2025-10-30 15:00:32','',NULL,'系统管理目录'),(2,'系统监控',0,2,'monitor',NULL,'','',1,0,'M','0','0','','monitor','admin','2025-10-30 15:00:32','',NULL,'系统监控目录'),(3,'系统工具',0,3,'tool',NULL,'','',1,0,'M','0','0','','tool','admin','2025-10-30 15:00:32','',NULL,'系统工具目录'),(100,'用户管理',1,1,'user','system/user/index','','',1,0,'C','0','0','system:user:list','user','admin','2025-10-30 15:00:32','',NULL,'用户管理菜单'),(101,'角色管理',1,2,'role','system/role/index','','',1,0,'C','0','0','system:role:list','peoples','admin','2025-10-30 15:00:32','',NULL,'角色管理菜单'),(102,'菜单管理',1,3,'menu','system/menu/index','','',1,0,'C','0','0','system:menu:list','tree-table','admin','2025-10-30 15:00:32','',NULL,'菜单管理菜单'),(103,'部门管理',1,4,'dept','system/dept/index','','',1,0,'C','0','0','system:dept:list','tree','admin','2025-10-30 15:00:32','',NULL,'部门管理菜单'),(104,'岗位管理',1,5,'post','system/post/index','','',1,0,'C','0','0','system:post:list','post','admin','2025-10-30 15:00:32','',NULL,'岗位管理菜单'),(105,'字典管理',1,6,'dict','system/dict/index','','',1,0,'C','0','0','system:dict:list','dict','admin','2025-10-30 15:00:32','',NULL,'字典管理菜单'),(106,'参数设置',1,7,'config','system/config/index','','',1,0,'C','0','0','system:config:list','edit','admin','2025-10-30 15:00:32','',NULL,'参数设置菜单'),(107,'网站新闻',1,8,'notice','system/notice/index','','',1,0,'C','0','0','system:notice:list','message','admin','2025-10-30 15:00:32','admin','2025-10-30 16:45:21','通知公告菜单'),(108,'日志管理',1,9,'log','','','',1,0,'M','0','0','','log','admin','2025-10-30 15:00:32','',NULL,'日志管理菜单'),(109,'在线用户',2,1,'online','monitor/online/index','','',1,0,'C','0','0','monitor:online:list','online','admin','2025-10-30 15:00:32','',NULL,'在线用户菜单'),(110,'定时任务',2,2,'job','monitor/job/index','','',1,0,'C','0','0','monitor:job:list','job','admin','2025-10-30 15:00:32','',NULL,'定时任务菜单'),(111,'数据监控',2,3,'druid','monitor/druid/index','','',1,0,'C','0','0','monitor:druid:list','druid','admin','2025-10-30 15:00:32','',NULL,'数据监控菜单'),(112,'服务监控',2,4,'server','monitor/server/index','','',1,0,'C','0','0','monitor:server:list','server','admin','2025-10-30 15:00:32','',NULL,'服务监控菜单'),(113,'缓存监控',2,5,'cache','monitor/cache/index','','',1,0,'C','0','0','monitor:cache:list','redis','admin','2025-10-30 15:00:32','',NULL,'缓存监控菜单'),(114,'缓存列表',2,6,'cacheList','monitor/cache/list','','',1,0,'C','0','0','monitor:cache:list','redis-list','admin','2025-10-30 15:00:32','',NULL,'缓存列表菜单'),(115,'表单构建',3,1,'build','tool/build/index','','',1,0,'C','0','0','tool:build:list','build','admin','2025-10-30 15:00:32','',NULL,'表单构建菜单'),(116,'代码生成',3,2,'gen','tool/gen/index','','',1,0,'C','0','0','tool:gen:list','code','admin','2025-10-30 15:00:32','',NULL,'代码生成菜单'),(117,'系统接口',3,3,'swagger','tool/swagger/index','','',1,0,'C','0','0','tool:swagger:list','swagger','admin','2025-10-30 15:00:32','',NULL,'系统接口菜单'),(500,'操作日志',108,1,'operlog','monitor/operlog/index','','',1,0,'C','0','0','monitor:operlog:list','form','admin','2025-10-30 15:00:32','',NULL,'操作日志菜单'),(501,'登录日志',108,2,'logininfor','monitor/logininfor/index','','',1,0,'C','0','0','monitor:logininfor:list','logininfor','admin','2025-10-30 15:00:32','',NULL,'登录日志菜单'),(1000,'用户查询',100,1,'','','','',1,0,'F','0','0','system:user:query','#','admin','2025-10-30 15:00:32','',NULL,''),(1001,'用户新增',100,2,'','','','',1,0,'F','0','0','system:user:add','#','admin','2025-10-30 15:00:32','',NULL,''),(1002,'用户修改',100,3,'','','','',1,0,'F','0','0','system:user:edit','#','admin','2025-10-30 15:00:32','',NULL,''),(1003,'用户删除',100,4,'','','','',1,0,'F','0','0','system:user:remove','#','admin','2025-10-30 15:00:32','',NULL,''),(1004,'用户导出',100,5,'','','','',1,0,'F','0','0','system:user:export','#','admin','2025-10-30 15:00:32','',NULL,''),(1005,'用户导入',100,6,'','','','',1,0,'F','0','0','system:user:import','#','admin','2025-10-30 15:00:32','',NULL,''),(1006,'重置密码',100,7,'','','','',1,0,'F','0','0','system:user:resetPwd','#','admin','2025-10-30 15:00:32','',NULL,''),(1007,'角色查询',101,1,'','','','',1,0,'F','0','0','system:role:query','#','admin','2025-10-30 15:00:32','',NULL,''),(1008,'角色新增',101,2,'','','','',1,0,'F','0','0','system:role:add','#','admin','2025-10-30 15:00:32','',NULL,''),(1009,'角色修改',101,3,'','','','',1,0,'F','0','0','system:role:edit','#','admin','2025-10-30 15:00:32','',NULL,''),(1010,'角色删除',101,4,'','','','',1,0,'F','0','0','system:role:remove','#','admin','2025-10-30 15:00:32','',NULL,''),(1011,'角色导出',101,5,'','','','',1,0,'F','0','0','system:role:export','#','admin','2025-10-30 15:00:32','',NULL,''),(1012,'菜单查询',102,1,'','','','',1,0,'F','0','0','system:menu:query','#','admin','2025-10-30 15:00:32','',NULL,''),(1013,'菜单新增',102,2,'','','','',1,0,'F','0','0','system:menu:add','#','admin','2025-10-30 15:00:32','',NULL,''),(1014,'菜单修改',102,3,'','','','',1,0,'F','0','0','system:menu:edit','#','admin','2025-10-30 15:00:32','',NULL,''),(1015,'菜单删除',102,4,'','','','',1,0,'F','0','0','system:menu:remove','#','admin','2025-10-30 15:00:32','',NULL,''),(1016,'部门查询',103,1,'','','','',1,0,'F','0','0','system:dept:query','#','admin','2025-10-30 15:00:32','',NULL,''),(1017,'部门新增',103,2,'','','','',1,0,'F','0','0','system:dept:add','#','admin','2025-10-30 15:00:32','',NULL,''),(1018,'部门修改',103,3,'','','','',1,0,'F','0','0','system:dept:edit','#','admin','2025-10-30 15:00:32','',NULL,''),(1019,'部门删除',103,4,'','','','',1,0,'F','0','0','system:dept:remove','#','admin','2025-10-30 15:00:32','',NULL,''),(1020,'岗位查询',104,1,'','','','',1,0,'F','0','0','system:post:query','#','admin','2025-10-30 15:00:32','',NULL,''),(1021,'岗位新增',104,2,'','','','',1,0,'F','0','0','system:post:add','#','admin','2025-10-30 15:00:32','',NULL,''),(1022,'岗位修改',104,3,'','','','',1,0,'F','0','0','system:post:edit','#','admin','2025-10-30 15:00:32','',NULL,''),(1023,'岗位删除',104,4,'','','','',1,0,'F','0','0','system:post:remove','#','admin','2025-10-30 15:00:32','',NULL,''),(1024,'岗位导出',104,5,'','','','',1,0,'F','0','0','system:post:export','#','admin','2025-10-30 15:00:32','',NULL,''),(1025,'字典查询',105,1,'#','','','',1,0,'F','0','0','system:dict:query','#','admin','2025-10-30 15:00:32','',NULL,''),(1026,'字典新增',105,2,'#','','','',1,0,'F','0','0','system:dict:add','#','admin','2025-10-30 15:00:32','',NULL,''),(1027,'字典修改',105,3,'#','','','',1,0,'F','0','0','system:dict:edit','#','admin','2025-10-30 15:00:32','',NULL,''),(1028,'字典删除',105,4,'#','','','',1,0,'F','0','0','system:dict:remove','#','admin','2025-10-30 15:00:32','',NULL,''),(1029,'字典导出',105,5,'#','','','',1,0,'F','0','0','system:dict:export','#','admin','2025-10-30 15:00:32','',NULL,''),(1030,'参数查询',106,1,'#','','','',1,0,'F','0','0','system:config:query','#','admin','2025-10-30 15:00:32','',NULL,''),(1031,'参数新增',106,2,'#','','','',1,0,'F','0','0','system:config:add','#','admin','2025-10-30 15:00:32','',NULL,''),(1032,'参数修改',106,3,'#','','','',1,0,'F','0','0','system:config:edit','#','admin','2025-10-30 15:00:32','',NULL,''),(1033,'参数删除',106,4,'#','','','',1,0,'F','0','0','system:config:remove','#','admin','2025-10-30 15:00:32','',NULL,''),(1034,'参数导出',106,5,'#','','','',1,0,'F','0','0','system:config:export','#','admin','2025-10-30 15:00:32','',NULL,''),(1035,'新闻查询',107,1,'#','','','',1,0,'F','0','0','system:notice:query','#','admin','2025-10-30 15:00:32','admin','2025-10-30 16:45:34',''),(1036,'新闻新增',107,2,'#','','','',1,0,'F','0','0','system:notice:add','#','admin','2025-10-30 15:00:32','admin','2025-10-30 16:45:43',''),(1037,'新闻修改',107,3,'#','','','',1,0,'F','0','0','system:notice:edit','#','admin','2025-10-30 15:00:32','admin','2025-10-30 16:45:47',''),(1038,'新闻删除',107,4,'#','','','',1,0,'F','0','0','system:notice:remove','#','admin','2025-10-30 15:00:32','admin','2025-10-30 16:46:02',''),(1039,'操作查询',500,1,'#','','','',1,0,'F','0','0','monitor:operlog:query','#','admin','2025-10-30 15:00:32','',NULL,''),(1040,'操作删除',500,2,'#','','','',1,0,'F','0','0','monitor:operlog:remove','#','admin','2025-10-30 15:00:32','',NULL,''),(1041,'日志导出',500,3,'#','','','',1,0,'F','0','0','monitor:operlog:export','#','admin','2025-10-30 15:00:32','',NULL,''),(1042,'登录查询',501,1,'#','','','',1,0,'F','0','0','monitor:logininfor:query','#','admin','2025-10-30 15:00:32','',NULL,''),(1043,'登录删除',501,2,'#','','','',1,0,'F','0','0','monitor:logininfor:remove','#','admin','2025-10-30 15:00:32','',NULL,''),(1044,'日志导出',501,3,'#','','','',1,0,'F','0','0','monitor:logininfor:export','#','admin','2025-10-30 15:00:32','',NULL,''),(1045,'账户解锁',501,4,'#','','','',1,0,'F','0','0','monitor:logininfor:unlock','#','admin','2025-10-30 15:00:32','',NULL,''),(1046,'在线查询',109,1,'#','','','',1,0,'F','0','0','monitor:online:query','#','admin','2025-10-30 15:00:32','',NULL,''),(1047,'批量强退',109,2,'#','','','',1,0,'F','0','0','monitor:online:batchLogout','#','admin','2025-10-30 15:00:32','',NULL,''),(1048,'单条强退',109,3,'#','','','',1,0,'F','0','0','monitor:online:forceLogout','#','admin','2025-10-30 15:00:32','',NULL,''),(1049,'任务查询',110,1,'#','','','',1,0,'F','0','0','monitor:job:query','#','admin','2025-10-30 15:00:32','',NULL,''),(1050,'任务新增',110,2,'#','','','',1,0,'F','0','0','monitor:job:add','#','admin','2025-10-30 15:00:32','',NULL,''),(1051,'任务修改',110,3,'#','','','',1,0,'F','0','0','monitor:job:edit','#','admin','2025-10-30 15:00:32','',NULL,''),(1052,'任务删除',110,4,'#','','','',1,0,'F','0','0','monitor:job:remove','#','admin','2025-10-30 15:00:32','',NULL,''),(1053,'状态修改',110,5,'#','','','',1,0,'F','0','0','monitor:job:changeStatus','#','admin','2025-10-30 15:00:32','',NULL,''),(1054,'任务导出',110,6,'#','','','',1,0,'F','0','0','monitor:job:export','#','admin','2025-10-30 15:00:32','',NULL,''),(1055,'生成查询',116,1,'#','','','',1,0,'F','0','0','tool:gen:query','#','admin','2025-10-30 15:00:32','',NULL,''),(1056,'生成修改',116,2,'#','','','',1,0,'F','0','0','tool:gen:edit','#','admin','2025-10-30 15:00:32','',NULL,''),(1057,'生成删除',116,3,'#','','','',1,0,'F','0','0','tool:gen:remove','#','admin','2025-10-30 15:00:32','',NULL,''),(1058,'导入代码',116,4,'#','','','',1,0,'F','0','0','tool:gen:import','#','admin','2025-10-30 15:00:32','',NULL,''),(1059,'预览代码',116,5,'#','','','',1,0,'F','0','0','tool:gen:preview','#','admin','2025-10-30 15:00:32','',NULL,''),(1060,'生成代码',116,6,'#','','','',1,0,'F','0','0','tool:gen:code','#','admin','2025-10-30 15:00:32','',NULL,''),(2000,'心理网站管理',0,5,'psychology-website',NULL,NULL,'',1,0,'M','0','0','','guide','admin','2025-11-10 14:39:08','',NULL,'心理网站管理目录'),(2001,'网站内容管理',2000,1,'content','psychology/website/content/index',NULL,'',1,0,'C','0','0','psychology:website:content:list','documentation','admin','2025-11-10 14:39:08','',NULL,'心理网站内容管理菜单'),(2002,'网站栏目管理',2000,2,'category','psychology/website/category/index',NULL,'',1,0,'C','0','0','psychology:website:category:list','tree','admin','2025-11-10 14:39:08','',NULL,'心理网站栏目管理菜单'),(2003,'网站评论管理',2000,3,'comment','psychology/website/comment/index',NULL,'',1,0,'C','0','0','psychology:website:comment:list','message','admin','2025-11-10 14:39:08','',NULL,'心理网站评论管理菜单'),(2004,'内容查询',2001,1,'','',NULL,'',1,0,'F','0','0','psychology:website:content:query','#','admin','2025-11-10 14:39:08','',NULL,''),(2005,'内容新增',2001,2,'','',NULL,'',1,0,'F','0','0','psychology:website:content:add','#','admin','2025-11-10 14:39:08','',NULL,''),(2006,'内容修改',2001,3,'','',NULL,'',1,0,'F','0','0','psychology:website:content:edit','#','admin','2025-11-10 14:39:08','',NULL,''),(2007,'内容删除',2001,4,'','',NULL,'',1,0,'F','0','0','psychology:website:content:remove','#','admin','2025-11-10 14:39:08','',NULL,''),(2008,'内容导出',2001,5,'','',NULL,'',1,0,'F','0','0','psychology:website:content:export','#','admin','2025-11-10 14:39:08','',NULL,''),(2009,'心理测评管理',0,10,'psychology',NULL,NULL,'',1,0,'M','0','0','','chart','admin','2025-11-10 14:39:08','',NULL,'心理测评管理目录'),(2010,'量表管理',2009,1,'scale','psychology/scale/index',NULL,'',1,0,'C','0','0','psychology:scale:list','table','admin','2025-11-10 14:39:08','',NULL,'量表管理菜单'),(2011,'量表查询',2010,1,'','',NULL,'',1,0,'F','0','0','psychology:scale:query','#','admin','2025-11-10 14:39:08','',NULL,''),(2012,'量表新增',2010,2,'','',NULL,'',1,0,'F','0','0','psychology:scale:add','#','admin','2025-11-10 14:39:08','',NULL,''),(2013,'量表修改',2010,3,'','',NULL,'',1,0,'F','0','0','psychology:scale:edit','#','admin','2025-11-10 14:39:08','',NULL,''),(2014,'量表删除',2010,4,'','',NULL,'',1,0,'F','0','0','psychology:scale:remove','#','admin','2025-11-10 14:39:08','',NULL,''),(2015,'题目管理',2009,2,'scale/item','psychology/scale/item',NULL,'',1,0,'C','1','0','psychology:scale:item','form','admin','2025-11-10 14:39:08','',NULL,'题目管理菜单（隐藏）'),(2016,'题目查询',2015,1,'','',NULL,'',1,0,'F','1','0','psychology:scale:item:query','#','admin','2025-11-10 14:39:08','',NULL,''),(2017,'题目新增',2015,2,'','',NULL,'',1,0,'F','1','0','psychology:scale:item:add','#','admin','2025-11-10 14:39:08','',NULL,''),(2018,'题目修改',2015,3,'','',NULL,'',1,0,'F','1','0','psychology:scale:item:edit','#','admin','2025-11-10 14:39:08','',NULL,''),(2019,'题目删除',2015,4,'','',NULL,'',1,0,'F','1','0','psychology:scale:item:remove','#','admin','2025-11-10 14:39:08','',NULL,''),(2020,'因子管理',2009,3,'scale/factor','psychology/scale/factor',NULL,'',1,0,'C','1','0','psychology:scale:factor','list','admin','2025-11-10 14:39:08','',NULL,'因子管理菜单（隐藏）'),(2021,'因子查询',2020,1,'','',NULL,'',1,0,'F','1','0','psychology:scale:factor:query','#','admin','2025-11-10 14:39:08','',NULL,''),(2022,'因子新增',2020,2,'','',NULL,'',1,0,'F','1','0','psychology:scale:factor:add','#','admin','2025-11-10 14:39:08','',NULL,''),(2023,'因子修改',2020,3,'','',NULL,'',1,0,'F','1','0','psychology:scale:factor:edit','#','admin','2025-11-10 14:39:08','',NULL,''),(2024,'因子删除',2020,4,'','',NULL,'',1,0,'F','1','0','psychology:scale:factor:remove','#','admin','2025-11-10 14:39:08','',NULL,''),(2025,'测评管理',2009,4,'assessment','psychology/assessment/index',NULL,'',1,0,'C','0','0','psychology:assessment:list','edit','admin','2025-11-10 14:39:08','',NULL,'测评管理菜单'),(2026,'测评查询',2025,1,'','',NULL,'',1,0,'F','0','0','psychology:assessment:query','#','admin','2025-11-10 14:39:08','',NULL,''),(2027,'开始测评',2025,2,'','',NULL,'',1,0,'F','0','0','psychology:assessment:start','#','admin','2025-11-10 14:39:08','',NULL,''),(2028,'删除测评',2025,3,'','',NULL,'',1,0,'F','0','0','psychology:assessment:remove','#','admin','2025-11-10 14:39:08','',NULL,''),(2029,'报告管理',2009,5,'report','psychology/report/index',NULL,'',1,0,'C','0','0','psychology:report:list','document','admin','2025-11-10 14:39:08','',NULL,'报告管理菜单'),(2030,'报告查询',2029,1,'','',NULL,'',1,0,'F','0','0','psychology:report:query','#','admin','2025-11-10 14:39:08','',NULL,''),(2031,'解释配置',2009,6,'interpretation','psychology/interpretation/index',NULL,'',1,0,'C','0','0','psychology:interpretation:list','config','admin','2025-11-10 14:39:08','',NULL,'解释配置菜单'),(2032,'解释查询',2031,1,'','',NULL,'',1,0,'F','0','0','psychology:interpretation:query','#','admin','2025-11-10 14:39:08','',NULL,''),(2033,'解释新增',2031,2,'','',NULL,'',1,0,'F','0','0','psychology:interpretation:add','#','admin','2025-11-10 14:39:08','',NULL,''),(2034,'解释修改',2031,3,'','',NULL,'',1,0,'F','0','0','psychology:interpretation:edit','#','admin','2025-11-10 14:39:08','',NULL,''),(2035,'解释删除',2031,4,'','',NULL,'',1,0,'F','0','0','psychology:interpretation:remove','#','admin','2025-11-10 14:39:08','',NULL,''),(2036,'用户档案',2009,7,'profile','psychology/profile/index',NULL,'',1,0,'C','0','0','psychology:profile:list','user','admin','2025-11-10 14:39:08','',NULL,'用户档案菜单'),(2037,'档案查询',2036,1,'','',NULL,'',1,0,'F','0','0','psychology:profile:query','#','admin','2025-11-10 14:39:08','',NULL,''),(2038,'档案新增',2036,2,'','',NULL,'',1,0,'F','0','0','psychology:profile:add','#','admin','2025-11-10 14:39:08','',NULL,''),(2039,'档案修改',2036,3,'','',NULL,'',1,0,'F','0','0','psychology:profile:edit','#','admin','2025-11-10 14:39:08','',NULL,''),(2040,'档案删除',2036,4,'','',NULL,'',1,0,'F','0','0','psychology:profile:remove','#','admin','2025-11-10 14:39:08','',NULL,''),(2041,'问卷管理',2009,8,'questionnaire','psychology/questionnaire/index',NULL,'',1,0,'C','0','0','psychology:questionnaire:list','copy','admin','2025-11-10 14:39:08','',NULL,'问卷管理菜单'),(2042,'问卷查询',2041,1,'','',NULL,'',1,0,'F','0','0','psychology:questionnaire:query','#','admin','2025-11-10 14:39:08','',NULL,''),(2043,'问卷新增',2041,2,'','',NULL,'',1,0,'F','0','0','psychology:questionnaire:add','#','admin','2025-11-10 14:39:08','',NULL,''),(2044,'问卷修改',2041,3,'','',NULL,'',1,0,'F','0','0','psychology:questionnaire:edit','#','admin','2025-11-10 14:39:08','',NULL,''),(2045,'问卷删除',2041,4,'','',NULL,'',1,0,'F','0','0','psychology:questionnaire:remove','#','admin','2025-11-10 14:39:08','',NULL,''),(2046,'危机预警管理',2009,9,'warning','psychology/warning/index',NULL,'',1,0,'C','0','0','psychology:warning:list','message','admin','2025-11-10 14:39:08','',NULL,'危机预警管理菜单'),(2047,'预警查询',2046,1,'','',NULL,'',1,0,'F','0','0','psychology:warning:query','#','admin','2025-11-10 14:39:08','',NULL,''),(2048,'预警处理',2046,2,'','',NULL,'',1,0,'F','0','0','psychology:warning:handle','#','admin','2025-11-10 14:39:08','',NULL,''),(2049,'预警解除',2046,3,'','',NULL,'',1,0,'F','0','0','psychology:warning:relieve','#','admin','2025-11-10 14:39:08','',NULL,''),(2050,'预警删除',2046,4,'','',NULL,'',1,0,'F','0','0','psychology:warning:remove','#','admin','2025-11-10 14:39:08','',NULL,''),(2051,'预警规则配置',2009,10,'warning/rule','psychology/warning/rule',NULL,'',1,0,'C','0','0','psychology:warningRule:list','list','admin','2025-11-10 14:39:08','',NULL,'预警规则配置菜单'),(2052,'规则查询',2051,1,'','',NULL,'',1,0,'F','0','0','psychology:warningRule:query','#','admin','2025-11-10 14:39:08','',NULL,''),(2053,'规则新增',2051,2,'','',NULL,'',1,0,'F','0','0','psychology:warningRule:add','#','admin','2025-11-10 14:39:08','',NULL,''),(2054,'规则修改',2051,3,'','',NULL,'',1,0,'F','0','0','psychology:warningRule:edit','#','admin','2025-11-10 14:39:08','',NULL,''),(2055,'规则删除',2051,4,'','',NULL,'',1,0,'F','0','0','psychology:warningRule:remove','#','admin','2025-11-10 14:39:08','',NULL,''),(2056,'二维码管理',2009,11,'qrcode','psychology/qrcode/index',NULL,'',1,0,'C','0','0','psychology:qrcode:list','qrcode','admin','2025-11-10 14:39:08','',NULL,'二维码管理菜单'),(2057,'二维码查询',2056,1,'','',NULL,'',1,0,'F','0','0','psychology:qrcode:query','#','admin','2025-11-10 14:39:08','',NULL,''),(2058,'二维码新增',2056,2,'','',NULL,'',1,0,'F','0','0','psychology:qrcode:add','#','admin','2025-11-10 14:39:08','',NULL,''),(2059,'二维码修改',2056,3,'','',NULL,'',1,0,'F','0','0','psychology:qrcode:edit','#','admin','2025-11-10 14:39:08','',NULL,''),(2060,'二维码删除',2056,4,'','',NULL,'',1,0,'F','0','0','psychology:qrcode:remove','#','admin','2025-11-10 14:39:08','',NULL,''),(2061,'二维码导出',2056,5,'','',NULL,'',1,0,'F','0','0','psychology:qrcode:export','#','admin','2025-11-10 14:39:08','',NULL,''),(2062,'量表权限管理',2009,12,'permission','psychology/permission/index',NULL,'',1,0,'C','0','0','psychology:permission:list','lock','admin','2025-11-10 14:39:08','',NULL,'量表权限管理菜单'),(2063,'权限查询',2062,1,'','',NULL,'',1,0,'F','0','0','psychology:permission:query','#','admin','2025-11-10 14:39:08','',NULL,''),(2064,'权限新增',2062,2,'','',NULL,'',1,0,'F','0','0','psychology:permission:add','#','admin','2025-11-10 14:39:08','',NULL,''),(2065,'权限修改',2062,3,'','',NULL,'',1,0,'F','0','0','psychology:permission:edit','#','admin','2025-11-10 14:39:08','',NULL,''),(2066,'权限删除',2062,4,'','',NULL,'',1,0,'F','0','0','psychology:permission:remove','#','admin','2025-11-10 14:39:08','',NULL,''),(2067,'权限导出',2062,5,'','',NULL,'',1,0,'F','0','0','psychology:permission:export','#','admin','2025-11-10 14:39:08','',NULL,'');
/*!40000 ALTER TABLE `sys_menu` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sys_notice`
--

DROP TABLE IF EXISTS `sys_notice`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sys_notice` (
  `notice_id` int NOT NULL AUTO_INCREMENT COMMENT '公告ID',
  `notice_title` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '公告标题',
  `notice_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '公告类型（1通知 2公告）',
  `notice_content` longblob COMMENT '公告内容',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '公告状态（0正常 1关闭）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`notice_id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='通知公告表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sys_notice`
--

LOCK TABLES `sys_notice` WRITE;
/*!40000 ALTER TABLE `sys_notice` DISABLE KEYS */;
INSERT INTO `sys_notice` VALUES (10,'网站1 首页切换图片','1',_binary '<p><img src=\"/prod-api/profile/upload/2025/10/30/slider_02_20251030193254A013.jpeg\"><img src=\"/prod-api/profile/upload/2025/10/30/slider_03_20251030193300A014.jpeg\"><img src=\"/prod-api/profile/upload/2025/10/30/slider_04_20251030193304A015.jpeg\"><img src=\"/prod-api/profile/upload/2025/10/30/slider_05_20251030193311A016.jpeg\"><img src=\"/prod-api/profile/upload/2025/10/30/slider_06_20251030193322A017.jpeg\"><img src=\"/prod-api/profile/upload/2025/10/30/slider_01_20251030193245A012.png\"></p>','0','admin','2025-10-30 18:22:14','admin1','2025-10-30 19:49:50',NULL),(11,'网站2 首页切换图片','1',_binary '<p><img src=\"/prod-api/profile/upload/2025/10/31/slider_07_20251031094837A001.jpeg\"><img src=\"/prod-api/profile/upload/2025/10/31/slider_08_20251031094841A002.jpeg\"><img src=\"/prod-api/profile/upload/2025/10/31/slider_09_20251031094846A003.jpeg\"><img src=\"/prod-api/profile/upload/2025/10/31/slider_10_20251031094851A004.jpeg\"><img src=\"/prod-api/profile/upload/2025/10/31/slider_11_20251031094857A005.jpeg\"><img src=\"/prod-api/profile/upload/2025/10/31/slider_12_20251031094903A006.jpeg\"></p>','0','admin1','2025-10-30 19:50:09','admin','2025-10-31 09:49:06',NULL);
/*!40000 ALTER TABLE `sys_notice` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sys_oper_log`
--

DROP TABLE IF EXISTS `sys_oper_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sys_oper_log` (
  `oper_id` bigint NOT NULL AUTO_INCREMENT COMMENT '日志主键',
  `title` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '模块标题',
  `business_type` int DEFAULT '0' COMMENT '业务类型（0其它 1新增 2修改 3删除）',
  `method` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '方法名称',
  `request_method` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '请求方式',
  `operator_type` int DEFAULT '0' COMMENT '操作类别（0其它 1后台用户 2手机端用户）',
  `oper_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '操作人员',
  `dept_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '部门名称',
  `oper_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '请求URL',
  `oper_ip` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '主机地址',
  `oper_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '操作地点',
  `oper_param` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '请求参数',
  `json_result` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '返回参数',
  `status` int DEFAULT '0' COMMENT '操作状态（0正常 1异常）',
  `error_msg` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '错误消息',
  `oper_time` datetime DEFAULT NULL COMMENT '操作时间',
  `cost_time` bigint DEFAULT '0' COMMENT '消耗时间',
  PRIMARY KEY (`oper_id`),
  KEY `idx_sys_oper_log_bt` (`business_type`),
  KEY `idx_sys_oper_log_s` (`status`),
  KEY `idx_sys_oper_log_ot` (`oper_time`)
) ENGINE=InnoDB AUTO_INCREMENT=138 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='操作日志记录';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sys_oper_log`
--

LOCK TABLES `sys_oper_log` WRITE;
/*!40000 ALTER TABLE `sys_oper_log` DISABLE KEYS */;
INSERT INTO `sys_oper_log` VALUES (100,'菜单管理',2,'com.ddnai.web.controller.system.SysMenuController.edit()','PUT',1,'admin','研发部门','/system/menu','115.227.113.199','XX XX','{\"children\":[],\"component\":\"system/notice/index\",\"createTime\":\"2025-10-30 15:00:32\",\"icon\":\"message\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuId\":107,\"menuName\":\"网站新闻\",\"menuType\":\"C\",\"orderNum\":8,\"params\":{},\"parentId\":1,\"path\":\"notice\",\"perms\":\"system:notice:list\",\"query\":\"\",\"routeName\":\"\",\"status\":\"0\",\"updateBy\":\"admin\",\"visible\":\"0\"}','{\"msg\":\"操作成功\",\"code\":200}',0,NULL,'2025-10-30 16:45:21',44),(101,'菜单管理',2,'com.ddnai.web.controller.system.SysMenuController.edit()','PUT',1,'admin','研发部门','/system/menu','115.227.113.199','XX XX','{\"children\":[],\"component\":\"\",\"createTime\":\"2025-10-30 15:00:32\",\"icon\":\"#\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuId\":1035,\"menuName\":\"新闻查询\",\"menuType\":\"F\",\"orderNum\":1,\"params\":{},\"parentId\":107,\"path\":\"#\",\"perms\":\"system:notice:query\",\"query\":\"\",\"routeName\":\"\",\"status\":\"0\",\"updateBy\":\"admin\",\"visible\":\"0\"}','{\"msg\":\"操作成功\",\"code\":200}',0,NULL,'2025-10-30 16:45:34',27),(102,'菜单管理',2,'com.ddnai.web.controller.system.SysMenuController.edit()','PUT',1,'admin','研发部门','/system/menu','115.227.113.199','XX XX','{\"children\":[],\"component\":\"\",\"createTime\":\"2025-10-30 15:00:32\",\"icon\":\"#\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuId\":1036,\"menuName\":\"新闻新增\",\"menuType\":\"F\",\"orderNum\":2,\"params\":{},\"parentId\":107,\"path\":\"#\",\"perms\":\"system:notice:add\",\"query\":\"\",\"routeName\":\"\",\"status\":\"0\",\"updateBy\":\"admin\",\"visible\":\"0\"}','{\"msg\":\"操作成功\",\"code\":200}',0,NULL,'2025-10-30 16:45:43',39),(103,'菜单管理',2,'com.ddnai.web.controller.system.SysMenuController.edit()','PUT',1,'admin','研发部门','/system/menu','115.227.113.199','XX XX','{\"children\":[],\"component\":\"\",\"createTime\":\"2025-10-30 15:00:32\",\"icon\":\"#\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuId\":1037,\"menuName\":\"新闻修改\",\"menuType\":\"F\",\"orderNum\":3,\"params\":{},\"parentId\":107,\"path\":\"#\",\"perms\":\"system:notice:edit\",\"query\":\"\",\"routeName\":\"\",\"status\":\"0\",\"updateBy\":\"admin\",\"visible\":\"0\"}','{\"msg\":\"操作成功\",\"code\":200}',0,NULL,'2025-10-30 16:45:47',38),(104,'菜单管理',2,'com.ddnai.web.controller.system.SysMenuController.edit()','PUT',1,'admin','研发部门','/system/menu','115.227.113.199','XX XX','{\"children\":[],\"component\":\"\",\"createTime\":\"2025-10-30 15:00:32\",\"icon\":\"#\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuId\":1038,\"menuName\":\"新闻删除\",\"menuType\":\"F\",\"orderNum\":4,\"params\":{},\"parentId\":107,\"path\":\"#\",\"perms\":\"system:notice:remove\",\"query\":\"\",\"routeName\":\"\",\"status\":\"0\",\"updateBy\":\"admin\",\"visible\":\"0\"}','{\"msg\":\"操作成功\",\"code\":200}',0,NULL,'2025-10-30 16:46:02',26),(105,'菜单管理',2,'com.ddnai.web.controller.system.SysMenuController.edit()','PUT',1,'admin','研发部门','/system/menu','115.227.113.199','XX XX','{\"children\":[],\"createTime\":\"2025-10-30 15:00:32\",\"icon\":\"guide\",\"isCache\":\"0\",\"isFrame\":\"0\",\"menuId\":4,\"menuName\":\"官网\",\"menuType\":\"M\",\"orderNum\":4,\"params\":{},\"parentId\":0,\"path\":\"http://ruoyi.vip\",\"perms\":\"\",\"query\":\"\",\"routeName\":\"\",\"status\":\"0\",\"updateBy\":\"admin\",\"visible\":\"0\"}','{\"msg\":\"操作成功\",\"code\":200}',0,NULL,'2025-10-30 16:47:53',32),(106,'用户管理',2,'com.ddnai.web.controller.system.SysUserController.edit()','PUT',1,'admin','研发部门','/system/user','115.227.113.199','XX XX','{\"admin\":false,\"avatar\":\"\",\"createBy\":\"admin\",\"createTime\":\"2025-10-30 15:00:31\",\"delFlag\":\"0\",\"dept\":{\"ancestors\":\"0,100,101\",\"children\":[],\"deptId\":105,\"deptName\":\"测试部门\",\"leader\":\"若依\",\"orderNum\":3,\"params\":{},\"parentId\":101,\"status\":\"0\"},\"deptId\":105,\"email\":\"admin@ddnai.com\",\"loginDate\":\"2025-10-30 15:00:31\",\"loginIp\":\"127.0.0.1\",\"nickName\":\"外贸\",\"params\":{},\"phonenumber\":\"15666666666\",\"postIds\":[2],\"pwdUpdateDate\":\"2025-10-30 15:00:31\",\"remark\":\"测试员\",\"roleIds\":[2],\"roles\":[{\"admin\":false,\"dataScope\":\"2\",\"deptCheckStrictly\":false,\"flag\":false,\"menuCheckStrictly\":false,\"params\":{},\"roleId\":2,\"roleKey\":\"common\",\"roleName\":\"普通角色\",\"roleSort\":2,\"status\":\"0\"}],\"sex\":\"1\",\"status\":\"0\",\"userId\":2,\"userName\":\"ry\"}','{\"msg\":\"修改用户\'ry\'失败，邮箱账号已存在\",\"code\":500}',0,NULL,'2025-10-30 17:01:15',39),(107,'通知公告',2,'com.ddnai.web.controller.system.SysNoticeController.edit()','PUT',1,'admin','研发部门','/system/notice','115.227.113.199','XX XX','{\"createBy\":\"admin\",\"createTime\":\"2025-10-30 15:00:33\",\"noticeContent\":\"<p>维护内容</p>\",\"noticeId\":2,\"noticeTitle\":\"维护通知：2018-07-01 系统凌晨维护\",\"noticeType\":\"1\",\"params\":{},\"remark\":\"管理员\",\"status\":\"0\",\"updateBy\":\"admin\"}','{\"msg\":\"操作成功\",\"code\":200}',0,NULL,'2025-10-30 17:10:41',31),(108,'通知公告',2,'com.ddnai.web.controller.system.SysNoticeController.edit()','PUT',1,'admin','研发部门','/system/notice','115.227.113.199','XX XX','{\"createBy\":\"admin\",\"createTime\":\"2025-10-30 15:00:33\",\"noticeContent\":\"<p>新版本内容</p>\",\"noticeId\":1,\"noticeTitle\":\"温馨提醒：2018-07-01 新版本发布啦\",\"noticeType\":\"2\",\"params\":{},\"remark\":\"管理员\",\"status\":\"0\",\"updateBy\":\"admin\"}','{\"msg\":\"操作成功\",\"code\":200}',0,NULL,'2025-10-30 17:10:46',14),(109,'用户管理',1,'com.ddnai.web.controller.system.SysUserController.add()','POST',1,'admin','研发部门','/system/user','115.227.113.199','XX XX','{\"admin\":false,\"createBy\":\"admin\",\"deptId\":100,\"nickName\":\"admin1\",\"params\":{},\"phonenumber\":\"13012345678\",\"postIds\":[1],\"roleIds\":[2],\"sex\":\"0\",\"status\":\"0\",\"userId\":100,\"userName\":\"admin1\"}','{\"msg\":\"操作成功\",\"code\":200}',0,NULL,'2025-10-30 17:49:49',460),(110,'角色管理',2,'com.ddnai.web.controller.system.SysRoleController.edit()','PUT',1,'admin','研发部门','/system/role','115.227.113.199','XX XX','{\"admin\":false,\"createTime\":\"2025-10-30 15:00:32\",\"dataScope\":\"2\",\"delFlag\":\"0\",\"deptCheckStrictly\":true,\"flag\":false,\"menuCheckStrictly\":true,\"menuIds\":[1,107,1035,1036,1037,1038],\"params\":{},\"remark\":\"普通角色\",\"roleId\":2,\"roleKey\":\"common\",\"roleName\":\"普通角色\",\"roleSort\":2,\"status\":\"0\",\"updateBy\":\"admin\"}','{\"msg\":\"操作成功\",\"code\":200}',0,NULL,'2025-10-30 17:50:13',122),(111,'通知公告',1,'com.ddnai.web.controller.system.SysNoticeController.add()','POST',1,'admin','研发部门','/system/notice','115.227.113.199','XX XX','{\"createBy\":\"admin\",\"noticeContent\":\"<p><img src=\\\"/prod-api/profile/upload/2025/10/30/slider_01_20251030182157A001.png\\\"><img src=\\\"/prod-api/profile/upload/2025/10/30/slider_02_20251030182204A002.jpeg\\\"></p>\",\"noticeTitle\":\"slider\",\"noticeType\":\"1\",\"params\":{},\"status\":\"0\"}','{\"msg\":\"操作成功\",\"code\":200}',0,NULL,'2025-10-30 18:22:14',50),(112,'通知公告',2,'com.ddnai.web.controller.system.SysNoticeController.edit()','PUT',1,'admin','研发部门','/system/notice','115.227.113.199','XX XX','{\"createBy\":\"admin\",\"createTime\":\"2025-10-30 18:22:14\",\"noticeContent\":\"<p><img src=\\\"/prod-api/profile/upload/2025/10/30/slider_03_20251030182423A003.jpeg\\\"><img src=\\\"/prod-api/profile/upload/2025/10/30/slider_01_20251030182157A001.png\\\"><img src=\\\"/prod-api/profile/upload/2025/10/30/slider_02_20251030182204A002.jpeg\\\"></p>\",\"noticeId\":10,\"noticeTitle\":\"slider\",\"noticeType\":\"1\",\"params\":{},\"status\":\"0\",\"updateBy\":\"admin\"}','{\"msg\":\"操作成功\",\"code\":200}',0,NULL,'2025-10-30 18:24:26',17),(113,'通知公告',2,'com.ddnai.web.controller.system.SysNoticeController.edit()','PUT',1,'admin','研发部门','/system/notice','115.227.113.199','XX XX','{\"createBy\":\"admin\",\"createTime\":\"2025-10-30 18:22:14\",\"noticeContent\":\"<p><img src=\\\"/prod-api/profile/upload/2025/10/30/slider_01_20251030193245A012.png\\\"></p>\",\"noticeId\":10,\"noticeTitle\":\"slider\",\"noticeType\":\"1\",\"params\":{},\"status\":\"0\",\"updateBy\":\"admin\",\"updateTime\":\"2025-10-30 18:24:26\"}','{\"msg\":\"操作成功\",\"code\":200}',0,NULL,'2025-10-30 19:32:47',46),(114,'通知公告',2,'com.ddnai.web.controller.system.SysNoticeController.edit()','PUT',1,'admin','研发部门','/system/notice','115.227.113.199','XX XX','{\"createBy\":\"admin\",\"createTime\":\"2025-10-30 18:22:14\",\"noticeContent\":\"<p><img src=\\\"/prod-api/profile/upload/2025/10/30/slider_02_20251030193254A013.jpeg\\\"><img src=\\\"/prod-api/profile/upload/2025/10/30/slider_03_20251030193300A014.jpeg\\\"><img src=\\\"/prod-api/profile/upload/2025/10/30/slider_04_20251030193304A015.jpeg\\\"><img src=\\\"/prod-api/profile/upload/2025/10/30/slider_05_20251030193311A016.jpeg\\\"><img src=\\\"/prod-api/profile/upload/2025/10/30/slider_06_20251030193322A017.jpeg\\\"><img src=\\\"/prod-api/profile/upload/2025/10/30/slider_01_20251030193245A012.png\\\"></p>\",\"noticeId\":10,\"noticeTitle\":\"slider\",\"noticeType\":\"1\",\"params\":{},\"status\":\"0\",\"updateBy\":\"admin\",\"updateTime\":\"2025-10-30 19:32:47\"}','{\"msg\":\"操作成功\",\"code\":200}',0,NULL,'2025-10-30 19:33:28',19),(115,'用户管理',2,'com.ddnai.web.controller.system.SysUserController.resetPwd()','PUT',1,'admin','研发部门','/system/user/resetPwd','115.227.113.199','XX XX','{\"admin\":false,\"params\":{},\"updateBy\":\"admin\",\"userId\":100}','{\"msg\":\"操作成功\",\"code\":200}',0,NULL,'2025-10-30 19:47:02',135),(116,'用户管理',2,'com.ddnai.web.controller.system.SysUserController.resetPwd()','PUT',1,'admin','研发部门','/system/user/resetPwd','115.227.113.199','XX XX','{\"admin\":false,\"params\":{},\"updateBy\":\"admin\",\"userId\":2}','{\"msg\":\"操作成功\",\"code\":200}',0,NULL,'2025-10-30 19:47:13',98),(117,'用户管理',2,'com.ddnai.web.controller.system.SysUserController.resetPwd()','PUT',1,'admin','研发部门','/system/user/resetPwd','115.227.113.199','XX XX','{\"admin\":false,\"params\":{},\"updateBy\":\"admin\",\"userId\":100}','{\"msg\":\"操作成功\",\"code\":200}',0,NULL,'2025-10-30 19:47:39',96),(118,'个人信息',2,'com.ddnai.web.controller.system.SysProfileController.updateProfile()','PUT',1,'admin','研发部门','/system/user/profile','115.227.113.199','XX XX','{\"admin\":false,\"email\":\"admin@ddnai.com\",\"nickName\":\"管理员\",\"params\":{},\"phonenumber\":\"15888888888\",\"sex\":\"1\"}','{\"msg\":\"操作成功\",\"code\":200}',0,NULL,'2025-10-30 19:48:31',40),(119,'通知公告',3,'com.ddnai.web.controller.system.SysNoticeController.remove()','DELETE',1,'admin1','外贸总部','/system/notice/2','115.227.113.199','XX XX','[2]','{\"msg\":\"操作成功\",\"code\":200}',0,NULL,'2025-10-30 19:49:21',18),(120,'通知公告',3,'com.ddnai.web.controller.system.SysNoticeController.remove()','DELETE',1,'admin1','外贸总部','/system/notice/1','115.227.113.199','XX XX','[1]','{\"msg\":\"操作成功\",\"code\":200}',0,NULL,'2025-10-30 19:49:24',15),(121,'通知公告',2,'com.ddnai.web.controller.system.SysNoticeController.edit()','PUT',1,'admin1','外贸总部','/system/notice','115.227.113.199','XX XX','{\"createBy\":\"admin\",\"createTime\":\"2025-10-30 18:22:14\",\"noticeContent\":\"<p><img src=\\\"/prod-api/profile/upload/2025/10/30/slider_02_20251030193254A013.jpeg\\\"><img src=\\\"/prod-api/profile/upload/2025/10/30/slider_03_20251030193300A014.jpeg\\\"><img src=\\\"/prod-api/profile/upload/2025/10/30/slider_04_20251030193304A015.jpeg\\\"><img src=\\\"/prod-api/profile/upload/2025/10/30/slider_05_20251030193311A016.jpeg\\\"><img src=\\\"/prod-api/profile/upload/2025/10/30/slider_06_20251030193322A017.jpeg\\\"><img src=\\\"/prod-api/profile/upload/2025/10/30/slider_01_20251030193245A012.png\\\"></p>\",\"noticeId\":10,\"noticeTitle\":\"网站1 首页切换图片\",\"noticeType\":\"1\",\"params\":{},\"status\":\"0\",\"updateBy\":\"admin1\",\"updateTime\":\"2025-10-30 19:33:28\"}','{\"msg\":\"操作成功\",\"code\":200}',0,NULL,'2025-10-30 19:49:50',33),(122,'通知公告',1,'com.ddnai.web.controller.system.SysNoticeController.add()','POST',1,'admin1','外贸总部','/system/notice','115.227.113.199','XX XX','{\"createBy\":\"admin1\",\"noticeContent\":\"<p><br></p>\",\"noticeTitle\":\"网站2 首页切换图片\",\"noticeType\":\"1\",\"params\":{},\"status\":\"0\"}','{\"msg\":\"操作成功\",\"code\":200}',0,NULL,'2025-10-30 19:50:09',21),(123,'定时任务',3,'com.ddnai.quartz.controller.SysJobController.remove()','DELETE',1,'admin','研发部门','/monitor/job/3','115.227.113.199','XX XX','[3]','{\"msg\":\"操作成功\",\"code\":200}',0,NULL,'2025-10-30 19:52:39',42),(124,'定时任务',3,'com.ddnai.quartz.controller.SysJobController.remove()','DELETE',1,'admin','研发部门','/monitor/job/2','115.227.113.199','XX XX','[2]','{\"msg\":\"操作成功\",\"code\":200}',0,NULL,'2025-10-30 19:52:41',29),(125,'定时任务',3,'com.ddnai.quartz.controller.SysJobController.remove()','DELETE',1,'admin','研发部门','/monitor/job/1','115.227.113.199','XX XX','[1]','{\"msg\":\"操作成功\",\"code\":200}',0,NULL,'2025-10-30 19:52:45',28),(126,'菜单管理',3,'com.ddnai.web.controller.system.SysMenuController.remove()','DELETE',1,'admin','研发部门','/system/menu/4','115.227.113.199','XX XX','4','{\"msg\":\"操作成功\",\"code\":200}',0,NULL,'2025-10-30 19:53:24',36),(127,'通知公告',2,'com.ddnai.web.controller.system.SysNoticeController.edit()','PUT',1,'admin','研发部门','/system/notice','115.205.193.200','XX XX','{\"createBy\":\"admin1\",\"createTime\":\"2025-10-30 19:50:09\",\"noticeContent\":\"<p><img src=\\\"/prod-api/profile/upload/2025/10/31/slider_07_20251031094837A001.jpeg\\\"><img src=\\\"/prod-api/profile/upload/2025/10/31/slider_08_20251031094841A002.jpeg\\\"><img src=\\\"/prod-api/profile/upload/2025/10/31/slider_09_20251031094846A003.jpeg\\\"><img src=\\\"/prod-api/profile/upload/2025/10/31/slider_10_20251031094851A004.jpeg\\\"><img src=\\\"/prod-api/profile/upload/2025/10/31/slider_11_20251031094857A005.jpeg\\\"><img src=\\\"/prod-api/profile/upload/2025/10/31/slider_12_20251031094903A006.jpeg\\\"></p>\",\"noticeId\":11,\"noticeTitle\":\"网站2 首页切换图片\",\"noticeType\":\"1\",\"params\":{},\"status\":\"0\",\"updateBy\":\"admin\"}','{\"msg\":\"操作成功\",\"code\":200}',0,NULL,'2025-10-31 09:49:07',77),(128,'心理量表',6,'com.ddnai.web.controller.psychology.PsyScaleController.importScaleJson()','POST',1,'admin','研发部门','/psychology/scale/importJson','127.0.0.1','内网IP','{\"scale\":{\"scaleCode\":\"SCL_90\",\"scaleName\":\"症状自评量表SCL-90\",\"scaleEnName\":\"Symptom Checklist 90\",\"scaleType\":\"symptom\",\"scaleVersion\":\"1.0\",\"scaleIntro\":\"SCL-90是一个包含90个项目的症状自评量表，用于评估个体的心理症状水平\",\"scaleDescription\":\"SCL-90量表包含90个项目，涵盖9个症状因子：躯体化、强迫症状、人际关系敏感、抑郁、焦虑、敌对、恐怖、偏执、精神病性。采用5级评分（0-4分），是心理健康评估的重要工具。\",\"itemCount\":90,\"estimatedTime\":30,\"targetPopulation\":\"一般人群\",\"author\":\"Derogatis\",\"source\":\"心理卫生评定量表手册\",\"reference\":\"Derogatis, L. R. (1977). SCL-90: Administration, scoring, and procedures manual. Clinical Psychometric Research.\",\"status\":\"0\",\"sortOrder\":0},\"items\":[{\"item\":{\"itemNumber\":1,\"itemContent\":\"头痛\",\"itemType\":\"single\",\"required\":\"1\",\"reverseScore\":\"0\",\"sortOrder\":1},\"options\":[{\"optionCode\":\"A\",\"optionContent\":\"没有\",\"optionScore\":0,\"sortOrder\":1},{\"optionCode\":\"B\",\"optionContent\":\"很轻\",\"optionScore\":1,\"sortOrder\":2},{\"optionCode\":\"C\",\"optionContent\":\"中等\",\"optionScore\":2,\"sortOrder\":3},{\"optionCode\":\"D\",\"optionContent\":\"偏重\",\"optionScore\":3,\"sortOrder\":4},{\"optionCode\":\"E\",\"optionContent\":\"严重\",\"optionScore\":4,\"sortOrder\":5}]},{\"item\":{\"itemNumber\":2,\"itemContent\":\"神经过敏，心中不踏实\",\"itemType\":\"single\",\"required\":\"1\",\"reverseScore\":\"0\",\"sortOrder\":2},\"options\":[{\"optionCode\":\"A\",\"optionContent\":\"没有\",\"optionScore\":0,\"sortOrder\":1},{\"optionCode\":\"B\",\"optionContent\":\"很轻\",\"optionScore\":1,\"sortOrder\":2},{\"optionCode\":\"C\",\"optionContent\":\"中等\",\"optionScore\":2,\"sortOrder\":3},{\"optionCode\":\"D\",\"optionContent\":\"偏重\",\"optionScore\":3,\"sortOrder\":4},{\"optionCode\":\"E\",\"optionContent\":\"严重\",\"optionScore\":4,\"sortOrder\":5}]},{\"item\":{\"itemNumber\":3,\"itemContent\":\"头脑中有不必要的想法或字句盘旋\",\"itemType\":\"single\",\"required\":\"1\",\"reverseScore\":\"0\",\"sortOrder\":3},\"options\":[{\"optionCode\":\"A\",\"optionContent\":\"没有\",\"optionScore\":0,\"sortOrder\":1},{\"optionCode\":\"B\",\"optionContent\":\"很轻\",\"optionScore\":1,\"sortOrder\":2},{\"optionCode\":\"C\",\"optionContent\":\"中等\",\"optionScore\":2,\"sortOrder\":3},{\"optionCode\":\"D\",\"optionContent\":\"偏重\",\"optionScore\":3,\"sortOrder\":4},{\"optionCode\":\"E\",\"optionContent\":\"严重\",\"optionScore\":4,\"sor','{\"msg\":\"导入失败：量表编码已存在：SCL_90\",\"code\":500}',0,NULL,'2025-11-10 14:40:11',75),(129,'心理量表',3,'com.ddnai.web.controller.psychology.PsyScaleController.remove()','DELETE',1,'admin','研发部门','/psychology/scale/2','127.0.0.1','内网IP','[2]','{\"msg\":\"操作成功\",\"code\":200}',0,NULL,'2025-11-10 14:40:17',36),(130,'心理量表',6,'com.ddnai.web.controller.psychology.PsyScaleController.importScaleJson()','POST',1,'admin','研发部门','/psychology/scale/importJson','127.0.0.1','内网IP','{\"scale\":{\"scaleCode\":\"SCL_90\",\"scaleName\":\"症状自评量表SCL-90\",\"scaleEnName\":\"Symptom Checklist 90\",\"scaleType\":\"symptom\",\"scaleVersion\":\"1.0\",\"scaleIntro\":\"SCL-90是一个包含90个项目的症状自评量表，用于评估个体的心理症状水平\",\"scaleDescription\":\"SCL-90量表包含90个项目，涵盖9个症状因子：躯体化、强迫症状、人际关系敏感、抑郁、焦虑、敌对、恐怖、偏执、精神病性。采用5级评分（0-4分），是心理健康评估的重要工具。\",\"itemCount\":90,\"estimatedTime\":30,\"targetPopulation\":\"一般人群\",\"author\":\"Derogatis\",\"source\":\"心理卫生评定量表手册\",\"reference\":\"Derogatis, L. R. (1977). SCL-90: Administration, scoring, and procedures manual. Clinical Psychometric Research.\",\"status\":\"0\",\"sortOrder\":0},\"items\":[{\"item\":{\"itemNumber\":1,\"itemContent\":\"头痛\",\"itemType\":\"single\",\"required\":\"1\",\"reverseScore\":\"0\",\"sortOrder\":1},\"options\":[{\"optionCode\":\"A\",\"optionContent\":\"没有\",\"optionScore\":0,\"sortOrder\":1},{\"optionCode\":\"B\",\"optionContent\":\"很轻\",\"optionScore\":1,\"sortOrder\":2},{\"optionCode\":\"C\",\"optionContent\":\"中等\",\"optionScore\":2,\"sortOrder\":3},{\"optionCode\":\"D\",\"optionContent\":\"偏重\",\"optionScore\":3,\"sortOrder\":4},{\"optionCode\":\"E\",\"optionContent\":\"严重\",\"optionScore\":4,\"sortOrder\":5}]},{\"item\":{\"itemNumber\":2,\"itemContent\":\"神经过敏，心中不踏实\",\"itemType\":\"single\",\"required\":\"1\",\"reverseScore\":\"0\",\"sortOrder\":2},\"options\":[{\"optionCode\":\"A\",\"optionContent\":\"没有\",\"optionScore\":0,\"sortOrder\":1},{\"optionCode\":\"B\",\"optionContent\":\"很轻\",\"optionScore\":1,\"sortOrder\":2},{\"optionCode\":\"C\",\"optionContent\":\"中等\",\"optionScore\":2,\"sortOrder\":3},{\"optionCode\":\"D\",\"optionContent\":\"偏重\",\"optionScore\":3,\"sortOrder\":4},{\"optionCode\":\"E\",\"optionContent\":\"严重\",\"optionScore\":4,\"sortOrder\":5}]},{\"item\":{\"itemNumber\":3,\"itemContent\":\"头脑中有不必要的想法或字句盘旋\",\"itemType\":\"single\",\"required\":\"1\",\"reverseScore\":\"0\",\"sortOrder\":3},\"options\":[{\"optionCode\":\"A\",\"optionContent\":\"没有\",\"optionScore\":0,\"sortOrder\":1},{\"optionCode\":\"B\",\"optionContent\":\"很轻\",\"optionScore\":1,\"sortOrder\":2},{\"optionCode\":\"C\",\"optionContent\":\"中等\",\"optionScore\":2,\"sortOrder\":3},{\"optionCode\":\"D\",\"optionContent\":\"偏重\",\"optionScore\":3,\"sortOrder\":4},{\"optionCode\":\"E\",\"optionContent\":\"严重\",\"optionScore\":4,\"sor','{\"msg\":\"导入成功，量表ID：13\",\"code\":200}',0,NULL,'2025-11-10 14:40:27',1558),(131,'用户档案',1,'com.ddnai.web.controller.psychology.PsyUserProfileController.add()','POST',1,'admin','研发部门','/psychology/profile','127.0.0.1','内网IP','{\"createBy\":\"admin\",\"params\":{},\"phone\":\"18349855453\",\"profileId\":1,\"profileType\":\"standard\",\"userId\":1,\"userName\":\"会尽快咋收费\"}','{\"msg\":\"操作成功\",\"code\":200}',0,NULL,'2025-11-10 14:40:59',15),(132,'自定义问卷',1,'com.ddnai.web.controller.psychology.PsyQuestionnaireController.add()','POST',1,'admin','研发部门','/psychology/questionnaire','127.0.0.1','内网IP','{\"createBy\":\"admin\",\"itemCount\":0,\"paperType\":\"manual\",\"params\":{},\"questionnaireCode\":\"2332\",\"questionnaireId\":1,\"questionnaireName\":\"阿法迪三\",\"questionnaireType\":\"custom\",\"sortOrder\":0,\"status\":\"0\"}','{\"msg\":\"操作成功\",\"code\":200}',0,NULL,'2025-11-12 10:54:04',222),(133,'问卷题目',1,'com.ddnai.web.controller.psychology.PsyQuestionnaireItemController.add()','POST',1,'admin','研发部门','/psychology/questionnaire/item','127.0.0.1','内网IP','{\"createBy\":\"admin\",\"isRequired\":\"1\",\"itemContent\":\"阿斯蒂芬撒旦法的方式\",\"itemId\":1,\"itemNumber\":1,\"itemType\":\"radio\",\"params\":{},\"questionnaireId\":1,\"score\":0,\"sortOrder\":0}','{\"msg\":\"操作成功\",\"code\":200}',0,NULL,'2025-11-12 10:54:17',16),(134,'问卷选项',1,'com.ddnai.web.controller.psychology.PsyQuestionnaireOptionController.add()','POST',1,'admin','研发部门','/psychology/questionnaire/option','127.0.0.1','内网IP','{\"createBy\":\"admin\",\"isCorrect\":\"0\",\"itemId\":1,\"optionCode\":\"A\",\"optionContent\":\"阿萨德噶事范德萨说的发\",\"optionId\":1,\"optionScore\":0,\"params\":{},\"sortOrder\":0}','{\"msg\":\"操作成功\",\"code\":200}',0,NULL,'2025-11-12 10:54:25',13),(135,'问卷选项',1,'com.ddnai.web.controller.psychology.PsyQuestionnaireOptionController.add()','POST',1,'admin','研发部门','/psychology/questionnaire/option','127.0.0.1','内网IP','{\"createBy\":\"admin\",\"isCorrect\":\"0\",\"itemId\":1,\"optionCode\":\"B\",\"optionContent\":\"阿斯蒂芬三撒地方\",\"optionId\":2,\"optionScore\":0,\"params\":{},\"sortOrder\":1}','{\"msg\":\"操作成功\",\"code\":200}',0,NULL,'2025-11-12 10:54:33',7),(136,'问卷选项',1,'com.ddnai.web.controller.psychology.PsyQuestionnaireOptionController.add()','POST',1,'admin','研发部门','/psychology/questionnaire/option','127.0.0.1','内网IP','{\"createBy\":\"admin\",\"isCorrect\":\"1\",\"itemId\":1,\"optionCode\":\"C\",\"optionContent\":\"sfd adffafasd \",\"optionId\":3,\"optionScore\":1,\"params\":{},\"sortOrder\":2}','{\"msg\":\"操作成功\",\"code\":200}',0,NULL,'2025-11-12 10:54:44',9),(137,'自定义问卷',2,'com.ddnai.web.controller.psychology.PsyQuestionnaireController.edit()','PUT',1,'admin','研发部门','/psychology/questionnaire','127.0.0.1','内网IP','{\"createBy\":\"admin\",\"createTime\":\"2025-11-12 10:54:04\",\"estimatedTime\":1,\"itemCount\":1,\"paperType\":\"manual\",\"params\":{},\"passScore\":0,\"questionnaireCode\":\"2332\",\"questionnaireId\":1,\"questionnaireName\":\"阿法迪三\",\"questionnaireType\":\"custom\",\"sortOrder\":0,\"status\":\"0\",\"totalScore\":0,\"updateBy\":\"admin\"}','{\"msg\":\"操作成功\",\"code\":200}',0,NULL,'2025-11-12 10:55:29',16);
/*!40000 ALTER TABLE `sys_oper_log` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sys_post`
--

DROP TABLE IF EXISTS `sys_post`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sys_post` (
  `post_id` bigint NOT NULL AUTO_INCREMENT COMMENT '岗位ID',
  `post_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '岗位编码',
  `post_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '岗位名称',
  `post_sort` int NOT NULL COMMENT '显示顺序',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '状态（0正常 1停用）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`post_id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='岗位信息表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sys_post`
--

LOCK TABLES `sys_post` WRITE;
/*!40000 ALTER TABLE `sys_post` DISABLE KEYS */;
INSERT INTO `sys_post` VALUES (1,'ceo','董事长',1,'0','admin','2025-10-30 15:00:32','',NULL,''),(2,'se','项目经理',2,'0','admin','2025-10-30 15:00:32','',NULL,''),(3,'hr','人力资源',3,'0','admin','2025-10-30 15:00:32','',NULL,''),(4,'user','普通员工',4,'0','admin','2025-10-30 15:00:32','',NULL,'');
/*!40000 ALTER TABLE `sys_post` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sys_role`
--

DROP TABLE IF EXISTS `sys_role`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sys_role` (
  `role_id` bigint NOT NULL AUTO_INCREMENT COMMENT '角色ID',
  `role_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色名称',
  `role_key` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色权限字符串',
  `role_sort` int NOT NULL COMMENT '显示顺序',
  `data_scope` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '1' COMMENT '数据范围（1：全部数据权限 2：自定数据权限 3：本部门数据权限 4：本部门及以下数据权限）',
  `menu_check_strictly` tinyint(1) DEFAULT '1' COMMENT '菜单树选择项是否关联显示',
  `dept_check_strictly` tinyint(1) DEFAULT '1' COMMENT '部门树选择项是否关联显示',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色状态（0正常 1停用）',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志（0代表存在 2代表删除）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`role_id`)
) ENGINE=InnoDB AUTO_INCREMENT=100 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='角色信息表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sys_role`
--

LOCK TABLES `sys_role` WRITE;
/*!40000 ALTER TABLE `sys_role` DISABLE KEYS */;
INSERT INTO `sys_role` VALUES (1,'超级管理员','admin',1,'1',1,1,'0','0','admin','2025-10-30 15:00:32','',NULL,'超级管理员'),(2,'普通角色','common',2,'2',1,1,'0','0','admin','2025-10-30 15:00:32','admin','2025-10-30 17:50:13','普通角色');
/*!40000 ALTER TABLE `sys_role` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sys_role_dept`
--

DROP TABLE IF EXISTS `sys_role_dept`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sys_role_dept` (
  `role_id` bigint NOT NULL COMMENT '角色ID',
  `dept_id` bigint NOT NULL COMMENT '部门ID',
  PRIMARY KEY (`role_id`,`dept_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='角色和部门关联表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sys_role_dept`
--

LOCK TABLES `sys_role_dept` WRITE;
/*!40000 ALTER TABLE `sys_role_dept` DISABLE KEYS */;
INSERT INTO `sys_role_dept` VALUES (2,100),(2,101),(2,105);
/*!40000 ALTER TABLE `sys_role_dept` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sys_role_menu`
--

DROP TABLE IF EXISTS `sys_role_menu`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sys_role_menu` (
  `role_id` bigint NOT NULL COMMENT '角色ID',
  `menu_id` bigint NOT NULL COMMENT '菜单ID',
  PRIMARY KEY (`role_id`,`menu_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='角色和菜单关联表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sys_role_menu`
--

LOCK TABLES `sys_role_menu` WRITE;
/*!40000 ALTER TABLE `sys_role_menu` DISABLE KEYS */;
INSERT INTO `sys_role_menu` VALUES (1,107),(1,2001),(1,2002),(1,2003),(1,2010),(1,2011),(1,2012),(1,2013),(1,2014),(1,2015),(1,2016),(1,2017),(1,2018),(1,2019),(1,2020),(1,2021),(1,2022),(1,2023),(1,2024),(1,2025),(1,2026),(1,2027),(1,2028),(1,2029),(1,2030),(1,2031),(1,2032),(1,2033),(1,2034),(1,2035),(1,2036),(1,2037),(1,2038),(1,2039),(1,2040),(1,2041),(1,2042),(1,2043),(1,2044),(1,2045),(1,2046),(1,2047),(1,2048),(1,2049),(1,2050),(1,2051),(2,1),(2,107),(2,1035),(2,1036),(2,1037),(2,1038);
/*!40000 ALTER TABLE `sys_role_menu` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sys_user`
--

DROP TABLE IF EXISTS `sys_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sys_user` (
  `user_id` bigint NOT NULL AUTO_INCREMENT COMMENT '用户ID',
  `dept_id` bigint DEFAULT NULL COMMENT '部门ID',
  `user_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户账号',
  `nick_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户昵称',
  `user_type` varchar(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '00' COMMENT '用户类型（00系统用户）',
  `email` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '用户邮箱',
  `phonenumber` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '手机号码',
  `sex` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '用户性别（0男 1女 2未知）',
  `avatar` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '头像地址',
  `password` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '密码',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '账号状态（0正常 1停用）',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志（0代表存在 2代表删除）',
  `login_ip` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '最后登录IP',
  `login_date` datetime DEFAULT NULL COMMENT '最后登录时间',
  `pwd_update_date` datetime DEFAULT NULL COMMENT '密码最后更新时间',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=101 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='用户信息表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sys_user`
--

LOCK TABLES `sys_user` WRITE;
/*!40000 ALTER TABLE `sys_user` DISABLE KEYS */;
INSERT INTO `sys_user` VALUES (1,103,'admin','管理员','00','admin@ddnai.com','15888888888','1','','$2a$10$Wa9dl8j9O3ihGnlko055R.Jn7BrsB0.Dt38jY2Gd2HgcZHRolgN26','0','0','127.0.0.1','2025-11-12 09:05:08','2025-10-30 15:00:31','admin','2025-10-30 15:00:31','','2025-10-30 19:48:31','管理员'),(2,105,'ry','测试员','00','admin@ddnai.com','15666666666','1','','$2a$10$SeKorFaVHGlcb2DKfmDDHOdfXiw3tDFzpqiedwlS.qhjarFHsf/VG','0','0','127.0.0.1','2025-10-30 15:00:31','2025-10-30 19:47:13','admin','2025-10-30 15:00:31','','2025-10-30 19:47:13','测试员'),(100,100,'admin1','编辑','00','','13012345678','0','','$2a$10$Lq/u9HuP1QBOuvhU7Fyog.WBAYIqYceg6SEgoXF6owRSs6/95wrIG','0','0','114.216.62.231','2025-10-31 15:13:08','2025-10-30 19:47:39','admin','2025-10-30 17:49:48','','2025-10-30 19:47:39',NULL);
/*!40000 ALTER TABLE `sys_user` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sys_user_post`
--

DROP TABLE IF EXISTS `sys_user_post`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sys_user_post` (
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `post_id` bigint NOT NULL COMMENT '岗位ID',
  PRIMARY KEY (`user_id`,`post_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='用户与岗位关联表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sys_user_post`
--

LOCK TABLES `sys_user_post` WRITE;
/*!40000 ALTER TABLE `sys_user_post` DISABLE KEYS */;
INSERT INTO `sys_user_post` VALUES (1,1),(2,2),(100,1);
/*!40000 ALTER TABLE `sys_user_post` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sys_user_role`
--

DROP TABLE IF EXISTS `sys_user_role`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sys_user_role` (
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `role_id` bigint NOT NULL COMMENT '角色ID',
  PRIMARY KEY (`user_id`,`role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='用户和角色关联表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sys_user_role`
--

LOCK TABLES `sys_user_role` WRITE;
/*!40000 ALTER TABLE `sys_user_role` DISABLE KEYS */;
INSERT INTO `sys_user_role` VALUES (1,1),(2,2),(100,2);
/*!40000 ALTER TABLE `sys_user_role` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping routines for database 'ry_news'
--
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2025-11-12 15:28:14
