-- MySQL dump 10.13  Distrib 8.2.0, for Linux (x86_64)
--
-- Host: localhost    Database: risk_control_platform
-- ------------------------------------------------------
-- Server version	8.2.0

/*!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 `accident_report`
--

DROP TABLE IF EXISTS `accident_report`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `accident_report` (
  `accident_id` bigint NOT NULL AUTO_INCREMENT COMMENT '事故ID',
  `accident_no` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '事故编号',
  `accident_time` datetime NOT NULL COMMENT '事故时间',
  `accident_location` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '事故地点',
  `accident_level` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '事故等级(字典: accident_level)',
  `accident_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '事故类型(字典: accident_type)',
  `accident_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '事故名称',
  `involved_persons` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '涉及人员',
  `death_count` int DEFAULT '0' COMMENT '死亡人数',
  `injury_count` int DEFAULT '0' COMMENT '受伤人数',
  `accident_brief` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '事故简要经过',
  `cause_analysis` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '初步原因分析',
  `reporter` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '上报人',
  `scene_photos` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '现场照片(逗号分隔)',
  `process_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '状态(0调查中 1已结束 2待考核)',
  `status` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '状态(0正常 1停用)',
  `del_flag` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志(0存在 1删除)',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`accident_id`),
  UNIQUE KEY `uk_accident_no` (`accident_no`),
  KEY `idx_accident_level` (`accident_level`),
  KEY `idx_accident_type` (`accident_type`),
  KEY `idx_process_status` (`process_status`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='事故上报表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `accident_report`
--

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

--
-- Table structure for table `audit_person_change`
--

DROP TABLE IF EXISTS `audit_person_change`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `audit_person_change` (
  `change_id` bigint NOT NULL AUTO_INCREMENT COMMENT '变动ID',
  `person_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '姓名',
  `dept_id` bigint NOT NULL COMMENT '部门ID',
  `dept_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '部门名称',
  `origin_post` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '原岗位',
  `change_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '变动类型(字典: audit_change_type)',
  `new_post` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '新岗位',
  `new_dept_id` bigint DEFAULT NULL COMMENT '调入部门ID',
  `new_dept_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '调入部门名称',
  `change_date` date NOT NULL COMMENT '变动日期',
  `leave_date` date DEFAULT NULL COMMENT '离职日期',
  `audit_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '审计状态(0待审计 1已完成)',
  `audit_files` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '审计文件(逗号分隔)',
  `status` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '状态(0正常 1停用)',
  `del_flag` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志(0存在 1删除)',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`change_id`),
  KEY `idx_dept_id` (`dept_id`),
  KEY `idx_change_type` (`change_type`),
  KEY `idx_audit_status` (`audit_status`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='审计-人员变动表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `audit_person_change`
--

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

--
-- Table structure for table `danger_source`
--

DROP TABLE IF EXISTS `danger_source`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `danger_source` (
  `source_id` bigint NOT NULL AUTO_INCREMENT COMMENT '危险源ID',
  `source_no` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '危险源编号(系统自动生成)',
  `source_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '危险源名称',
  `source_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '危险源类型(字典: danger_source_type)',
  `location` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '位置',
  `possible_harm` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '可能危害',
  `prevention_method` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '防控方式',
  `report_time` date NOT NULL COMMENT '上报时间',
  `status` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '状态(0正常 1停用)',
  `del_flag` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志(0存在 1删除)',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`source_id`),
  UNIQUE KEY `uk_source_no` (`source_no`),
  KEY `idx_source_type` (`source_type`),
  KEY `idx_create_time` (`create_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='危险源表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `danger_source`
--

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

--
-- Table structure for table `equipment_maintenance`
--

DROP TABLE IF EXISTS `equipment_maintenance`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `equipment_maintenance` (
  `maintenance_id` bigint NOT NULL AUTO_INCREMENT COMMENT '维护ID',
  `equipment_id` bigint NOT NULL COMMENT '设备ID',
  `start_time` datetime DEFAULT NULL COMMENT '维护开始时间',
  `end_time` datetime DEFAULT NULL COMMENT '维护结束时间',
  `maintain_user` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '维护人员',
  `site_user` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '现场人员',
  `maintain_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '维护状态(0待维护 1维护中 2已维护)',
  `photo_urls` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '照片(逗号分隔)',
  `status` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '状态(0正常 1停用)',
  `del_flag` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志(0存在 1删除)',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`maintenance_id`),
  KEY `idx_equipment_id` (`equipment_id`),
  KEY `idx_maintain_status` (`maintain_status`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='设备维护记录表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `equipment_maintenance`
--

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

--
-- Table structure for table `flow_category`
--

DROP TABLE IF EXISTS `flow_category`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `flow_category` (
  `category_id` bigint NOT NULL COMMENT '流程分类ID',
  `tenant_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '000000' COMMENT '租户编号',
  `parent_id` bigint DEFAULT '0' COMMENT '父流程分类id',
  `ancestors` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '祖级列表',
  `category_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '流程分类名称',
  `order_num` int DEFAULT '0' COMMENT '显示顺序',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '0' COMMENT '删除标志（0代表存在 1代表删除）',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`category_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='流程分类';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `flow_category`
--

LOCK TABLES `flow_category` WRITE;
/*!40000 ALTER TABLE `flow_category` DISABLE KEYS */;
INSERT INTO `flow_category` VALUES (100,'000000',0,'0','OA审批',0,'0',103,1,'2026-06-10 19:14:54',NULL,NULL),(101,'000000',100,'0,100','假勤管理',0,'0',103,1,'2026-06-10 19:14:54',NULL,NULL),(102,'000000',100,'0,100','人事管理',1,'0',103,1,'2026-06-10 19:14:54',NULL,NULL),(103,'000000',101,'0,100,101','请假',0,'0',103,1,'2026-06-10 19:14:54',NULL,NULL),(104,'000000',101,'0,100,101','出差',1,'0',103,1,'2026-06-10 19:14:54',NULL,NULL),(105,'000000',101,'0,100,101','加班',2,'0',103,1,'2026-06-10 19:14:54',NULL,NULL),(106,'000000',101,'0,100,101','换班',3,'0',103,1,'2026-06-10 19:14:54',NULL,NULL),(107,'000000',101,'0,100,101','外出',4,'0',103,1,'2026-06-10 19:14:54',NULL,NULL),(108,'000000',102,'0,100,102','转正',1,'0',103,1,'2026-06-10 19:14:54',NULL,NULL),(109,'000000',102,'0,100,102','离职',2,'0',103,1,'2026-06-10 19:14:54',NULL,NULL);
/*!40000 ALTER TABLE `flow_category` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `flow_definition`
--

DROP TABLE IF EXISTS `flow_definition`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `flow_definition` (
  `id` bigint NOT NULL COMMENT '主键id',
  `flow_code` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '流程编码',
  `flow_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '流程名称',
  `model_value` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'CLASSICS' COMMENT '设计器模型（CLASSICS经典模型 MIMIC仿钉钉模型）',
  `category` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '流程类别',
  `version` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '流程版本',
  `is_publish` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否发布（0未发布 1已发布 9失效）',
  `form_custom` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'N' COMMENT '审批表单是否自定义（Y是 N否）',
  `form_path` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '审批表单路径',
  `activity_status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '流程激活状态（0挂起 1激活）',
  `listener_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '监听器类型',
  `listener_path` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '监听器路径',
  `ext` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务详情 存业务表对象json字符串',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '创建人',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '更新人',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '0' COMMENT '删除标志',
  `tenant_id` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '租户id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='流程定义表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `flow_definition`
--

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

--
-- Table structure for table `flow_his_task`
--

DROP TABLE IF EXISTS `flow_his_task`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `flow_his_task` (
  `id` bigint NOT NULL COMMENT '主键id',
  `definition_id` bigint NOT NULL COMMENT '对应flow_definition表的id',
  `instance_id` bigint NOT NULL COMMENT '对应flow_instance表的id',
  `task_id` bigint NOT NULL COMMENT '对应flow_task表的id',
  `node_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '开始节点编码',
  `node_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '开始节点名称',
  `node_type` tinyint(1) DEFAULT NULL COMMENT '开始节点类型（0开始节点 1中间节点 2结束节点 3互斥网关 4并行网关）',
  `target_node_code` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '目标节点编码',
  `target_node_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '结束节点名称',
  `approver` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '审批人',
  `cooperate_type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '协作方式(1审批 2转办 3委派 4会签 5票签 6加签 7减签)',
  `collaborator` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '协作人',
  `skip_type` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '流转类型（PASS通过 REJECT退回 NONE无动作）',
  `flow_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '流程状态（0待提交 1审批中 2审批通过 4终止 5作废 6撤销 8已完成 9已退回 10失效 11拿回）',
  `form_custom` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'N' COMMENT '审批表单是否自定义（Y是 N否）',
  `form_path` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '审批表单路径',
  `message` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '审批意见',
  `variable` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '任务变量',
  `ext` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '业务详情 存业务表对象json字符串',
  `create_time` datetime DEFAULT NULL COMMENT '任务开始时间',
  `update_time` datetime DEFAULT NULL COMMENT '审批完成时间',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '0' COMMENT '删除标志',
  `tenant_id` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '租户id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='历史任务记录表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `flow_his_task`
--

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

--
-- Table structure for table `flow_instance`
--

DROP TABLE IF EXISTS `flow_instance`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `flow_instance` (
  `id` bigint NOT NULL COMMENT '主键id',
  `definition_id` bigint NOT NULL COMMENT '对应flow_definition表的id',
  `business_id` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '业务id',
  `node_type` tinyint(1) NOT NULL COMMENT '节点类型（0开始节点 1中间节点 2结束节点 3互斥网关 4并行网关）',
  `node_code` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '流程节点编码',
  `node_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '流程节点名称',
  `variable` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '任务变量',
  `flow_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '流程状态（0待提交 1审批中 2审批通过 4终止 5作废 6撤销 8已完成 9已退回 10失效 11拿回）',
  `activity_status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '流程激活状态（0挂起 1激活）',
  `def_json` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '流程定义json',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '创建人',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '更新人',
  `ext` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '扩展字段，预留给业务系统使用',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '0' COMMENT '删除标志',
  `tenant_id` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '租户id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='流程实例表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `flow_instance`
--

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

--
-- Table structure for table `flow_instance_biz_ext`
--

DROP TABLE IF EXISTS `flow_instance_biz_ext`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `flow_instance_biz_ext` (
  `id` bigint NOT NULL COMMENT '主键id',
  `tenant_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '000000' COMMENT '租户编号',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `business_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务编码',
  `business_title` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务标题',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '0' COMMENT '删除标志（0代表存在 1代表删除）',
  `instance_id` bigint DEFAULT NULL COMMENT '流程实例Id',
  `business_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务Id',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='流程实例业务扩展表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `flow_instance_biz_ext`
--

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

--
-- Table structure for table `flow_node`
--

DROP TABLE IF EXISTS `flow_node`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `flow_node` (
  `id` bigint NOT NULL COMMENT '主键id',
  `node_type` tinyint(1) NOT NULL COMMENT '节点类型（0开始节点 1中间节点 2结束节点 3互斥网关 4并行网关）',
  `definition_id` bigint NOT NULL COMMENT '流程定义id',
  `node_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '流程节点编码',
  `node_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '流程节点名称',
  `permission_flag` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '权限标识（权限类型:权限标识，可以多个，用@@隔开)',
  `node_ratio` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '流程签署比例值',
  `coordinate` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '坐标',
  `any_node_skip` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '任意结点跳转',
  `listener_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '监听器类型',
  `listener_path` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '监听器路径',
  `form_custom` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'N' COMMENT '审批表单是否自定义（Y是 N否）',
  `form_path` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '审批表单路径',
  `version` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '版本',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '创建人',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '更新人',
  `ext` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '节点扩展属性',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '0' COMMENT '删除标志',
  `tenant_id` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '租户id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='流程节点表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `flow_node`
--

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

--
-- Table structure for table `flow_skip`
--

DROP TABLE IF EXISTS `flow_skip`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `flow_skip` (
  `id` bigint NOT NULL COMMENT '主键id',
  `definition_id` bigint NOT NULL COMMENT '流程定义id',
  `now_node_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '当前流程节点的编码',
  `now_node_type` tinyint(1) DEFAULT NULL COMMENT '当前节点类型（0开始节点 1中间节点 2结束节点 3互斥网关 4并行网关）',
  `next_node_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '下一个流程节点的编码',
  `next_node_type` tinyint(1) DEFAULT NULL COMMENT '下一个节点类型（0开始节点 1中间节点 2结束节点 3互斥网关 4并行网关）',
  `skip_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '跳转名称',
  `skip_type` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '跳转类型（PASS审批通过 REJECT退回）',
  `skip_condition` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '跳转条件',
  `coordinate` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '坐标',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '创建人',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '更新人',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '0' COMMENT '删除标志',
  `tenant_id` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '租户id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='节点跳转关联表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `flow_skip`
--

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

--
-- Table structure for table `flow_spel`
--

DROP TABLE IF EXISTS `flow_spel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `flow_spel` (
  `id` bigint NOT NULL COMMENT '主键id',
  `component_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '组件名称',
  `method_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '方法名',
  `method_params` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '参数',
  `view_spel` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '预览spel表达式',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '备注',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '0' COMMENT '状态（0正常 1停用）',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '0' COMMENT '删除标志',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='流程spel表达式定义表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `flow_spel`
--

LOCK TABLES `flow_spel` WRITE;
/*!40000 ALTER TABLE `flow_spel` DISABLE KEYS */;
INSERT INTO `flow_spel` VALUES (1,'spelRuleComponent','selectDeptLeaderById','initiatorDeptId','#{@spelRuleComponent.selectDeptLeaderById(#initiatorDeptId)}','根据部门id获取部门负责人','0','0',103,1,'2026-06-10 19:14:54',1,'2026-06-10 19:14:54'),(2,NULL,NULL,'initiator','${initiator}','流程发起人','0','0',103,1,'2026-06-10 19:14:54',1,'2026-06-10 19:14:54');
/*!40000 ALTER TABLE `flow_spel` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `flow_task`
--

DROP TABLE IF EXISTS `flow_task`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `flow_task` (
  `id` bigint NOT NULL COMMENT '主键id',
  `definition_id` bigint NOT NULL COMMENT '对应flow_definition表的id',
  `instance_id` bigint NOT NULL COMMENT '对应flow_instance表的id',
  `node_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '节点编码',
  `node_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '节点名称',
  `node_type` tinyint(1) NOT NULL COMMENT '节点类型（0开始节点 1中间节点 2结束节点 3互斥网关 4并行网关）',
  `flow_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '流程状态（0待提交 1审批中 2审批通过 4终止 5作废 6撤销 8已完成 9已退回 10失效 11拿回）',
  `form_custom` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'N' COMMENT '审批表单是否自定义（Y是 N否）',
  `form_path` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '审批表单路径',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '创建人',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '更新人',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '0' COMMENT '删除标志',
  `tenant_id` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '租户id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='待办任务表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `flow_task`
--

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

--
-- Table structure for table `flow_user`
--

DROP TABLE IF EXISTS `flow_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `flow_user` (
  `id` bigint NOT NULL COMMENT '主键id',
  `type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '人员类型（1待办任务的审批人权限 2待办任务的转办人权限 3待办任务的委托人权限）',
  `processed_by` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '权限人',
  `associated` bigint NOT NULL COMMENT '任务表id',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `create_by` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '创建人',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '创建人',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '0' COMMENT '删除标志',
  `tenant_id` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '租户id',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `user_processed_type` (`processed_by`,`type`),
  KEY `user_associated` (`associated`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='流程用户表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `flow_user`
--

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

--
-- 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 COMMENT '编号',
  `data_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' 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树表操作）',
  `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_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL 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 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_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL 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 `night_safety`
--

DROP TABLE IF EXISTS `night_safety`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `night_safety` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'ä¸»é”®ID',
  `safety_no` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'é˜²èŒƒç¼–å·',
  `safety_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'é˜²èŒƒåç§°',
  `safety_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'é˜²èŒƒç±»åž‹ï¼ˆå·¡æ£€/æŽ’æŸ¥/å€¼å®ˆï¼‰',
  `safety_area` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'é˜²èŒƒåŒºåŸŸ',
  `responsible_person` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'è´£ä»»äºº',
  `safety_date` datetime DEFAULT NULL COMMENT 'é˜²èŒƒæ—¥æœŸ',
  `safety_time` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'é˜²èŒƒæ—¶é—´',
  `safety_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'å¾…æ‰§è¡Œ' COMMENT 'é˜²èŒƒçŠ¶æ€ï¼ˆå¾…æ‰§è¡Œ/æ‰§è¡Œä¸­/å·²å®Œæˆï¼‰',
  `safety_result` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'é˜²èŒƒç»“æžœï¼ˆæ­£å¸¸/å¼‚å¸¸ï¼‰',
  `abnormal_desc` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'å¼‚å¸¸æè¿°',
  `photo_urls` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'ç…§ç‰‡URLï¼ˆå¤šå¼ ä»¥é€—å·åˆ†éš”ï¼‰',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'å¤‡æ³¨',
  `create_dept` bigint DEFAULT NULL COMMENT 'åˆ›å»ºéƒ¨é—¨',
  `create_by` bigint DEFAULT NULL COMMENT 'åˆ›å»ºè€…',
  `create_time` datetime DEFAULT NULL COMMENT 'åˆ›å»ºæ—¶é—´',
  `update_by` bigint DEFAULT NULL COMMENT 'æ›´æ–°è€…',
  `update_time` datetime DEFAULT NULL COMMENT 'æ›´æ–°æ—¶é—´',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT 'åˆ é™¤æ ‡å¿—ï¼ˆ0ä»£è¡¨å­˜åœ¨ 2ä»£è¡¨åˆ é™¤ï¼‰',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `idx_safety_no` (`safety_no`) USING BTREE,
  KEY `idx_safety_type` (`safety_type`) USING BTREE,
  KEY `idx_safety_status` (`safety_status`) USING BTREE,
  KEY `idx_safety_date` (`safety_date`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='å¤œé—´å®‰å…¨é˜²èŒƒè¡¨';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `night_safety`
--

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

--
-- Table structure for table `notice_announcement`
--

DROP TABLE IF EXISTS `notice_announcement`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `notice_announcement` (
  `notice_id` bigint NOT NULL AUTO_INCREMENT COMMENT '公告ID',
  `notice_title` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '公告标题',
  `notice_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '1' COMMENT '公告类型(字典: notice_type)',
  `notice_content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '公告内容',
  `publish_status` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '发布状态(0未发布 1已发布)',
  `publish_time` datetime DEFAULT NULL COMMENT '发布时间',
  `publish_user` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '发布人',
  `status` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '状态(0正常 1停用)',
  `del_flag` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志(0存在 1删除)',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`notice_id`),
  KEY `idx_publish_status` (`publish_status`),
  KEY `idx_create_time` (`create_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='通知公告表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `notice_announcement`
--

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

--
-- Table structure for table `patrol_point`
--

DROP TABLE IF EXISTS `patrol_point`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `patrol_point` (
  `point_id` bigint NOT NULL AUTO_INCREMENT COMMENT '巡检点ID',
  `point_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '巡检点名称',
  `responsible_user` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '责任人',
  `area` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '位置区域',
  `address` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '详细地址',
  `latitude` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '纬度',
  `longitude` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '经度',
  `nfc_tag` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'NFC标签',
  `check_times` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '每日打卡时间(JSON)',
  `check_items` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '打卡项目列表(JSON)',
  `status` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '状态(0正常 1停用)',
  `del_flag` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志(0存在 1删除)',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`point_id`),
  KEY `idx_responsible_user` (`responsible_user`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='巡检打卡点表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `patrol_point`
--

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

--
-- Table structure for table `patrol_record`
--

DROP TABLE IF EXISTS `patrol_record`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `patrol_record` (
  `record_id` bigint NOT NULL AUTO_INCREMENT COMMENT '记录ID',
  `point_id` bigint NOT NULL COMMENT '巡检点ID',
  `point_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '巡检点名称',
  `check_user` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '打卡人',
  `check_time` datetime NOT NULL COMMENT '打卡时间',
  `check_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '打卡状态(0已打卡 1未打卡)',
  `check_result` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '打卡结果(0正常 1异常)',
  `abnormal_reason` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '异常原因',
  `item_results` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '检查项结果(JSON)',
  `status` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '状态(0正常 1停用)',
  `del_flag` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志(0存在 1删除)',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`record_id`),
  KEY `idx_point_id` (`point_id`),
  KEY `idx_check_time` (`check_time`),
  KEY `idx_check_user` (`check_user`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='巡检打卡记录表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `patrol_record`
--

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

--
-- Table structure for table `person_info`
--

DROP TABLE IF EXISTS `person_info`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `person_info` (
  `person_id` bigint NOT NULL AUTO_INCREMENT COMMENT '人员ID',
  `person_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '人员类型(字典: person_type)',
  `person_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '姓名',
  `id_card` varchar(18) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '身份证号',
  `age` int DEFAULT NULL COMMENT '年龄',
  `work_store_id` bigint DEFAULT NULL COMMENT '工作门店ID',
  `work_store_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '工作门店名称',
  `insurance_status` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '保险状态(0未投保 1已投保)',
  `insurance_expire_date` date DEFAULT NULL COMMENT '保险有效期',
  `certificates` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '岗位证书(JSON数组)',
  `status` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '状态(0正常 1停用)',
  `del_flag` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志(0存在 1删除)',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`person_id`),
  KEY `idx_person_type` (`person_type`),
  KEY `idx_work_store_id` (`work_store_id`),
  KEY `idx_insurance_status` (`insurance_status`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='人员信息表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `person_info`
--

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

--
-- Table structure for table `public_opinion`
--

DROP TABLE IF EXISTS `public_opinion`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `public_opinion` (
  `opinion_id` bigint NOT NULL AUTO_INCREMENT COMMENT '舆情ID',
  `opinion_title` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '舆情标题',
  `source` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '来源(字典: opinion_source)',
  `publish_time` datetime NOT NULL COMMENT '发布时间',
  `risk_level` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '风险等级(字典: opinion_risk_level)',
  `responsible_user` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '负责人',
  `opinion_link` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '舆情链接',
  `opinion_content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '舆情内容',
  `process_suggest` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '处置建议',
  `process_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '处理状态(0待处理 1处理中 2已处理)',
  `process_result` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '处理结果',
  `process_time` datetime DEFAULT NULL COMMENT '处理时间',
  `process_user` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '处理人',
  `status` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '状态(0正常 1停用)',
  `del_flag` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志(0存在 1删除)',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`opinion_id`),
  KEY `idx_risk_level` (`risk_level`),
  KEY `idx_process_status` (`process_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 `public_opinion`
--

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

--
-- Table structure for table `risk_accident`
--

DROP TABLE IF EXISTS `risk_accident`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `risk_accident` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `tenant_id` varchar(20) COLLATE utf8mb4_general_ci DEFAULT '000000' COMMENT '租户编号',
  `accident_code` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '事故编号',
  `accident_title` varchar(200) COLLATE utf8mb4_general_ci NOT NULL COMMENT '事故标题',
  `accident_type` varchar(50) COLLATE utf8mb4_general_ci NOT NULL COMMENT '事故类型',
  `accident_level` varchar(20) COLLATE utf8mb4_general_ci NOT NULL COMMENT '事故等级',
  `store_id` bigint DEFAULT NULL COMMENT '门店ID',
  `store_name` varchar(100) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '门店名称',
  `accident_location` varchar(500) COLLATE utf8mb4_general_ci NOT NULL COMMENT '事故地点',
  `accident_time` datetime NOT NULL COMMENT '事故时间',
  `accident_cause` text COLLATE utf8mb4_general_ci COMMENT '事故原因',
  `accident_desc` text COLLATE utf8mb4_general_ci COMMENT '事故描述',
  `death_count` int DEFAULT '0' COMMENT '死亡人数',
  `injury_count` int DEFAULT '0' COMMENT '受伤人数',
  `loss_amount` decimal(15,2) DEFAULT '0.00' COMMENT '损失金额',
  `reporter_id` bigint DEFAULT NULL COMMENT '上报人ID',
  `reporter_name` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '上报人',
  `report_time` datetime NOT NULL COMMENT '上报时间',
  `handle_status` varchar(20) COLLATE utf8mb4_general_ci DEFAULT '调查中' COMMENT '处理状态',
  `handler_id` bigint DEFAULT NULL COMMENT '处理人ID',
  `handler_name` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '处理人',
  `handle_measures` text COLLATE utf8mb4_general_ci COMMENT '处理措施',
  `investigation_result` text COLLATE utf8mb4_general_ci COMMENT '调查结果',
  `improvement_measures` text COLLATE utf8mb4_general_ci COMMENT '改进措施',
  `remark` varchar(500) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  `participants` varchar(500) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '涉及人员',
  `photo_list` text COLLATE utf8mb4_general_ci COMMENT '现场照片(JSON数组)',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `del_flag` char(1) COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_accident_code` (`accident_code`),
  KEY `idx_accident_type` (`accident_type`),
  KEY `idx_accident_level` (`accident_level`),
  KEY `idx_handle_status` (`handle_status`),
  KEY `idx_accident_time` (`accident_time`)
) ENGINE=InnoDB AUTO_INCREMENT=2071227132013293571 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='事故上报表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `risk_accident`
--

LOCK TABLES `risk_accident` WRITE;
/*!40000 ALTER TABLE `risk_accident` DISABLE KEYS */;
INSERT INTO `risk_accident` VALUES (2071227132013293570,'000000','AC20260628214004315','test','人身伤害','特别重大',NULL,NULL,'test','2026-06-28 21:39:30','test','test',0,1,0.00,NULL,'test','2026-06-28 21:40:04','待处理',NULL,NULL,NULL,NULL,NULL,NULL,'test','[\"http://106.55.100.207:9000/rjzytest/risk/2026/06/28/43656b6bc5df447ba08976859bec7116.jpg\"]',103,1,'2026-06-28 21:40:04',1,'2026-06-28 21:40:04','0');
/*!40000 ALTER TABLE `risk_accident` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `risk_audit_file`
--

DROP TABLE IF EXISTS `risk_audit_file`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `risk_audit_file` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `tenant_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '000000' COMMENT '租户编号',
  `file_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '文件编号',
  `change_id` bigint DEFAULT NULL COMMENT '关联人员变动ID',
  `file_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '文件名',
  `file_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '文件类型',
  `file_url` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '文件URL',
  `file_size` bigint DEFAULT NULL COMMENT '文件大小(字节)',
  `upload_by` bigint DEFAULT NULL COMMENT '上传人ID',
  `upload_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '上传人',
  `upload_time` datetime NOT NULL COMMENT '上传时间',
  `audit_result` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '审核结果',
  `audit_opinion` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '审核意见',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志',
  PRIMARY KEY (`id`),
  KEY `idx_change_id` (`change_id`),
  KEY `idx_file_type` (`file_type`)
) ENGINE=InnoDB AUTO_INCREMENT=2071209348910931970 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='审计文件表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `risk_audit_file`
--

LOCK TABLES `risk_audit_file` WRITE;
/*!40000 ALTER TABLE `risk_audit_file` DISABLE KEYS */;
INSERT INTO `risk_audit_file` VALUES (2071209348910931969,'000000',NULL,2071209263955304449,'3b4d3f8f672e59b96d68e6cca01c4038.jpg','调令','http://106.55.100.207:9000/rjzytest/risk/2026/06/28/0e78ae146339413bb6a738949b5b349e.jpg',NULL,NULL,'疯狂的狮子Li','2026-06-28 20:29:25',NULL,NULL,'test',103,1,'2026-06-28 20:29:25',1,'2026-06-28 20:29:25','0');
/*!40000 ALTER TABLE `risk_audit_file` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `risk_blacklist`
--

DROP TABLE IF EXISTS `risk_blacklist`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `risk_blacklist` (
  `black_id` bigint NOT NULL AUTO_INCREMENT COMMENT '黑名单ID',
  `black_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '黑名单类型（1IP 2手机号 3设备 4用户 5邮箱）',
  `black_value` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '黑名单值',
  `black_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '黑名单名称',
  `reason` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '加入原因',
  `source` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '来源',
  `expire_time` datetime DEFAULT NULL COMMENT '过期时间',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '状态（0正常 1停用）',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志（0代表存在 1代表删除）',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`black_id`),
  UNIQUE KEY `uk_black_value` (`black_type`,`black_value`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='黑名单表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `risk_blacklist`
--

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

--
-- Table structure for table `risk_case`
--

DROP TABLE IF EXISTS `risk_case`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `risk_case` (
  `case_id` bigint NOT NULL AUTO_INCREMENT COMMENT '案例ID',
  `case_no` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '案例编号',
  `case_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '案例名称',
  `case_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '案例类型',
  `case_desc` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '案例描述',
  `event_id` bigint DEFAULT NULL COMMENT '关联事件ID',
  `event_no` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '关联事件编号',
  `user_id` bigint DEFAULT NULL COMMENT '用户ID',
  `user_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '用户名称',
  `risk_level` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '风险等级',
  `risk_score` decimal(10,2) DEFAULT '0.00' COMMENT '风险分值',
  `hit_rules` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '命中规则',
  `case_result` varchar(20) 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已处理 2已归档）',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志（0代表存在 1代表删除）',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`case_id`),
  UNIQUE KEY `uk_case_no` (`case_no`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='风控案例表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `risk_case`
--

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

--
-- Table structure for table `risk_danger_source`
--

DROP TABLE IF EXISTS `risk_danger_source`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `risk_danger_source` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `tenant_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '000000' COMMENT '租户编号',
  `source_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '危险源编号',
  `source_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '危险源名称',
  `source_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '危险源类型',
  `risk_level` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '风险等级',
  `store_id` bigint DEFAULT NULL COMMENT '门店ID',
  `store_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '门店名称',
  `location` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '位置',
  `source_desc` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '危险源描述',
  `control_measures` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '控制措施',
  `report_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '上报时间',
  `responsible_id` bigint DEFAULT NULL COMMENT '负责人ID',
  `responsible_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '负责人',
  `status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '正常' COMMENT '状态',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_source_code` (`source_code`),
  KEY `idx_source_type` (`source_type`),
  KEY `idx_risk_level` (`risk_level`),
  KEY `idx_status` (`status`)
) ENGINE=InnoDB AUTO_INCREMENT=2069721094625697794 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='危险源表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `risk_danger_source`
--

LOCK TABLES `risk_danger_source` WRITE;
/*!40000 ALTER TABLE `risk_danger_source` DISABLE KEYS */;
INSERT INTO `risk_danger_source` VALUES (2069721094625697793,'000000',NULL,'test1','electrical','high',NULL,NULL,'1','1','1','2026-06-01 00:00:00',NULL,NULL,'正常',NULL,103,1,'2026-06-24 17:55:37',1,'2026-06-24 17:55:37','0');
/*!40000 ALTER TABLE `risk_danger_source` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `risk_equipment_maintenance`
--

DROP TABLE IF EXISTS `risk_equipment_maintenance`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `risk_equipment_maintenance` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `tenant_id` varchar(20) DEFAULT '000000' COMMENT '租户编号',
  `equipment_id` bigint NOT NULL COMMENT '设备ID',
  `equipment_code` varchar(50) DEFAULT NULL COMMENT '设备编号',
  `equipment_name` varchar(100) DEFAULT NULL COMMENT '设备名称',
  `maintenance_status` varchar(20) DEFAULT '待维护' COMMENT '维护状态(待维护/维护中/已维护)',
  `plan_start_time` datetime DEFAULT NULL COMMENT '预计开始时间',
  `plan_end_time` datetime DEFAULT NULL COMMENT '预计结束时间',
  `actual_start_time` datetime DEFAULT NULL COMMENT '实际开始时间',
  `actual_end_time` datetime DEFAULT NULL COMMENT '实际结束时间',
  `maintainer_name` varchar(50) DEFAULT NULL COMMENT '维护人员',
  `site_name` varchar(50) DEFAULT NULL COMMENT '现场人员',
  `maintenance_content` text COMMENT '维护内容',
  `maintenance_result` text COMMENT '维护结果',
  `photo_list` text COMMENT '维护照片(JSON数组)',
  `remark` varchar(500) DEFAULT NULL COMMENT '备注',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `del_flag` char(1) DEFAULT '0' COMMENT '删除标志',
  PRIMARY KEY (`id`),
  KEY `idx_equipment_id` (`equipment_id`),
  KEY `idx_maintenance_status` (`maintenance_status`),
  KEY `idx_plan_start_time` (`plan_start_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='特种设备维护记录表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `risk_equipment_maintenance`
--

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

--
-- Table structure for table `risk_event`
--

DROP TABLE IF EXISTS `risk_event`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `risk_event` (
  `event_id` bigint NOT NULL AUTO_INCREMENT COMMENT '事件ID',
  `event_no` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '事件编号',
  `event_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '事件类型',
  `event_source` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '事件来源',
  `user_id` bigint DEFAULT NULL COMMENT '用户ID',
  `user_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '用户名称',
  `device_id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '设备ID',
  `ip_address` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'IP地址',
  `location` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '地理位置',
  `event_data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '事件数据',
  `risk_level` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '风险等级',
  `risk_score` decimal(10,2) DEFAULT '0.00' COMMENT '风险分值',
  `hit_rules` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '命中规则',
  `action_taken` varchar(20) 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已处理 2已忽略）',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  `event_time` datetime DEFAULT NULL COMMENT '事件发生时间',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志（0代表存在 1代表删除）',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`event_id`),
  UNIQUE KEY `uk_event_no` (`event_no`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='风控事件表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `risk_event`
--

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

--
-- Table structure for table `risk_hidden_danger`
--

DROP TABLE IF EXISTS `risk_hidden_danger`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `risk_hidden_danger` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `tenant_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '000000' COMMENT '租户编号',
  `danger_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '隐患编号',
  `danger_title` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '隐患标题',
  `danger_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '隐患类型',
  `danger_level` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '风险等级',
  `danger_source` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '隐患来源',
  `danger_desc` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '隐患描述',
  `store_id` bigint DEFAULT NULL COMMENT '门店ID',
  `store_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '门店名称',
  `discoverer_id` bigint DEFAULT NULL COMMENT '发现人ID',
  `discoverer_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '发现人',
  `discover_time` datetime NOT NULL COMMENT '发现时间',
  `handle_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '待处理' COMMENT '处理状态',
  `handler_id` bigint DEFAULT NULL COMMENT '处理人ID',
  `handler_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '处理人',
  `handle_time` datetime DEFAULT NULL COMMENT '处理时间',
  `handle_result` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '处理结果',
  `handle_measures` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '处理措施',
  `photo_list` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '现场照片(JSON数组)',
  `finish_time` datetime DEFAULT NULL COMMENT '完成时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_danger_code` (`danger_code`),
  KEY `idx_danger_type` (`danger_type`),
  KEY `idx_danger_level` (`danger_level`),
  KEY `idx_handle_status` (`handle_status`),
  KEY `idx_discover_time` (`discover_time`)
) ENGINE=InnoDB AUTO_INCREMENT=2069711738676977666 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='安全隐患表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `risk_hidden_danger`
--

LOCK TABLES `risk_hidden_danger` WRITE;
/*!40000 ALTER TABLE `risk_hidden_danger` DISABLE KEYS */;
INSERT INTO `risk_hidden_danger` VALUES (2069642022096740353,'000000',NULL,'1','门店安全隐患','中风险','1','1',NULL,NULL,NULL,NULL,'2026-06-10 00:00:00','待处理',NULL,NULL,NULL,NULL,NULL,'[]',NULL,NULL,103,1,'2026-06-24 12:41:25',1,'2026-06-24 12:41:25','0'),(2069711738676977665,'000000',NULL,'test1','物流安全隐患','高风险','1','1',NULL,NULL,NULL,NULL,'2026-06-24 00:00:00','待处理',NULL,NULL,NULL,NULL,NULL,'[\"http://106.55.100.207:9000/rjzytest/risk/2026/06/24/3bc313d42fa24f49876fc469f280d15c.png\"]',NULL,NULL,103,1,'2026-06-24 17:18:27',1,'2026-06-24 17:18:27','0');
/*!40000 ALTER TABLE `risk_hidden_danger` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `risk_inspection_item`
--

DROP TABLE IF EXISTS `risk_inspection_item`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `risk_inspection_item` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `tenant_id` varchar(20) COLLATE utf8mb4_general_ci DEFAULT '000000' COMMENT '租户编号',
  `item_name` varchar(200) COLLATE utf8mb4_general_ci NOT NULL COMMENT '项目名称',
  `item_type` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '项目类型',
  `item_desc` text COLLATE utf8mb4_general_ci COMMENT '项目描述',
  `standard_value` varchar(200) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '标准值',
  `sort_order` int DEFAULT '0' COMMENT '排序',
  `status` varchar(20) COLLATE utf8mb4_general_ci DEFAULT '启用' COMMENT '状态',
  `remark` varchar(500) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `del_flag` char(1) COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志',
  PRIMARY KEY (`id`),
  KEY `idx_item_type` (`item_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='巡检项目表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `risk_inspection_item`
--

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

--
-- Table structure for table `risk_inspection_record`
--

DROP TABLE IF EXISTS `risk_inspection_record`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `risk_inspection_record` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `tenant_id` varchar(20) COLLATE utf8mb4_general_ci DEFAULT '000000' COMMENT '租户编号',
  `record_code` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '记录编号',
  `task_id` bigint NOT NULL COMMENT '任务ID',
  `task_name` varchar(200) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '任务名称',
  `store_id` bigint DEFAULT NULL COMMENT '门店ID',
  `store_name` varchar(100) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '门店名称',
  `check_in_time` datetime NOT NULL COMMENT '签到时间',
  `check_out_time` datetime DEFAULT NULL COMMENT '签退时间',
  `check_in_location` varchar(200) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '签到位置',
  `check_in_lng` decimal(10,6) DEFAULT NULL COMMENT '签到经度',
  `check_in_lat` decimal(10,6) DEFAULT NULL COMMENT '签到纬度',
  `check_in_photo` varchar(500) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '签到照片',
  `check_out_location` varchar(200) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '签退位置',
  `check_out_lng` decimal(10,6) DEFAULT NULL COMMENT '签退经度',
  `check_out_lat` decimal(10,6) DEFAULT NULL COMMENT '签退纬度',
  `check_out_photo` varchar(500) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '签退照片',
  `inspector_id` bigint DEFAULT NULL COMMENT '巡检人ID',
  `inspector_name` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '巡检人',
  `record_status` varchar(20) COLLATE utf8mb4_general_ci DEFAULT '进行中' COMMENT '记录状态',
  `result` varchar(20) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '打卡结果(0正常 1异常)',
  `problem_count` int DEFAULT '0' COMMENT '问题数',
  `total_count` int DEFAULT '0' COMMENT '总数',
  `remark` varchar(500) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `del_flag` char(1) COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_record_code` (`record_code`),
  KEY `idx_task_id` (`task_id`),
  KEY `idx_inspector_id` (`inspector_id`),
  KEY `idx_check_in_time` (`check_in_time`),
  KEY `idx_record_status` (`record_status`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='巡检记录表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `risk_inspection_record`
--

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

--
-- Table structure for table `risk_inspection_record_detail`
--

DROP TABLE IF EXISTS `risk_inspection_record_detail`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `risk_inspection_record_detail` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `tenant_id` varchar(20) COLLATE utf8mb4_general_ci DEFAULT '000000' COMMENT '租户编号',
  `record_id` bigint NOT NULL COMMENT '记录ID',
  `item_id` bigint DEFAULT NULL COMMENT '项目ID',
  `item_name` varchar(200) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '项目名称',
  `check_value` varchar(500) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '检查值',
  `is_normal` char(1) COLLATE utf8mb4_general_ci DEFAULT '1' COMMENT '是否正常(0否 1是)',
  `problem_desc` text COLLATE utf8mb4_general_ci COMMENT '问题描述',
  `photo_list` text COLLATE utf8mb4_general_ci COMMENT '照片(JSON数组)',
  `check_time` datetime DEFAULT NULL COMMENT '检查时间',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `del_flag` char(1) COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志',
  PRIMARY KEY (`id`),
  KEY `idx_record_id` (`record_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 `risk_inspection_record_detail`
--

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

--
-- Table structure for table `risk_inspection_task`
--

DROP TABLE IF EXISTS `risk_inspection_task`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `risk_inspection_task` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `tenant_id` varchar(20) COLLATE utf8mb4_general_ci DEFAULT '000000' COMMENT '租户编号',
  `task_code` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '任务编号',
  `task_name` varchar(200) COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务名称',
  `task_type` varchar(50) COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务类型',
  `store_id` bigint DEFAULT NULL COMMENT '门店ID',
  `store_name` varchar(100) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '门店名称',
  `plan_start_time` datetime NOT NULL COMMENT '计划开始时间',
  `plan_end_time` datetime NOT NULL COMMENT '计划结束时间',
  `actual_start_time` datetime DEFAULT NULL COMMENT '实际开始时间',
  `actual_end_time` datetime DEFAULT NULL COMMENT '实际结束时间',
  `inspector_id` bigint DEFAULT NULL COMMENT '巡检人ID',
  `inspector_name` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '巡检人',
  `task_status` varchar(20) COLLATE utf8mb4_general_ci DEFAULT '待执行' COMMENT '任务状态',
  `item_count` int DEFAULT '0' COMMENT '项目数',
  `completed_count` int DEFAULT '0' COMMENT '已完成数',
  `pass_rate` decimal(5,2) DEFAULT '0.00' COMMENT '合格率',
  `remark` varchar(500) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  `location` varchar(200) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '位置区域',
  `lng` decimal(10,6) DEFAULT NULL COMMENT '经度',
  `lat` decimal(10,6) DEFAULT NULL COMMENT '纬度',
  `cycle` varchar(20) COLLATE utf8mb4_general_ci DEFAULT '每日' COMMENT '巡检周期(每日/每周/每月)',
  `scan_enabled` char(1) COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '是否开启扫码打卡(0否 1是)',
  `check_method` varchar(20) COLLATE utf8mb4_general_ci DEFAULT '常规' COMMENT '打卡方式(常规/扫码)',
  `qr_code` varchar(200) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '巡检点二维码内容(扫码打卡校验用)',
  `auditor_id` bigint DEFAULT NULL COMMENT '审核人ID',
  `auditor_name` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '审核人',
  `day_of_week` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '执行星期(每周模式,逗号分隔)',
  `day_of_month` varchar(100) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '执行日期(每月模式,逗号分隔)',
  `time_slot` varchar(100) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '执行时间段(每日模式)',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `del_flag` char(1) COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_task_code` (`task_code`),
  KEY `idx_task_type` (`task_type`),
  KEY `idx_task_status` (`task_status`),
  KEY `idx_inspector_id` (`inspector_id`),
  KEY `idx_plan_start_time` (`plan_start_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='巡检任务表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `risk_inspection_task`
--

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

--
-- Table structure for table `risk_personnel`
--

DROP TABLE IF EXISTS `risk_personnel`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `risk_personnel` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `tenant_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '000000' COMMENT '租户编号',
  `personnel_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '人员编号',
  `personnel_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '姓名',
  `gender` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '性别(0男 1女)',
  `id_card` varchar(18) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '身份证号',
  `age` int DEFAULT NULL COMMENT '年龄',
  `phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '手机号',
  `email` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '邮箱',
  `store_id` bigint DEFAULT NULL COMMENT '门店ID',
  `store_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '门店名称',
  `department` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '部门',
  `position` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '岗位',
  `insurance_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '未投保' COMMENT '保险状态',
  `insurance_start_date` datetime DEFAULT NULL COMMENT '保险有效期开始',
  `insurance_expire_date` datetime DEFAULT NULL COMMENT '保险有效期结束',
  `job_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '工种',
  `entry_date` date DEFAULT NULL COMMENT '入职日期',
  `leave_date` date DEFAULT NULL COMMENT '离职日期',
  `status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '在职' COMMENT '状态',
  `health_status` varchar(50) 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(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '紧急联系电话',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_personnel_code` (`personnel_code`),
  KEY `idx_personnel_name` (`personnel_name`),
  KEY `idx_store_id` (`store_id`),
  KEY `idx_status` (`status`)
) ENGINE=InnoDB AUTO_INCREMENT=2071215722969554947 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='人员信息表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `risk_personnel`
--

LOCK TABLES `risk_personnel` WRITE;
/*!40000 ALTER TABLE `risk_personnel` DISABLE KEYS */;
INSERT INTO `risk_personnel` VALUES (2071201482850254850,'000000','P20260628195809251','test1','0','320320199001010001',36,NULL,NULL,NULL,'test',NULL,NULL,'1',NULL,NULL,'1',NULL,NULL,'在职',NULL,NULL,NULL,NULL,NULL,103,1,'2026-06-28 19:58:09',1,'2026-06-28 19:58:09','0'),(2071215722969554946,'000000','P20260628205444897','test2','0','111111200001011111',26,NULL,NULL,NULL,'1',NULL,NULL,'1',NULL,NULL,'1',NULL,NULL,'在职',NULL,NULL,NULL,NULL,NULL,103,1,'2026-06-28 20:54:44',1,'2026-06-28 20:54:44','0');
/*!40000 ALTER TABLE `risk_personnel` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `risk_personnel_cert`
--

DROP TABLE IF EXISTS `risk_personnel_cert`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `risk_personnel_cert` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `tenant_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '000000' COMMENT '租户编号',
  `personnel_id` bigint NOT NULL COMMENT '人员ID',
  `personnel_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '人员姓名',
  `cert_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '证书类型',
  `cert_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '证书名称',
  `cert_no` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '证书编号',
  `issue_org` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '颁发机构',
  `issue_date` date DEFAULT NULL COMMENT '颁发日期',
  `expire_date` date DEFAULT NULL COMMENT '过期日期',
  `cert_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '有效' COMMENT '证书状态',
  `cert_file` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '证书附件',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志',
  PRIMARY KEY (`id`),
  KEY `idx_personnel_id` (`personnel_id`),
  KEY `idx_cert_type` (`cert_type`),
  KEY `idx_cert_status` (`cert_status`)
) ENGINE=InnoDB AUTO_INCREMENT=2071201482929946626 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='人员证书表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `risk_personnel_cert`
--

LOCK TABLES `risk_personnel_cert` WRITE;
/*!40000 ALTER TABLE `risk_personnel_cert` DISABLE KEYS */;
INSERT INTO `risk_personnel_cert` VALUES (2071201482929946625,'000000',2071201482850254850,NULL,'1','1',NULL,NULL,NULL,NULL,'有效','http://106.55.100.207:9000/rjzytest/risk/2026/06/28/d88d983811b640e693530d93efe41fc5.jpeg',NULL,103,1,'2026-06-28 19:58:09',1,'2026-06-28 19:58:09','0');
/*!40000 ALTER TABLE `risk_personnel_cert` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `risk_personnel_change`
--

DROP TABLE IF EXISTS `risk_personnel_change`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `risk_personnel_change` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `tenant_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '000000' COMMENT '租户编号',
  `change_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '变动编号',
  `personnel_id` bigint NOT NULL COMMENT '人员ID',
  `personnel_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '人员姓名',
  `change_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '变动类型',
  `change_reason` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '变动原因',
  `change_date` date NOT NULL COMMENT '变动日期',
  `leave_date` date DEFAULT NULL COMMENT '离职日期',
  `before_store_id` bigint DEFAULT NULL COMMENT '变动前门店ID',
  `before_store_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '变动前门店',
  `before_dept` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '变动前部门',
  `before_position` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '变动前岗位',
  `after_store_id` bigint DEFAULT NULL COMMENT '变动后门店ID',
  `after_store_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '变动后门店',
  `after_dept` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '变动后部门',
  `after_position` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '变动后岗位',
  `handler_id` bigint DEFAULT NULL COMMENT '经办人ID',
  `handler_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '经办人',
  `audit_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '待审核' COMMENT '审核状态',
  `auditor_id` bigint DEFAULT NULL COMMENT '审核人ID',
  `auditor_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '审核人',
  `audit_time` datetime DEFAULT NULL COMMENT '审核时间',
  `audit_opinion` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '审核意见',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_change_code` (`change_code`),
  KEY `idx_personnel_id` (`personnel_id`),
  KEY `idx_change_type` (`change_type`),
  KEY `idx_audit_status` (`audit_status`)
) ENGINE=InnoDB AUTO_INCREMENT=2071209263955304450 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='人员变动表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `risk_personnel_change`
--

LOCK TABLES `risk_personnel_change` WRITE;
/*!40000 ALTER TABLE `risk_personnel_change` DISABLE KEYS */;
INSERT INTO `risk_personnel_change` VALUES (2071209263955304449,'000000',NULL,2071201482850254850,'test1','调任','test','2026-06-28',NULL,NULL,NULL,'test','1',NULL,NULL,'深圳总公司','test',NULL,'','待审核',NULL,NULL,NULL,NULL,NULL,103,1,'2026-06-28 20:29:04',1,'2026-06-28 20:29:04','0');
/*!40000 ALTER TABLE `risk_personnel_change` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `risk_public_opinion`
--

DROP TABLE IF EXISTS `risk_public_opinion`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `risk_public_opinion` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `tenant_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '000000' COMMENT '租户编号',
  `opinion_title` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '舆情标题',
  `source` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '舆情来源',
  `opinion_link` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '舆情链接',
  `opinion_content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '舆情内容',
  `publish_time` datetime NOT NULL COMMENT '发布时间',
  `risk_level` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '风险等级(重大/较大/一般)',
  `handle_time` datetime DEFAULT NULL COMMENT '处理时间',
  `handle_result` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '处理结果',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志',
  `responsible_person` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '负责人',
  `disposal_suggestion` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '处置建议',
  `status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '待处理' COMMENT '状态(待处理/处理中/已处理)',
  PRIMARY KEY (`id`),
  KEY `idx_publish_time` (`publish_time`)
) ENGINE=InnoDB AUTO_INCREMENT=2069712896980164610 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='舆情表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `risk_public_opinion`
--

LOCK TABLES `risk_public_opinion` WRITE;
/*!40000 ALTER TABLE `risk_public_opinion` DISABLE KEYS */;
INSERT INTO `risk_public_opinion` VALUES (2069712896980164609,'000000','test1','微博','','1','2026-06-23 00:00:00','重大',NULL,NULL,NULL,103,1,'2026-06-24 17:23:03',1,'2026-06-24 17:23:03','0','','','待处理');
/*!40000 ALTER TABLE `risk_public_opinion` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `risk_rule`
--

DROP TABLE IF EXISTS `risk_rule`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `risk_rule` (
  `rule_id` bigint NOT NULL AUTO_INCREMENT COMMENT '规则ID',
  `rule_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '规则名称',
  `rule_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '规则编码',
  `rule_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '规则类型（1交易规则 2登录规则 3设备规则 4行为规则）',
  `rule_desc` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '规则描述',
  `rule_script` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '规则脚本/条件',
  `risk_level` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '风险等级（1低风险 2中风险 3高风险 4极高风险）',
  `rule_score` decimal(10,2) DEFAULT '0.00' COMMENT '规则分值',
  `action_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '触发动作（1预警 2拦截 3人工审核 4记录日志）',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '规则状态（0正常 1停用）',
  `priority` int DEFAULT '0' COMMENT '优先级',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志（0代表存在 1代表删除）',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`rule_id`),
  UNIQUE KEY `uk_rule_code` (`rule_code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='风控规则表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `risk_rule`
--

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

--
-- Table structure for table `risk_score`
--

DROP TABLE IF EXISTS `risk_score`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `risk_score` (
  `score_id` bigint NOT NULL AUTO_INCREMENT COMMENT '评分ID',
  `score_no` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '评分编号',
  `user_id` bigint DEFAULT NULL COMMENT '用户ID',
  `user_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '用户名称',
  `score_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '评分类型',
  `total_score` decimal(10,2) DEFAULT '0.00' COMMENT '总分',
  `base_score` decimal(10,2) DEFAULT '0.00' COMMENT '基础分',
  `rule_score` decimal(10,2) DEFAULT '0.00' COMMENT '规则分',
  `behavior_score` decimal(10,2) DEFAULT '0.00' COMMENT '行为分',
  `credit_score` decimal(10,2) DEFAULT '0.00' COMMENT '信用分',
  `risk_level` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '风险等级',
  `evaluation` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '评估说明',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '状态（0正常 1失效）',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  `evaluate_time` datetime DEFAULT NULL COMMENT '评估时间',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志（0代表存在 1代表删除）',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`score_id`),
  UNIQUE KEY `uk_score_no` (`score_no`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='风险评分表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `risk_score`
--

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

--
-- Table structure for table `risk_special_equipment`
--

DROP TABLE IF EXISTS `risk_special_equipment`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `risk_special_equipment` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `tenant_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '000000' COMMENT '租户编号',
  `equipment_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '设备编号',
  `equipment_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '设备名称',
  `equipment_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '设备类型',
  `model` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '型号',
  `specification` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '规格',
  `manufacturer` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '制造商',
  `manufacture_date` date DEFAULT NULL COMMENT '出厂日期',
  `purchase_date` date DEFAULT NULL COMMENT '采购日期',
  `store_id` bigint DEFAULT NULL COMMENT '门店ID',
  `store_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '门店名称',
  `location` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '位置',
  `photo_list` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '设备照片(JSON数组)',
  `install_date` date DEFAULT NULL COMMENT '安装日期',
  `use_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '在用' COMMENT '使用状态',
  `inspection_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '未检' COMMENT '检验状态',
  `next_inspection_date` date DEFAULT NULL COMMENT '下次检验日期',
  `responsible_id` bigint DEFAULT NULL COMMENT '负责人ID',
  `responsible_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '负责人',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_equipment_code` (`equipment_code`),
  KEY `idx_equipment_type` (`equipment_type`),
  KEY `idx_use_status` (`use_status`),
  KEY `idx_inspection_status` (`inspection_status`)
) ENGINE=InnoDB AUTO_INCREMENT=2069712807448551427 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='特种设备表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `risk_special_equipment`
--

LOCK TABLES `risk_special_equipment` WRITE;
/*!40000 ALTER TABLE `risk_special_equipment` DISABLE KEYS */;
INSERT INTO `risk_special_equipment` VALUES (2069712807448551426,'000000',NULL,'test1','电梯',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'1',NULL,NULL,'在用','未检',NULL,NULL,NULL,NULL,103,1,'2026-06-24 17:22:41',1,'2026-06-24 17:22:41','0');
/*!40000 ALTER TABLE `risk_special_equipment` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `risk_warning`
--

DROP TABLE IF EXISTS `risk_warning`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `risk_warning` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `tenant_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '000000' COMMENT '租户编号',
  `warning_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '警示编号',
  `warning_title` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '警示标题',
  `warning_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '警示类型',
  `warning_level` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '警示等级',
  `warning_source` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '警示来源',
  `warning_content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '警示内容',
  `store_id` bigint DEFAULT NULL COMMENT '门店ID',
  `store_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '门店名称',
  `release_time` datetime NOT NULL COMMENT '发布时间',
  `expire_time` datetime DEFAULT NULL COMMENT '过期时间',
  `releaser_id` bigint DEFAULT NULL COMMENT '发布人ID',
  `releaser_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '发布人',
  `publish_scope` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '全部' COMMENT '发布范围',
  `status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '已发布' COMMENT '状态',
  `read_count` int DEFAULT '0' COMMENT '阅读数',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_warning_code` (`warning_code`),
  KEY `idx_warning_type` (`warning_type`),
  KEY `idx_warning_level` (`warning_level`),
  KEY `idx_status` (`status`),
  KEY `idx_release_time` (`release_time`)
) ENGINE=InnoDB AUTO_INCREMENT=2069712122753589251 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='风险警示表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `risk_warning`
--

LOCK TABLES `risk_warning` WRITE;
/*!40000 ALTER TABLE `risk_warning` DISABLE KEYS */;
INSERT INTO `risk_warning` VALUES (2069712122753589250,'000000','','test1','food_safety','urgent','','1',NULL,NULL,'2026-06-25 00:00:00',NULL,NULL,'疯狂的狮子Li','全员','已发布',0,NULL,103,1,'2026-06-24 17:19:58',1,'2026-06-24 17:19:58','0');
/*!40000 ALTER TABLE `risk_warning` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `risk_whitelist`
--

DROP TABLE IF EXISTS `risk_whitelist`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `risk_whitelist` (
  `white_id` bigint NOT NULL AUTO_INCREMENT COMMENT '白名单ID',
  `white_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '白名单类型（1IP 2手机号 3设备 4用户 5邮箱）',
  `white_value` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '白名单值',
  `white_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '白名单名称',
  `reason` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '加入原因',
  `source` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '来源',
  `expire_time` datetime DEFAULT NULL COMMENT '过期时间',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '状态（0正常 1停用）',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志（0代表存在 1代表删除）',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`white_id`),
  UNIQUE KEY `uk_white_value` (`white_type`,`white_value`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='白名单表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `risk_whitelist`
--

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

--
-- Table structure for table `risk_work_report`
--

DROP TABLE IF EXISTS `risk_work_report`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `risk_work_report` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `tenant_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '000000' COMMENT '租户编号',
  `report_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '上报编号',
  `work_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '作业类型',
  `work_title` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '作业标题',
  `work_content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '作业内容',
  `store_id` bigint DEFAULT NULL COMMENT '门店ID',
  `store_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '门店名称',
  `work_location` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '作业位置',
  `work_start_time` datetime NOT NULL COMMENT '作业开始时间',
  `work_end_time` datetime NOT NULL COMMENT '作业结束时间',
  `reporter_id` bigint DEFAULT NULL COMMENT '上报人ID',
  `reporter_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '上报人',
  `report_time` datetime NOT NULL COMMENT '上报时间',
  `contact_phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '联系电话',
  `photo_list` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '现场施工图片(JSON数组)',
  `cert_file` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '施工证件URL',
  `cert_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '施工证件名称',
  `participants` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '参与人员',
  `risk_measures` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '风险措施',
  `work_result` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '作业结果',
  `audit_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '待审核' COMMENT '审核状态',
  `auditor_id` bigint DEFAULT NULL COMMENT '审核人ID',
  `auditor_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '审核人',
  `audit_time` datetime DEFAULT NULL COMMENT '审核时间',
  `audit_opinion` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '审核意见',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_report_code` (`report_code`),
  KEY `idx_work_type` (`work_type`),
  KEY `idx_audit_status` (`audit_status`),
  KEY `idx_work_start_time` (`work_start_time`)
) ENGINE=InnoDB AUTO_INCREMENT=2071085340865417218 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='作业上报表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `risk_work_report`
--

LOCK TABLES `risk_work_report` WRITE;
/*!40000 ALTER TABLE `risk_work_report` DISABLE KEYS */;
INSERT INTO `risk_work_report` VALUES (2069644407309344770,'000000','','临时施工上报','1','',NULL,NULL,NULL,'2026-06-23 00:00:00','2026-06-30 00:00:00',NULL,'1','2026-06-24 12:50:53','18100000000','[]','','',NULL,NULL,NULL,'0',NULL,NULL,NULL,NULL,NULL,103,1,'2026-06-24 12:50:54',1,'2026-06-24 12:50:54','0'),(2071085340865417217,'000000','WR20260628121638984','改造工程上报','test01','',NULL,NULL,NULL,'2026-06-24 00:00:00','2026-06-28 00:00:00',NULL,'张三','2026-06-28 12:16:38','19911111111','[]','','',NULL,NULL,NULL,'0',NULL,NULL,NULL,NULL,NULL,103,1,'2026-06-28 12:16:39',1,'2026-06-28 12:16:39','0');
/*!40000 ALTER TABLE `risk_work_report` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `safety_hazard`
--

DROP TABLE IF EXISTS `safety_hazard`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `safety_hazard` (
  `hazard_id` bigint NOT NULL AUTO_INCREMENT COMMENT '隐患ID',
  `hazard_no` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '隐患编号(系统自动生成)',
  `hazard_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '隐患名称',
  `hazard_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '隐患类型(字典: hazard_type)',
  `risk_level` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '风险等级(字典: risk_level)',
  `discover_time` datetime DEFAULT NULL COMMENT '发现时间',
  `hazard_location` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '隐患位置',
  `hazard_desc` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '隐患描述',
  `photo_urls` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '照片地址(逗号分隔)',
  `process_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '处理状态(0待处理 1处理中 2已处理)',
  `process_result` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '处理结果',
  `process_time` datetime DEFAULT NULL COMMENT '处理时间',
  `process_user` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '处理人',
  `status` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '状态(0正常 1停用)',
  `del_flag` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志(0存在 1删除)',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`hazard_id`),
  UNIQUE KEY `uk_hazard_no` (`hazard_no`),
  KEY `idx_hazard_type` (`hazard_type`),
  KEY `idx_risk_level` (`risk_level`),
  KEY `idx_process_status` (`process_status`),
  KEY `idx_create_time` (`create_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='安全隐患表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `safety_hazard`
--

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

--
-- Table structure for table `safety_training`
--

DROP TABLE IF EXISTS `safety_training`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `safety_training` (
  `training_id` bigint NOT NULL AUTO_INCREMENT COMMENT '培训ID',
  `training_no` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '培训编号',
  `training_title` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '培训标题',
  `training_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '培训类型（安全知识/操作规范/应急预案/设备维护）',
  `training_time` datetime DEFAULT NULL COMMENT '培训时间',
  `training_location` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '培训地点',
  `trainer` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '培训师',
  `participant_count` int DEFAULT '0' COMMENT '参与人数',
  `training_status` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '未开始' COMMENT '培训状态（未开始/进行中/已结束）',
  `training_content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '培训内容',
  `training_material` 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停用）',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志（0代表存在 2代表删除）',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`training_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='安全培训';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `safety_training`
--

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

--
-- Table structure for table `sj_distributed_lock`
--

DROP TABLE IF EXISTS `sj_distributed_lock`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sj_distributed_lock` (
  `name` varchar(64) NOT NULL COMMENT '锁名称',
  `lock_until` timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3) COMMENT '锁定时长',
  `locked_at` timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) COMMENT '锁定时间',
  `locked_by` varchar(255) NOT NULL COMMENT '锁定者',
  `create_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
  PRIMARY KEY (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='锁定表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sj_distributed_lock`
--

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

--
-- Table structure for table `sj_group_config`
--

DROP TABLE IF EXISTS `sj_group_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sj_group_config` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `namespace_id` varchar(64) NOT NULL DEFAULT '764d604ec6fc45f68cd92514c40e9e1a' COMMENT '命名空间id',
  `group_name` varchar(64) NOT NULL DEFAULT '' COMMENT '组名称',
  `description` varchar(256) NOT NULL DEFAULT '' COMMENT '组描述',
  `token` varchar(64) NOT NULL DEFAULT 'SJ_cKqBTPzCsWA3VyuCfFoccmuIEGXjr5KT' COMMENT 'token',
  `group_status` tinyint NOT NULL DEFAULT '0' COMMENT '组状态 0、未启用 1、启用',
  `version` int NOT NULL COMMENT '版本号',
  `group_partition` int NOT NULL COMMENT '分区',
  `id_generator_mode` tinyint NOT NULL DEFAULT '1' COMMENT '唯一id生成模式 默认号段模式',
  `init_scene` tinyint NOT NULL DEFAULT '0' COMMENT '是否初始化场景 0:否 1:是',
  `create_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_namespace_id_group_name` (`namespace_id`,`group_name`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='组配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sj_group_config`
--

LOCK TABLES `sj_group_config` WRITE;
/*!40000 ALTER TABLE `sj_group_config` DISABLE KEYS */;
INSERT INTO `sj_group_config` VALUES (1,'dev','ruoyi_group','','SJ_cKqBTPzCsWA3VyuCfFoccmuIEGXjr5KT',1,1,0,1,1,'2026-06-10 19:14:54','2026-06-10 19:14:54'),(2,'prod','ruoyi_group','','SJ_cKqBTPzCsWA3VyuCfFoccmuIEGXjr5KT',1,1,0,1,1,'2026-06-10 19:14:54','2026-06-10 19:14:54');
/*!40000 ALTER TABLE `sj_group_config` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sj_job`
--

DROP TABLE IF EXISTS `sj_job`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sj_job` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `namespace_id` varchar(64) NOT NULL DEFAULT '764d604ec6fc45f68cd92514c40e9e1a' COMMENT '命名空间id',
  `biz_id` varchar(64) NOT NULL COMMENT '业务ID',
  `group_name` varchar(64) NOT NULL COMMENT '组名称',
  `job_name` varchar(64) NOT NULL COMMENT '名称',
  `args_str` text COMMENT '执行方法参数',
  `args_type` tinyint NOT NULL DEFAULT '1' COMMENT '参数类型 ',
  `next_trigger_at` bigint NOT NULL COMMENT '下次触发时间',
  `job_status` tinyint NOT NULL DEFAULT '1' COMMENT '任务状态 0、关闭、1、开启',
  `task_type` tinyint NOT NULL DEFAULT '1' COMMENT '任务类型 1、集群 2、广播 3、切片',
  `route_key` tinyint NOT NULL DEFAULT '4' COMMENT '路由策略',
  `executor_type` tinyint NOT NULL DEFAULT '1' COMMENT '执行器类型',
  `executor_info` varchar(255) DEFAULT NULL COMMENT '执行器名称',
  `trigger_type` tinyint NOT NULL COMMENT '触发类型 1.CRON 表达式 2. 固定时间',
  `trigger_interval` varchar(255) NOT NULL COMMENT '间隔时长',
  `block_strategy` tinyint NOT NULL DEFAULT '1' COMMENT '阻塞策略 1、丢弃 2、覆盖 3、并行 4、恢复',
  `executor_timeout` int NOT NULL DEFAULT '0' COMMENT '任务执行超时时间，单位秒',
  `max_retry_times` int NOT NULL DEFAULT '0' COMMENT '最大重试次数',
  `parallel_num` int NOT NULL DEFAULT '1' COMMENT '并行数',
  `retry_interval` int NOT NULL DEFAULT '0' COMMENT '重试间隔(s)',
  `bucket_index` int NOT NULL DEFAULT '0' COMMENT 'bucket',
  `resident` tinyint NOT NULL DEFAULT '0' COMMENT '是否是常驻任务',
  `notify_ids` varchar(128) NOT NULL DEFAULT '' COMMENT '通知告警场景配置id列表',
  `owner_id` bigint DEFAULT NULL COMMENT '负责人id',
  `labels` varchar(512) DEFAULT '' COMMENT '标签',
  `description` varchar(256) NOT NULL DEFAULT '' COMMENT '描述',
  `ext_attrs` varchar(256) DEFAULT '' COMMENT '扩展字段',
  `deleted` tinyint NOT NULL DEFAULT '0' COMMENT '逻辑删除 1、删除',
  `create_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_sj_job_01` (`namespace_id`,`biz_id`),
  KEY `idx_namespace_id_group_name` (`namespace_id`,`group_name`),
  KEY `idx_job_status_bucket_index` (`job_status`,`bucket_index`),
  KEY `idx_create_dt` (`create_dt`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='任务信息';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sj_job`
--

LOCK TABLES `sj_job` WRITE;
/*!40000 ALTER TABLE `sj_job` DISABLE KEYS */;
INSERT INTO `sj_job` VALUES (1,'dev','demo-job','ruoyi_group','demo-job',NULL,1,1710344035622,1,1,4,1,'testJobExecutor',2,'60',1,60,3,1,1,116,0,'',1,'','','',0,'2026-06-10 19:14:54','2026-06-10 19:14:54');
/*!40000 ALTER TABLE `sj_job` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sj_job_executor`
--

DROP TABLE IF EXISTS `sj_job_executor`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sj_job_executor` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `namespace_id` varchar(64) NOT NULL DEFAULT '764d604ec6fc45f68cd92514c40e9e1a' COMMENT '命名空间id',
  `group_name` varchar(64) NOT NULL COMMENT '组名称',
  `executor_info` varchar(256) NOT NULL COMMENT '任务执行器名称',
  `executor_type` varchar(3) NOT NULL COMMENT '1:java 2:python 3:go',
  `create_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  PRIMARY KEY (`id`),
  KEY `idx_namespace_id_group_name` (`namespace_id`,`group_name`),
  KEY `idx_create_dt` (`create_dt`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='任务执行器信息';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sj_job_executor`
--

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

--
-- Table structure for table `sj_job_log_message`
--

DROP TABLE IF EXISTS `sj_job_log_message`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sj_job_log_message` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `namespace_id` varchar(64) NOT NULL DEFAULT '764d604ec6fc45f68cd92514c40e9e1a' COMMENT '命名空间id',
  `group_name` varchar(64) NOT NULL COMMENT '组名称',
  `job_id` bigint NOT NULL COMMENT '任务信息id',
  `task_batch_id` bigint NOT NULL COMMENT '任务批次id',
  `task_id` bigint NOT NULL COMMENT '调度任务id',
  `message` longtext NOT NULL COMMENT '调度信息',
  `log_num` int NOT NULL DEFAULT '1' COMMENT '日志数量',
  `real_time` bigint NOT NULL DEFAULT '0' COMMENT '上报时间',
  `ext_attrs` varchar(256) DEFAULT '' COMMENT '扩展字段',
  `create_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  PRIMARY KEY (`id`),
  KEY `idx_task_batch_id_task_id` (`task_batch_id`,`task_id`),
  KEY `idx_create_dt` (`create_dt`),
  KEY `idx_namespace_id_group_name` (`namespace_id`,`group_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='调度日志';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sj_job_log_message`
--

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

--
-- Table structure for table `sj_job_summary`
--

DROP TABLE IF EXISTS `sj_job_summary`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sj_job_summary` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `namespace_id` varchar(64) NOT NULL DEFAULT '764d604ec6fc45f68cd92514c40e9e1a' COMMENT '命名空间id',
  `group_name` varchar(64) NOT NULL DEFAULT '' COMMENT '组名称',
  `business_id` bigint NOT NULL COMMENT '业务id (job_id或workflow_id)',
  `system_task_type` tinyint NOT NULL DEFAULT '3' COMMENT '任务类型 3、JOB任务 4、WORKFLOW任务',
  `trigger_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '统计时间',
  `success_num` int NOT NULL DEFAULT '0' COMMENT '执行成功-日志数量',
  `fail_num` int NOT NULL DEFAULT '0' COMMENT '执行失败-日志数量',
  `fail_reason` varchar(512) NOT NULL DEFAULT '' COMMENT '失败原因',
  `stop_num` int NOT NULL DEFAULT '0' COMMENT '执行失败-日志数量',
  `stop_reason` varchar(512) NOT NULL DEFAULT '' COMMENT '失败原因',
  `cancel_num` int NOT NULL DEFAULT '0' COMMENT '执行失败-日志数量',
  `cancel_reason` varchar(512) NOT NULL DEFAULT '' COMMENT '失败原因',
  `create_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_trigger_at_system_task_type_business_id` (`trigger_at`,`system_task_type`,`business_id`) USING BTREE,
  KEY `idx_namespace_id_group_name_business_id` (`namespace_id`,`group_name`,`business_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='DashBoard_Job';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sj_job_summary`
--

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

--
-- Table structure for table `sj_job_task`
--

DROP TABLE IF EXISTS `sj_job_task`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sj_job_task` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `namespace_id` varchar(64) NOT NULL DEFAULT '764d604ec6fc45f68cd92514c40e9e1a' COMMENT '命名空间id',
  `group_name` varchar(64) NOT NULL COMMENT '组名称',
  `job_id` bigint NOT NULL COMMENT '任务信息id',
  `task_batch_id` bigint NOT NULL COMMENT '调度任务id',
  `parent_id` bigint NOT NULL DEFAULT '0' COMMENT '父执行器id',
  `task_status` tinyint NOT NULL DEFAULT '0' COMMENT '执行的状态 0、失败 1、成功',
  `retry_count` int NOT NULL DEFAULT '0' COMMENT '重试次数',
  `mr_stage` tinyint DEFAULT NULL COMMENT '动态分片所处阶段 1:map 2:reduce 3:mergeReduce',
  `leaf` tinyint NOT NULL DEFAULT '1' COMMENT '叶子节点',
  `task_name` varchar(255) NOT NULL DEFAULT '' COMMENT '任务名称',
  `client_info` varchar(128) DEFAULT NULL COMMENT '客户端地址 clientId#ip:port',
  `wf_context` text COMMENT '工作流全局上下文',
  `result_message` text NOT NULL COMMENT '执行结果',
  `args_str` text COMMENT '执行方法参数',
  `args_type` tinyint NOT NULL DEFAULT '1' COMMENT '参数类型 ',
  `ext_attrs` varchar(256) DEFAULT '' COMMENT '扩展字段',
  `create_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  PRIMARY KEY (`id`),
  KEY `idx_task_batch_id_task_status` (`task_batch_id`,`task_status`),
  KEY `idx_create_dt` (`create_dt`),
  KEY `idx_namespace_id_group_name` (`namespace_id`,`group_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='任务实例';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sj_job_task`
--

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

--
-- Table structure for table `sj_job_task_batch`
--

DROP TABLE IF EXISTS `sj_job_task_batch`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sj_job_task_batch` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `namespace_id` varchar(64) NOT NULL DEFAULT '764d604ec6fc45f68cd92514c40e9e1a' COMMENT '命名空间id',
  `group_name` varchar(64) NOT NULL COMMENT '组名称',
  `job_id` bigint NOT NULL COMMENT '任务id',
  `workflow_node_id` bigint NOT NULL DEFAULT '0' COMMENT '工作流节点id',
  `parent_workflow_node_id` bigint NOT NULL DEFAULT '0' COMMENT '工作流任务父批次id',
  `workflow_task_batch_id` bigint NOT NULL DEFAULT '0' COMMENT '工作流任务批次id',
  `task_batch_status` tinyint NOT NULL DEFAULT '0' COMMENT '任务批次状态 0、失败 1、成功',
  `operation_reason` tinyint NOT NULL DEFAULT '0' COMMENT '操作原因',
  `execution_at` bigint NOT NULL DEFAULT '0' COMMENT '任务执行时间',
  `system_task_type` tinyint NOT NULL DEFAULT '3' COMMENT '任务类型 3、JOB任务 4、WORKFLOW任务',
  `parent_id` varchar(64) NOT NULL DEFAULT '' COMMENT '父节点',
  `ext_attrs` varchar(256) DEFAULT '' COMMENT '扩展字段',
  `deleted` tinyint NOT NULL DEFAULT '0' COMMENT '逻辑删除 1、删除',
  `create_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  PRIMARY KEY (`id`),
  KEY `idx_job_id_task_batch_status` (`job_id`,`task_batch_status`),
  KEY `idx_create_dt` (`create_dt`),
  KEY `idx_namespace_id_group_name` (`namespace_id`,`group_name`),
  KEY `idx_workflow_task_batch_id_workflow_node_id` (`workflow_task_batch_id`,`workflow_node_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='任务批次';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sj_job_task_batch`
--

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

--
-- Table structure for table `sj_namespace`
--

DROP TABLE IF EXISTS `sj_namespace`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sj_namespace` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `name` varchar(64) NOT NULL COMMENT '名称',
  `unique_id` varchar(64) NOT NULL COMMENT '唯一id',
  `description` varchar(256) NOT NULL DEFAULT '' COMMENT '描述',
  `deleted` tinyint NOT NULL DEFAULT '0' COMMENT '逻辑删除 1、删除',
  `create_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_unique_id` (`unique_id`),
  KEY `idx_name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='命名空间';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sj_namespace`
--

LOCK TABLES `sj_namespace` WRITE;
/*!40000 ALTER TABLE `sj_namespace` DISABLE KEYS */;
INSERT INTO `sj_namespace` VALUES (1,'Development','dev','',0,'2026-06-10 19:14:54','2026-06-10 19:14:54'),(2,'Production','prod','',0,'2026-06-10 19:14:54','2026-06-10 19:14:54');
/*!40000 ALTER TABLE `sj_namespace` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sj_notify_config`
--

DROP TABLE IF EXISTS `sj_notify_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sj_notify_config` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `namespace_id` varchar(64) NOT NULL DEFAULT '764d604ec6fc45f68cd92514c40e9e1a' COMMENT '命名空间id',
  `group_name` varchar(64) NOT NULL COMMENT '组名称',
  `notify_name` varchar(64) NOT NULL DEFAULT '' COMMENT '通知名称',
  `system_task_type` tinyint NOT NULL DEFAULT '3' COMMENT '任务类型 1. 重试任务 2. 重试回调 3、JOB任务 4、WORKFLOW任务',
  `notify_status` tinyint NOT NULL DEFAULT '0' COMMENT '通知状态 0、未启用 1、启用',
  `recipient_ids` varchar(128) NOT NULL COMMENT '接收人id列表',
  `notify_threshold` int NOT NULL DEFAULT '0' COMMENT '通知阈值',
  `notify_scene` tinyint NOT NULL DEFAULT '0' COMMENT '通知场景',
  `rate_limiter_status` tinyint NOT NULL DEFAULT '0' COMMENT '限流状态 0、未启用 1、启用',
  `rate_limiter_threshold` int NOT NULL DEFAULT '0' COMMENT '每秒限流阈值',
  `description` varchar(256) NOT NULL DEFAULT '' COMMENT '描述',
  `create_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  PRIMARY KEY (`id`),
  KEY `idx_namespace_id_group_name_scene_name` (`namespace_id`,`group_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='通知配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sj_notify_config`
--

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

--
-- Table structure for table `sj_notify_recipient`
--

DROP TABLE IF EXISTS `sj_notify_recipient`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sj_notify_recipient` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `namespace_id` varchar(64) NOT NULL DEFAULT '764d604ec6fc45f68cd92514c40e9e1a' COMMENT '命名空间id',
  `recipient_name` varchar(64) NOT NULL COMMENT '接收人名称',
  `notify_type` tinyint NOT NULL DEFAULT '0' COMMENT '通知类型 1、钉钉 2、邮件 3、企业微信 4 飞书 5 webhook',
  `notify_attribute` varchar(512) NOT NULL COMMENT '配置属性',
  `description` varchar(256) NOT NULL DEFAULT '' COMMENT '描述',
  `create_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  PRIMARY KEY (`id`),
  KEY `idx_namespace_id` (`namespace_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='告警通知接收人';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sj_notify_recipient`
--

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

--
-- Table structure for table `sj_retry`
--

DROP TABLE IF EXISTS `sj_retry`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sj_retry` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `namespace_id` varchar(64) NOT NULL DEFAULT '764d604ec6fc45f68cd92514c40e9e1a' COMMENT '命名空间id',
  `group_name` varchar(64) NOT NULL COMMENT '组名称',
  `group_id` bigint NOT NULL COMMENT '组Id',
  `scene_name` varchar(64) NOT NULL COMMENT '场景名称',
  `scene_id` bigint NOT NULL COMMENT '场景ID',
  `idempotent_id` varchar(64) NOT NULL COMMENT '幂等id',
  `biz_no` varchar(64) NOT NULL DEFAULT '' COMMENT '业务编号',
  `executor_name` varchar(512) NOT NULL DEFAULT '' COMMENT '执行器名称',
  `args_str` text NOT NULL COMMENT '执行方法参数',
  `ext_attrs` text NOT NULL COMMENT '扩展字段',
  `serializer_name` varchar(32) NOT NULL DEFAULT 'jackson' COMMENT '执行方法参数序列化器名称',
  `next_trigger_at` bigint NOT NULL COMMENT '下次触发时间',
  `retry_count` int NOT NULL DEFAULT '0' COMMENT '重试次数',
  `retry_status` tinyint NOT NULL DEFAULT '0' COMMENT '重试状态 0、重试中 1、成功 2、最大重试次数',
  `task_type` tinyint NOT NULL DEFAULT '1' COMMENT '任务类型 1、重试数据 2、回调数据',
  `bucket_index` int NOT NULL DEFAULT '0' COMMENT 'bucket',
  `parent_id` bigint NOT NULL DEFAULT '0' COMMENT '父节点id',
  `deleted` bigint NOT NULL DEFAULT '0' COMMENT '逻辑删除',
  `create_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_scene_tasktype_idempotentid_deleted` (`scene_id`,`task_type`,`idempotent_id`,`deleted`),
  KEY `idx_biz_no` (`biz_no`),
  KEY `idx_idempotent_id` (`idempotent_id`),
  KEY `idx_retry_status_bucket_index` (`retry_status`,`bucket_index`),
  KEY `idx_parent_id` (`parent_id`),
  KEY `idx_create_dt` (`create_dt`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='重试信息表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sj_retry`
--

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

--
-- Table structure for table `sj_retry_dead_letter`
--

DROP TABLE IF EXISTS `sj_retry_dead_letter`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sj_retry_dead_letter` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `namespace_id` varchar(64) NOT NULL DEFAULT '764d604ec6fc45f68cd92514c40e9e1a' COMMENT '命名空间id',
  `group_name` varchar(64) NOT NULL COMMENT '组名称',
  `group_id` bigint NOT NULL COMMENT '组Id',
  `scene_name` varchar(64) NOT NULL COMMENT '场景名称',
  `scene_id` bigint NOT NULL COMMENT '场景ID',
  `idempotent_id` varchar(64) NOT NULL COMMENT '幂等id',
  `biz_no` varchar(64) NOT NULL DEFAULT '' COMMENT '业务编号',
  `executor_name` varchar(512) NOT NULL DEFAULT '' COMMENT '执行器名称',
  `serializer_name` varchar(32) NOT NULL DEFAULT 'jackson' COMMENT '执行方法参数序列化器名称',
  `args_str` text NOT NULL COMMENT '执行方法参数',
  `ext_attrs` text NOT NULL COMMENT '扩展字段',
  `create_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  PRIMARY KEY (`id`),
  KEY `idx_namespace_id_group_name_scene_name` (`namespace_id`,`group_name`,`scene_name`),
  KEY `idx_idempotent_id` (`idempotent_id`),
  KEY `idx_biz_no` (`biz_no`),
  KEY `idx_create_dt` (`create_dt`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='死信队列表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sj_retry_dead_letter`
--

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

--
-- Table structure for table `sj_retry_scene_config`
--

DROP TABLE IF EXISTS `sj_retry_scene_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sj_retry_scene_config` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `namespace_id` varchar(64) NOT NULL DEFAULT '764d604ec6fc45f68cd92514c40e9e1a' COMMENT '命名空间id',
  `scene_name` varchar(64) NOT NULL COMMENT '场景名称',
  `group_name` varchar(64) NOT NULL COMMENT '组名称',
  `scene_status` tinyint NOT NULL DEFAULT '0' COMMENT '组状态 0、未启用 1、启用',
  `max_retry_count` int NOT NULL DEFAULT '5' COMMENT '最大重试次数',
  `back_off` tinyint NOT NULL DEFAULT '1' COMMENT '1、默认等级 2、固定间隔时间 3、CRON 表达式',
  `trigger_interval` varchar(16) NOT NULL DEFAULT '' COMMENT '间隔时长',
  `notify_ids` varchar(128) NOT NULL DEFAULT '' COMMENT '通知告警场景配置id列表',
  `deadline_request` bigint unsigned NOT NULL DEFAULT '60000' COMMENT 'Deadline Request 调用链超时 单位毫秒',
  `executor_timeout` int unsigned NOT NULL DEFAULT '5' COMMENT '任务执行超时时间，单位秒',
  `route_key` tinyint NOT NULL DEFAULT '4' COMMENT '路由策略',
  `block_strategy` tinyint NOT NULL DEFAULT '1' COMMENT '阻塞策略 1、丢弃 2、覆盖 3、并行',
  `cb_status` tinyint NOT NULL DEFAULT '0' COMMENT '回调状态 0、不开启 1、开启',
  `cb_trigger_type` tinyint NOT NULL DEFAULT '1' COMMENT '1、默认等级 2、固定间隔时间 3、CRON 表达式',
  `cb_max_count` int NOT NULL DEFAULT '16' COMMENT '回调的最大执行次数',
  `cb_trigger_interval` varchar(16) NOT NULL DEFAULT '' COMMENT '回调的最大执行次数',
  `owner_id` bigint DEFAULT NULL COMMENT '负责人id',
  `labels` varchar(512) DEFAULT '' COMMENT '标签',
  `description` varchar(256) NOT NULL DEFAULT '' COMMENT '描述',
  `create_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_namespace_id_group_name_scene_name` (`namespace_id`,`group_name`,`scene_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='场景配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sj_retry_scene_config`
--

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

--
-- Table structure for table `sj_retry_summary`
--

DROP TABLE IF EXISTS `sj_retry_summary`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sj_retry_summary` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `namespace_id` varchar(64) NOT NULL DEFAULT '764d604ec6fc45f68cd92514c40e9e1a' COMMENT '命名空间id',
  `group_name` varchar(64) NOT NULL DEFAULT '' COMMENT '组名称',
  `scene_name` varchar(64) NOT NULL DEFAULT '' COMMENT '场景名称',
  `trigger_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '统计时间',
  `running_num` int NOT NULL DEFAULT '0' COMMENT '重试中-日志数量',
  `finish_num` int NOT NULL DEFAULT '0' COMMENT '重试完成-日志数量',
  `max_count_num` int NOT NULL DEFAULT '0' COMMENT '重试到达最大次数-日志数量',
  `suspend_num` int NOT NULL DEFAULT '0' COMMENT '暂停重试-日志数量',
  `create_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_scene_name_trigger_at` (`namespace_id`,`group_name`,`scene_name`,`trigger_at`) USING BTREE,
  KEY `idx_trigger_at` (`trigger_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='DashBoard_Retry';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sj_retry_summary`
--

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

--
-- Table structure for table `sj_retry_task`
--

DROP TABLE IF EXISTS `sj_retry_task`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sj_retry_task` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `namespace_id` varchar(64) NOT NULL DEFAULT '764d604ec6fc45f68cd92514c40e9e1a' COMMENT '命名空间id',
  `group_name` varchar(64) NOT NULL COMMENT '组名称',
  `scene_name` varchar(64) NOT NULL COMMENT '场景名称',
  `retry_id` bigint NOT NULL COMMENT '重试信息Id',
  `ext_attrs` text NOT NULL COMMENT '扩展字段',
  `task_status` tinyint NOT NULL DEFAULT '1' COMMENT '重试状态',
  `task_type` tinyint NOT NULL DEFAULT '1' COMMENT '任务类型 1、重试数据 2、回调数据',
  `operation_reason` tinyint NOT NULL DEFAULT '0' COMMENT '操作原因',
  `client_info` varchar(128) DEFAULT NULL COMMENT '客户端地址 clientId#ip:port',
  `create_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  PRIMARY KEY (`id`),
  KEY `idx_group_name_scene_name` (`namespace_id`,`group_name`,`scene_name`),
  KEY `task_status` (`task_status`),
  KEY `idx_create_dt` (`create_dt`),
  KEY `idx_retry_id` (`retry_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='重试任务表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sj_retry_task`
--

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

--
-- Table structure for table `sj_retry_task_log_message`
--

DROP TABLE IF EXISTS `sj_retry_task_log_message`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sj_retry_task_log_message` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `namespace_id` varchar(64) NOT NULL DEFAULT '764d604ec6fc45f68cd92514c40e9e1a' COMMENT '命名空间id',
  `group_name` varchar(64) NOT NULL COMMENT '组名称',
  `retry_id` bigint NOT NULL COMMENT '重试信息Id',
  `retry_task_id` bigint NOT NULL COMMENT '重试任务Id',
  `message` longtext NOT NULL COMMENT '异常信息',
  `log_num` int NOT NULL DEFAULT '1' COMMENT '日志数量',
  `real_time` bigint NOT NULL DEFAULT '0' COMMENT '上报时间',
  `create_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  PRIMARY KEY (`id`),
  KEY `idx_namespace_id_group_name_retry_task_id` (`namespace_id`,`group_name`,`retry_task_id`),
  KEY `idx_create_dt` (`create_dt`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='任务调度日志信息记录表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sj_retry_task_log_message`
--

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

--
-- Table structure for table `sj_server_node`
--

DROP TABLE IF EXISTS `sj_server_node`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sj_server_node` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `namespace_id` varchar(64) NOT NULL DEFAULT '764d604ec6fc45f68cd92514c40e9e1a' COMMENT '命名空间id',
  `group_name` varchar(64) NOT NULL COMMENT '组名称',
  `host_id` varchar(64) NOT NULL COMMENT '主机id',
  `host_ip` varchar(64) NOT NULL COMMENT '机器ip',
  `host_port` int NOT NULL COMMENT '机器端口',
  `expire_at` datetime NOT NULL COMMENT '过期时间',
  `node_type` tinyint NOT NULL COMMENT '节点类型 1、客户端 2、是服务端',
  `ext_attrs` varchar(256) DEFAULT '' COMMENT '扩展字段',
  `labels` varchar(512) DEFAULT '' COMMENT '标签',
  `create_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_host_id_host_ip` (`host_id`,`host_ip`),
  KEY `idx_namespace_id_group_name` (`namespace_id`,`group_name`),
  KEY `idx_expire_at_node_type` (`expire_at`,`node_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='服务器节点';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sj_server_node`
--

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

--
-- Table structure for table `sj_system_user`
--

DROP TABLE IF EXISTS `sj_system_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sj_system_user` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `username` varchar(64) NOT NULL COMMENT '账号',
  `password` varchar(128) NOT NULL COMMENT '密码',
  `role` tinyint NOT NULL DEFAULT '0' COMMENT '角色：1-普通用户、2-管理员',
  `create_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_username` (`username`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='系统用户表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sj_system_user`
--

LOCK TABLES `sj_system_user` WRITE;
/*!40000 ALTER TABLE `sj_system_user` DISABLE KEYS */;
INSERT INTO `sj_system_user` VALUES (1,'admin','465c194afb65670f38322df087f0a9bb225cc257e43eb4ac5a0c98ef5b3173ac',2,'2026-06-10 19:14:54','2026-06-10 19:14:54');
/*!40000 ALTER TABLE `sj_system_user` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sj_system_user_permission`
--

DROP TABLE IF EXISTS `sj_system_user_permission`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sj_system_user_permission` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `group_name` varchar(64) NOT NULL COMMENT '组名称',
  `namespace_id` varchar(64) NOT NULL DEFAULT '764d604ec6fc45f68cd92514c40e9e1a' COMMENT '命名空间id',
  `system_user_id` bigint NOT NULL COMMENT '系统用户id',
  `create_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_namespace_id_group_name_system_user_id` (`namespace_id`,`group_name`,`system_user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='系统用户权限表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sj_system_user_permission`
--

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

--
-- Table structure for table `sj_workflow`
--

DROP TABLE IF EXISTS `sj_workflow`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sj_workflow` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `workflow_name` varchar(64) NOT NULL COMMENT '工作流名称',
  `namespace_id` varchar(64) NOT NULL DEFAULT '764d604ec6fc45f68cd92514c40e9e1a' COMMENT '命名空间id',
  `biz_id` varchar(64) NOT NULL COMMENT '业务ID',
  `group_name` varchar(64) NOT NULL COMMENT '组名称',
  `workflow_status` tinyint NOT NULL DEFAULT '1' COMMENT '工作流状态 0、关闭、1、开启',
  `trigger_type` tinyint NOT NULL COMMENT '触发类型 1.CRON 表达式 2. 固定时间',
  `trigger_interval` varchar(255) NOT NULL COMMENT '间隔时长',
  `next_trigger_at` bigint NOT NULL COMMENT '下次触发时间',
  `block_strategy` tinyint NOT NULL DEFAULT '1' COMMENT '阻塞策略 1、丢弃 2、覆盖 3、并行',
  `executor_timeout` int NOT NULL DEFAULT '0' COMMENT '任务执行超时时间，单位秒',
  `description` varchar(256) NOT NULL DEFAULT '' COMMENT '描述',
  `flow_info` text COMMENT '流程信息',
  `wf_context` text COMMENT '上下文',
  `notify_ids` varchar(128) NOT NULL DEFAULT '' COMMENT '通知告警场景配置id列表',
  `bucket_index` int NOT NULL DEFAULT '0' COMMENT 'bucket',
  `version` int NOT NULL COMMENT '版本号',
  `owner_id` bigint DEFAULT NULL COMMENT '负责人id',
  `ext_attrs` varchar(256) DEFAULT '' COMMENT '扩展字段',
  `deleted` tinyint NOT NULL DEFAULT '0' COMMENT '逻辑删除 1、删除',
  `create_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_sj_workflow_01` (`namespace_id`,`biz_id`),
  KEY `idx_create_dt` (`create_dt`),
  KEY `idx_namespace_id_group_name` (`namespace_id`,`group_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='工作流';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sj_workflow`
--

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

--
-- Table structure for table `sj_workflow_node`
--

DROP TABLE IF EXISTS `sj_workflow_node`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sj_workflow_node` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `namespace_id` varchar(64) NOT NULL DEFAULT '764d604ec6fc45f68cd92514c40e9e1a' COMMENT '命名空间id',
  `node_name` varchar(64) NOT NULL COMMENT '节点名称',
  `group_name` varchar(64) NOT NULL COMMENT '组名称',
  `job_id` bigint NOT NULL COMMENT '任务信息id',
  `workflow_id` bigint NOT NULL COMMENT '工作流ID',
  `node_type` tinyint NOT NULL DEFAULT '1' COMMENT '1、任务节点 2、条件节点',
  `expression_type` tinyint NOT NULL DEFAULT '0' COMMENT '1、SpEl、2、Aviator 3、QL',
  `fail_strategy` tinyint NOT NULL DEFAULT '1' COMMENT '失败策略 1、跳过 2、阻塞',
  `workflow_node_status` tinyint NOT NULL DEFAULT '1' COMMENT '工作流节点状态 0、关闭、1、开启',
  `priority_level` int NOT NULL DEFAULT '1' COMMENT '优先级',
  `node_info` text COMMENT '节点信息 ',
  `version` int NOT NULL COMMENT '版本号',
  `ext_attrs` varchar(256) DEFAULT '' COMMENT '扩展字段',
  `deleted` tinyint NOT NULL DEFAULT '0' COMMENT '逻辑删除 1、删除',
  `create_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  PRIMARY KEY (`id`),
  KEY `idx_create_dt` (`create_dt`),
  KEY `idx_namespace_id_group_name` (`namespace_id`,`group_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='工作流节点';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sj_workflow_node`
--

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

--
-- Table structure for table `sj_workflow_task_batch`
--

DROP TABLE IF EXISTS `sj_workflow_task_batch`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sj_workflow_task_batch` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `namespace_id` varchar(64) NOT NULL DEFAULT '764d604ec6fc45f68cd92514c40e9e1a' COMMENT '命名空间id',
  `group_name` varchar(64) NOT NULL COMMENT '组名称',
  `workflow_id` bigint NOT NULL COMMENT '工作流任务id',
  `task_batch_status` tinyint NOT NULL DEFAULT '0' COMMENT '任务批次状态 0、失败 1、成功',
  `operation_reason` tinyint NOT NULL DEFAULT '0' COMMENT '操作原因',
  `flow_info` text COMMENT '流程信息',
  `wf_context` text COMMENT '全局上下文',
  `execution_at` bigint NOT NULL DEFAULT '0' COMMENT '任务执行时间',
  `ext_attrs` varchar(256) DEFAULT '' COMMENT '扩展字段',
  `version` int NOT NULL DEFAULT '1' COMMENT '版本号',
  `deleted` tinyint NOT NULL DEFAULT '0' COMMENT '逻辑删除 1、删除',
  `create_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  PRIMARY KEY (`id`),
  KEY `idx_job_id_task_batch_status` (`workflow_id`,`task_batch_status`),
  KEY `idx_create_dt` (`create_dt`),
  KEY `idx_namespace_id_group_name` (`namespace_id`,`group_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='工作流批次';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sj_workflow_task_batch`
--

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

--
-- Table structure for table `special_equipment`
--

DROP TABLE IF EXISTS `special_equipment`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `special_equipment` (
  `equipment_id` bigint NOT NULL AUTO_INCREMENT COMMENT '设备ID',
  `equipment_no` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '设备编号',
  `equipment_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '设备名称',
  `equipment_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '设备类型(字典: equipment_type)',
  `install_location` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '安装位置',
  `photo_urls` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '设备照片(逗号分隔)',
  `status` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '状态(0正常 1停用)',
  `del_flag` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志(0存在 1删除)',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`equipment_id`),
  UNIQUE KEY `uk_equipment_no` (`equipment_no`),
  KEY `idx_equipment_type` (`equipment_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='特种设备表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `special_equipment`
--

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

--
-- Table structure for table `sys_client`
--

DROP TABLE IF EXISTS `sys_client`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sys_client` (
  `id` bigint NOT NULL COMMENT 'id',
  `client_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '客户端id',
  `client_key` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '客户端key',
  `client_secret` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '客户端秘钥',
  `grant_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '授权类型',
  `device_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '设备类型',
  `active_timeout` int DEFAULT '1800' COMMENT 'token活跃超时时间',
  `timeout` int DEFAULT '604800' COMMENT 'token固定超时',
  `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代表存在 1代表删除）',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='系统授权表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sys_client`
--

LOCK TABLES `sys_client` WRITE;
/*!40000 ALTER TABLE `sys_client` DISABLE KEYS */;
INSERT INTO `sys_client` VALUES (1,'e5cd7e4891bf95d1d19206ce24a7b32e','pc','pc123','password,social','pc',1800,604800,'0','0',103,1,'2026-06-10 19:14:54',1,'2026-06-10 19:14:54'),(2,'428a8310cd442757ae699df5d894f051','app','app123','password,sms,social','android',1800,604800,'0','0',103,1,'2026-06-10 19:14:54',1,'2026-06-10 19:14:54');
/*!40000 ALTER TABLE `sys_client` 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` bigint NOT NULL COMMENT '参数主键',
  `tenant_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '000000' 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_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL 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 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,'000000','主框架页-默认皮肤样式名称','sys.index.skinName','skin-blue','Y',103,1,'2026-06-10 19:14:54',NULL,NULL,'蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow'),(2,'000000','用户管理-账号初始密码','sys.user.initPassword','123456','Y',103,1,'2026-06-10 19:14:54',NULL,NULL,'初始化密码 123456'),(3,'000000','主框架页-侧边栏主题','sys.index.sideTheme','theme-dark','Y',103,1,'2026-06-10 19:14:54',NULL,NULL,'深色主题theme-dark，浅色主题theme-light'),(5,'000000','账号自助-是否开启用户注册功能','sys.account.registerUser','false','Y',103,1,'2026-06-10 19:14:54',NULL,NULL,'是否开启注册用户功能（true开启，false关闭）'),(11,'000000','OSS预览列表资源开关','sys.oss.previewListResource','true','Y',103,1,'2026-06-10 19:14:54',NULL,NULL,'true:开启, false:关闭');
/*!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 COMMENT '部门id',
  `tenant_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '000000' COMMENT '租户编号',
  `parent_id` bigint DEFAULT '0' COMMENT '父部门id',
  `ancestors` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '祖级列表',
  `dept_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '部门名称',
  `dept_category` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '部门类别编码',
  `order_num` int DEFAULT '0' COMMENT '显示顺序',
  `leader` bigint 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代表存在 1代表删除）',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`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_dept`
--

LOCK TABLES `sys_dept` WRITE;
/*!40000 ALTER TABLE `sys_dept` DISABLE KEYS */;
INSERT INTO `sys_dept` VALUES (100,'000000',0,'0','XXX科技',NULL,0,NULL,'15888888888','xxx@qq.com','0','0',103,1,'2026-06-10 19:14:54',NULL,NULL),(101,'000000',100,'0,100','深圳总公司',NULL,1,NULL,'15888888888','xxx@qq.com','0','0',103,1,'2026-06-10 19:14:54',NULL,NULL),(102,'000000',100,'0,100','长沙分公司',NULL,2,NULL,'15888888888','xxx@qq.com','0','0',103,1,'2026-06-10 19:14:54',NULL,NULL),(103,'000000',101,'0,100,101','研发部门',NULL,1,1,'15888888888','xxx@qq.com','0','0',103,1,'2026-06-10 19:14:54',NULL,NULL),(104,'000000',101,'0,100,101','市场部门',NULL,2,NULL,'15888888888','xxx@qq.com','0','0',103,1,'2026-06-10 19:14:54',NULL,NULL),(105,'000000',101,'0,100,101','测试部门',NULL,3,NULL,'15888888888','xxx@qq.com','0','0',103,1,'2026-06-10 19:14:54',NULL,NULL),(106,'000000',101,'0,100,101','财务部门',NULL,4,NULL,'15888888888','xxx@qq.com','0','0',103,1,'2026-06-10 19:14:54',NULL,NULL),(107,'000000',101,'0,100,101','运维部门',NULL,5,NULL,'15888888888','xxx@qq.com','0','0',103,1,'2026-06-10 19:14:54',NULL,NULL),(108,'000000',102,'0,100,102','市场部门',NULL,1,NULL,'15888888888','xxx@qq.com','0','0',103,1,'2026-06-10 19:14:54',NULL,NULL),(109,'000000',102,'0,100,102','财务部门',NULL,2,NULL,'15888888888','xxx@qq.com','0','0',103,1,'2026-06-10 19:14:54',NULL,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 '字典编码',
  `tenant_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '000000' 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否）',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL 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=22604 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,'000000',1,'男','0','sys_user_sex','','','Y',103,1,'2026-06-10 19:14:54',NULL,NULL,'性别男'),(2,'000000',2,'女','1','sys_user_sex','','','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'性别女'),(3,'000000',3,'未知','2','sys_user_sex','','','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'性别未知'),(4,'000000',1,'显示','0','sys_show_hide','','primary','Y',103,1,'2026-06-10 19:14:54',NULL,NULL,'显示菜单'),(5,'000000',2,'隐藏','1','sys_show_hide','','danger','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'隐藏菜单'),(6,'000000',1,'正常','0','sys_normal_disable','','primary','Y',103,1,'2026-06-10 19:14:54',NULL,NULL,'正常状态'),(7,'000000',2,'停用','1','sys_normal_disable','','danger','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'停用状态'),(12,'000000',1,'是','Y','sys_yes_no','','primary','Y',103,1,'2026-06-10 19:14:54',NULL,NULL,'系统默认是'),(13,'000000',2,'否','N','sys_yes_no','','danger','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'系统默认否'),(14,'000000',1,'通知','1','sys_notice_type','','warning','Y',103,1,'2026-06-10 19:14:54',NULL,NULL,'通知'),(15,'000000',2,'公告','2','sys_notice_type','','success','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'公告'),(16,'000000',1,'正常','0','sys_notice_status','','primary','Y',103,1,'2026-06-10 19:14:54',NULL,NULL,'正常状态'),(17,'000000',2,'关闭','1','sys_notice_status','','danger','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'关闭状态'),(18,'000000',1,'新增','1','sys_oper_type','','info','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'新增操作'),(19,'000000',2,'修改','2','sys_oper_type','','info','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'修改操作'),(20,'000000',3,'删除','3','sys_oper_type','','danger','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'删除操作'),(21,'000000',4,'授权','4','sys_oper_type','','primary','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'授权操作'),(22,'000000',5,'导出','5','sys_oper_type','','warning','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'导出操作'),(23,'000000',6,'导入','6','sys_oper_type','','warning','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'导入操作'),(24,'000000',7,'强退','7','sys_oper_type','','danger','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'强退操作'),(25,'000000',8,'生成代码','8','sys_oper_type','','warning','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'生成操作'),(26,'000000',9,'清空数据','9','sys_oper_type','','danger','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'清空操作'),(27,'000000',1,'成功','0','sys_common_status','','primary','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'正常状态'),(28,'000000',2,'失败','1','sys_common_status','','danger','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'停用状态'),(29,'000000',99,'其他','0','sys_oper_type','','info','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'其他操作'),(30,'000000',0,'密码认证','password','sys_grant_type','el-check-tag','default','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'密码认证'),(31,'000000',0,'短信认证','sms','sys_grant_type','el-check-tag','default','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'短信认证'),(32,'000000',0,'邮件认证','email','sys_grant_type','el-check-tag','default','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'邮件认证'),(33,'000000',0,'小程序认证','xcx','sys_grant_type','el-check-tag','default','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'小程序认证'),(34,'000000',0,'三方登录认证','social','sys_grant_type','el-check-tag','default','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'三方登录认证'),(35,'000000',0,'PC','pc','sys_device_type','','default','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'PC'),(36,'000000',0,'安卓','android','sys_device_type','','default','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'安卓'),(37,'000000',0,'iOS','ios','sys_device_type','','default','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'iOS'),(38,'000000',0,'小程序','xcx','sys_device_type','','default','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'小程序'),(39,'000000',1,'已撤销','cancel','wf_business_status','','danger','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'已撤销'),(40,'000000',2,'草稿','draft','wf_business_status','','info','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'草稿'),(41,'000000',3,'待审核','waiting','wf_business_status','','primary','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'待审核'),(42,'000000',4,'已完成','finish','wf_business_status','','success','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'已完成'),(43,'000000',5,'已作废','invalid','wf_business_status','','danger','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'已作废'),(44,'000000',6,'已退回','back','wf_business_status','','danger','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'已退回'),(45,'000000',7,'已终止','termination','wf_business_status','','danger','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'已终止'),(46,'000000',1,'自定义表单','static','wf_form_type','','success','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'自定义表单'),(47,'000000',2,'动态表单','dynamic','wf_form_type','','primary','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'动态表单'),(48,'000000',1,'撤销','cancel','wf_task_status','','danger','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'撤销'),(49,'000000',2,'通过','pass','wf_task_status','','success','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'通过'),(50,'000000',3,'待审核','waiting','wf_task_status','','primary','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'待审核'),(51,'000000',4,'作废','invalid','wf_task_status','','danger','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'作废'),(52,'000000',5,'退回','back','wf_task_status','','danger','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'退回'),(53,'000000',6,'终止','termination','wf_task_status','','danger','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'终止'),(54,'000000',7,'转办','transfer','wf_task_status','','primary','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'转办'),(55,'000000',8,'委托','depute','wf_task_status','','primary','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'委托'),(56,'000000',9,'抄送','copy','wf_task_status','','primary','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'抄送'),(57,'000000',10,'加签','sign','wf_task_status','','primary','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'加签'),(58,'000000',11,'减签','sign_off','wf_task_status','','danger','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'减签'),(59,'000000',11,'超时','timeout','wf_task_status','','danger','N',103,1,'2026-06-10 19:14:54',NULL,NULL,'超时'),(115,'000000',1,'已打卡','0','patrol_check_status','','success','N',103,1,'2026-06-10 20:46:27',1,'2026-06-10 20:46:27',NULL),(116,'000000',2,'未打卡','1','patrol_check_status','','danger','N',103,1,'2026-06-10 20:46:27',1,'2026-06-10 20:46:27',NULL),(117,'000000',1,'正常','0','patrol_check_result','','success','N',103,1,'2026-06-10 20:46:27',1,'2026-06-10 20:46:27',NULL),(118,'000000',2,'异常','1','patrol_check_result','','danger','N',103,1,'2026-06-10 20:46:27',1,'2026-06-10 20:46:27',NULL),(119,'000000',1,'防损人员','1','person_type','','default','N',103,1,'2026-06-11 12:15:51',1,'2026-06-11 12:15:51',NULL),(120,'000000',2,'施工人员','2','person_type','','default','N',103,1,'2026-06-11 12:15:51',1,'2026-06-11 12:15:51',NULL),(121,'000000',3,'特岗人员','3','person_type','','default','N',103,1,'2026-06-11 12:15:51',1,'2026-06-11 12:15:51',NULL),(122,'000000',1,'特种作业操作证','1','certificate_type','','default','N',103,1,'2026-06-11 12:15:51',1,'2026-06-11 12:15:51',NULL),(123,'000000',2,'安全生产管理人员证','2','certificate_type','','default','N',103,1,'2026-06-11 12:15:51',1,'2026-06-11 12:15:51',NULL),(124,'000000',3,'电工证','3','certificate_type','','default','N',103,1,'2026-06-11 12:15:51',1,'2026-06-11 12:15:51',NULL),(125,'000000',4,'焊工证','4','certificate_type','','default','N',103,1,'2026-06-11 12:15:51',1,'2026-06-11 12:15:51',NULL),(126,'000000',5,'高处作业证','5','certificate_type','','default','N',103,1,'2026-06-11 12:15:51',1,'2026-06-11 12:15:51',NULL),(127,'000000',6,'消防安全管理员证','6','certificate_type','','default','N',103,1,'2026-06-11 12:15:51',1,'2026-06-11 12:15:51',NULL),(128,'000000',1,'已投保','1','insurance_status','','success','N',103,1,'2026-06-11 12:15:51',1,'2026-06-11 12:15:51',NULL),(129,'000000',2,'未投保','0','insurance_status','','danger','N',103,1,'2026-06-11 12:15:51',1,'2026-06-11 12:15:51',NULL),(12069,'000000',1,'调任','调任','audit_change_type','','primary','N',103,1,'2026-06-11 12:15:52',1,'2026-06-11 12:15:52',NULL),(12070,'000000',2,'离职','离职','audit_change_type','','danger','N',103,1,'2026-06-11 12:15:52',1,'2026-06-11 12:15:52',NULL),(12074,'000000',1,'重大风险','重大风险','warning_level','','danger','N',103,1,'2026-06-11 12:15:52',1,'2026-06-11 12:15:52',NULL),(12075,'000000',2,'较大风险','较大风险','warning_level','','warning','N',103,1,'2026-06-11 12:15:52',1,'2026-06-11 12:15:52',NULL),(12076,'000000',3,'一般风险','一般风险','warning_level','','primary','N',103,1,'2026-06-11 12:15:52',1,'2026-06-11 12:15:52',NULL),(12077,'000000',1,'电梯','电梯','equipment_type','','default','N',103,1,'2026-06-11 12:15:52',1,'2026-06-11 12:15:52',NULL),(12078,'000000',2,'压力容器','压力容器','equipment_type','','default','N',103,1,'2026-06-11 12:15:52',1,'2026-06-11 12:15:52',NULL),(12079,'000000',3,'起重机械','起重机械','equipment_type','','default','N',103,1,'2026-06-11 12:15:52',1,'2026-06-11 12:15:52',NULL),(12080,'000000',4,'叉车','叉车','equipment_type','','default','N',103,1,'2026-06-11 12:15:52',1,'2026-06-11 12:15:52',NULL),(12081,'000000',5,'锅炉','锅炉','equipment_type','','default','N',103,1,'2026-06-11 12:15:52',1,'2026-06-11 12:15:52',NULL),(12082,'000000',1,'微博','微博','opinion_source','','default','N',103,1,'2026-06-11 12:15:52',1,'2026-06-11 12:15:52',NULL),(12083,'000000',2,'微信','微信','opinion_source','','default','N',103,1,'2026-06-11 12:15:52',1,'2026-06-11 12:15:52',NULL),(12084,'000000',3,'新闻网站','新闻网站','opinion_source','','default','N',103,1,'2026-06-11 12:15:52',1,'2026-06-11 12:15:52',NULL),(12085,'000000',4,'论坛','论坛','opinion_source','','default','N',103,1,'2026-06-11 12:15:52',1,'2026-06-11 12:15:52',NULL),(12086,'000000',5,'短视频','短视频','opinion_source','','default','N',103,1,'2026-06-11 12:15:52',1,'2026-06-11 12:15:52',NULL),(12087,'000000',1,'重大','重大','opinion_risk_level','','danger','N',103,1,'2026-06-11 12:15:52',1,'2026-06-11 12:15:52',NULL),(12088,'000000',2,'较大','较大','opinion_risk_level','','warning','N',103,1,'2026-06-11 12:15:52',1,'2026-06-11 12:15:52',NULL),(12089,'000000',3,'一般','一般','opinion_risk_level','','primary','N',103,1,'2026-06-11 12:15:52',1,'2026-06-11 12:15:52',NULL),(12090,'000000',1,'特大事故','特大事故','accident_level','','danger','N',103,1,'2026-06-11 12:15:52',1,'2026-06-11 12:15:52',NULL),(12091,'000000',2,'重大事故','重大事故','accident_level','','warning','N',103,1,'2026-06-11 12:15:52',1,'2026-06-11 12:15:52',NULL),(12092,'000000',3,'较大事故','较大事故','accident_level','','primary','N',103,1,'2026-06-11 12:15:52',1,'2026-06-11 12:15:52',NULL),(12093,'000000',4,'一般事故','一般事故','accident_level','','info','N',103,1,'2026-06-11 12:15:52',1,'2026-06-11 12:15:52',NULL),(12094,'000000',1,'高处坠落','高处坠落','accident_type',NULL,NULL,'N',103,1,'2026-06-11 20:26:46',1,NULL,NULL),(12095,'000000',2,'物体打击','物体打击','accident_type',NULL,NULL,'N',103,1,'2026-06-11 20:26:58',1,NULL,NULL),(12096,'000000',3,'机械伤害','机械伤害','accident_type',NULL,NULL,'N',103,1,'2026-06-11 20:26:58',1,NULL,NULL),(12097,'000000',4,'触电','触电','accident_type',NULL,NULL,'N',103,1,'2026-06-11 20:26:58',1,NULL,NULL),(12098,'000000',5,'火灾','火灾','accident_type',NULL,NULL,'N',103,1,'2026-06-11 20:26:58',1,NULL,NULL),(12099,'000000',6,'坍塌','坍塌','accident_type',NULL,NULL,'N',103,1,'2026-06-11 20:26:58',1,NULL,NULL),(12100,'000000',7,'其他','其他','accident_type',NULL,NULL,'N',103,1,'2026-06-11 20:26:58',1,NULL,NULL),(12101,'000000',1,'门店安全隐患','门店安全隐患','hazard_type',NULL,NULL,'N',103,1,'2026-06-11 20:27:13',1,NULL,NULL),(12102,'000000',2,'物流安全隐患','物流安全隐患','hazard_type',NULL,NULL,'N',103,1,'2026-06-11 20:27:13',1,NULL,NULL),(12103,'000000',3,'市场安全隐患','市场安全隐患','hazard_type',NULL,NULL,'N',103,1,'2026-06-11 20:27:13',1,NULL,NULL),(12109,'000000',1,'待维护','待维护','maintenance_status',NULL,NULL,'N',103,1,'2026-06-11 20:27:26',1,NULL,NULL),(12110,'000000',2,'维护中','维护中','maintenance_status',NULL,NULL,'N',103,1,'2026-06-11 20:27:26',1,NULL,NULL),(12111,'000000',3,'已维护','已维护','maintenance_status',NULL,NULL,'N',103,1,'2026-06-11 20:27:26',1,NULL,NULL),(12112,'000000',1,'待审计','待审计','audit_status',NULL,NULL,'N',103,1,'2026-06-11 20:27:26',1,NULL,NULL),(12113,'000000',2,'已完成','已完成','audit_status',NULL,NULL,'N',103,1,'2026-06-11 20:27:26',1,NULL,NULL),(12114,'000000',1,'调任','调任','person_change_type',NULL,NULL,'N',103,1,'2026-06-11 20:27:38',1,NULL,NULL),(12115,'000000',2,'离职','离职','person_change_type',NULL,NULL,'N',103,1,'2026-06-11 20:27:38',1,NULL,NULL),(12116,'000000',1,'园区巡检打卡','园区巡检打卡','patrol_type',NULL,NULL,'N',103,1,'2026-06-11 20:27:38',1,NULL,NULL),(12117,'000000',2,'门店闭店检查','门店闭店检查','patrol_type',NULL,NULL,'N',103,1,'2026-06-11 20:27:38',1,NULL,NULL),(12118,'000000',3,'打样设施设备检查','打样设施设备检查','patrol_type',NULL,NULL,'N',103,1,'2026-06-11 20:27:38',1,NULL,NULL),(12119,'000000',1,'每日','每日','patrol_cycle',NULL,NULL,'N',103,1,'2026-06-11 20:27:38',1,NULL,NULL),(12120,'000000',2,'每周','每周','patrol_cycle',NULL,NULL,'N',103,1,'2026-06-11 20:27:38',1,NULL,NULL),(12121,'000000',3,'每月','每月','patrol_cycle',NULL,NULL,'N',103,1,'2026-06-11 20:27:38',1,NULL,NULL),(12122,'000000',1,'临时施工上报','临时施工上报','work_type',NULL,NULL,'N',103,1,'2026-06-11 20:35:42',1,NULL,NULL),(12123,'000000',2,'改造工程上报','改造工程上报','work_type',NULL,NULL,'N',103,1,'2026-06-11 20:35:42',1,NULL,NULL),(12124,'000000',1,'电气危险源','电气危险源','danger_source_type',NULL,NULL,'N',103,1,'2026-06-11 20:36:15',1,NULL,NULL),(12125,'000000',2,'消防危险源','消防危险源','danger_source_type',NULL,NULL,'N',103,1,'2026-06-11 20:36:15',1,NULL,NULL),(12126,'000000',3,'高空危险源','高空危险源','danger_source_type',NULL,NULL,'N',103,1,'2026-06-11 20:36:15',1,NULL,NULL),(12127,'000000',4,'设备危险源','设备危险源','danger_source_type',NULL,NULL,'N',103,1,'2026-06-11 20:36:15',1,NULL,NULL),(12128,'000000',5,'食品危险源','食品危险源','danger_source_type',NULL,NULL,'N',103,1,'2026-06-11 20:36:15',1,NULL,NULL),(12129,'000000',1,'安全警示','安全警示','warning_type',NULL,NULL,'N',103,1,'2026-06-11 20:36:39',1,NULL,NULL),(12130,'000000',2,'食安警示','食安警示','warning_type',NULL,NULL,'N',103,1,'2026-06-11 20:36:39',1,NULL,NULL),(12131,'000000',3,'社会警示','社会警示','warning_type',NULL,NULL,'N',103,1,'2026-06-11 20:36:39',1,NULL,NULL),(12132,'000000',1,'门店安全隐患','store','risk_danger_type','','primary','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'门店安全隐患'),(12133,'000000',2,'物流安全隐患','logistics','risk_danger_type','','success','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'物流安全隐患'),(12134,'000000',3,'市场安全隐患','market','risk_danger_type','','warning','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'市场安全隐患'),(12135,'000000',1,'高风险','high','risk_danger_level','','danger','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'高风险'),(12136,'000000',2,'中风险','medium','risk_danger_level','','warning','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'中风险'),(12137,'000000',3,'低风险','low','risk_danger_level','','success','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'低风险'),(12138,'000000',1,'待处理','pending','risk_handle_status','','danger','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'待处理'),(12139,'000000',2,'处理中','processing','risk_handle_status','','warning','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'处理中'),(12140,'000000',3,'已处理','completed','risk_handle_status','','success','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'已处理'),(12141,'000000',4,'已驳回','rejected','risk_handle_status','','info','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'已驳回'),(12142,'000000',1,'高','high','risk_risk_level','','danger','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'高'),(12143,'000000',2,'中','medium','risk_risk_level','','warning','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'中'),(12144,'000000',3,'低','low','risk_risk_level','','success','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'低'),(12145,'000000',1,'电气','electrical','risk_source_type','','primary','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'电气'),(12146,'000000',2,'消防','fire','risk_source_type','','danger','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'消防'),(12147,'000000',3,'高空','high_altitude','risk_source_type','','warning','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'高空'),(12148,'000000',4,'设备','equipment','risk_source_type','','info','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'设备'),(12149,'000000',5,'食品','food','risk_source_type','','success','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'食品'),(12150,'000000',1,'正常','normal','risk_source_status','','success','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'正常'),(12151,'000000',2,'已消除','eliminated','risk_source_status','','info','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'已消除'),(12152,'000000',3,'整改中','rectifying','risk_source_status','','warning','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'整改中'),(12153,'000000',1,'临时施工','temporary','risk_work_type','','primary','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'临时施工'),(12154,'000000',2,'改造工程','renovation','risk_work_type','','warning','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'改造工程'),(12155,'000000',3,'设备维修','maintenance','risk_work_type','','info','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'设备维修'),(12156,'000000',4,'高空作业','high_altitude','risk_work_type','','danger','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'高空作业'),(12157,'000000',1,'待审核','pending','risk_audit_status','','warning','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'待审核'),(12158,'000000',2,'审核通过','approved','risk_audit_status','','success','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'审核通过'),(12159,'000000',3,'审核不通过','rejected','risk_audit_status','','danger','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'审核不通过'),(12160,'000000',1,'防损','loss_prevention','risk_job_type','','primary','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'防损'),(12161,'000000',2,'施工','construction','risk_job_type','','warning','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'施工'),(12162,'000000',3,'特岗','special_post','risk_job_type','','danger','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'特岗'),(12163,'000000',4,'管理','management','risk_job_type','','info','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'管理'),(12164,'000000',1,'在职','active','risk_personnel_status','','success','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'在职'),(12165,'000000',2,'离职','left','risk_personnel_status','','info','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'离职'),(12166,'000000',3,'休假','leave','risk_personnel_status','','warning','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'休假'),(12167,'000000',1,'健康','healthy','risk_health_status','','success','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'健康'),(12168,'000000',2,'亚健康','subhealthy','risk_health_status','','warning','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'亚健康'),(12169,'000000',3,'需关注','attention','risk_health_status','','danger','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'需关注'),(12170,'000000',1,'电工证','electrician','risk_cert_type','','primary','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'电工证'),(12171,'000000',2,'焊工证','welder','risk_cert_type','','warning','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'焊工证'),(12172,'000000',3,'高处作业证','high_altitude','risk_cert_type','','danger','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'高处作业证'),(12173,'000000',4,'消防证','fire_safety','risk_cert_type','','danger','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'消防证'),(12174,'000000',5,'健康证','health','risk_cert_type','','success','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'健康证'),(12175,'000000',1,'有效','valid','risk_cert_status','','success','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'有效'),(12176,'000000',2,'即将过期','expiring','risk_cert_status','','warning','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'即将过期'),(12177,'000000',3,'已过期','expired','risk_cert_status','','danger','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'已过期'),(12178,'000000',1,'入职','entry','risk_change_type','','success','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'入职'),(12179,'000000',2,'离职','leave','risk_change_type','','info','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'离职'),(12180,'000000',3,'调岗','transfer','risk_change_type','','primary','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'调岗'),(12181,'000000',4,'晋升','promotion','risk_change_type','','warning','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'晋升'),(12182,'000000',5,'降级','demotion','risk_change_type','','danger','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'降级'),(12183,'000000',1,'食品安全','food_safety','risk_warning_type','','danger','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'食品安全'),(12184,'000000',2,'消防安全','fire_safety','risk_warning_type','','danger','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'消防安全'),(12185,'000000',3,'治安安全','security','risk_warning_type','','warning','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'治安安全'),(12186,'000000',4,'交通安全','traffic','risk_warning_type','','info','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'交通安全'),(12187,'000000',1,'紧急','urgent','risk_warning_level','','danger','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'紧急'),(12188,'000000',2,'重要','important','risk_warning_level','','warning','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'重要'),(12189,'000000',3,'一般','normal','risk_warning_level','','info','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'一般'),(12190,'000000',1,'已发布','published','risk_warning_status','','success','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'已发布'),(12191,'000000',2,'已撤回','withdrawn','risk_warning_status','','info','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'已撤回'),(12192,'000000',3,'已过期','expired','risk_warning_status','','warning','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'已过期'),(12193,'000000',1,'电梯','elevator','risk_equipment_type','','primary','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'电梯'),(12194,'000000',2,'锅炉','boiler','risk_equipment_type','','danger','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'锅炉'),(12195,'000000',3,'压力容器','pressure_vessel','risk_equipment_type','','warning','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'压力容器'),(12196,'000000',4,'起重机械','lifting','risk_equipment_type','','info','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'起重机械'),(12197,'000000',5,'叉车','forklift','risk_equipment_type','','info','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'叉车'),(12198,'000000',1,'在用','in_use','risk_use_status','','success','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'在用'),(12199,'000000',2,'停用','stopped','risk_use_status','','info','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'停用'),(12200,'000000',3,'维修中','repairing','risk_use_status','','warning','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'维修中'),(12201,'000000',4,'已报废','scrapped','risk_use_status','','danger','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'已报废'),(12202,'000000',1,'已检验','inspected','risk_inspection_status','','success','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'已检验'),(12203,'000000',2,'待检验','pending','risk_inspection_status','','warning','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'待检验'),(12204,'000000',3,'已过期','expired','risk_inspection_status','','danger','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'已过期'),(12205,'000000',1,'日常保养','routine','risk_maintenance_type','','primary','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'日常保养'),(12206,'000000',2,'定期检修','periodic','risk_maintenance_type','','info','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'定期检修'),(12207,'000000',3,'故障维修','breakdown','risk_maintenance_type','','warning','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'故障维修'),(12208,'000000',4,'大修','overhaul','risk_maintenance_type','','danger','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'大修'),(12209,'000000',1,'已完成','completed','risk_maintenance_status','','success','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'已完成'),(12210,'000000',2,'进行中','in_progress','risk_maintenance_status','','warning','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'进行中'),(12211,'000000',3,'已暂停','paused','risk_maintenance_status','','info','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'已暂停'),(12212,'000000',1,'食品安全','food_safety','risk_opinion_type','','danger','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'食品安全'),(12213,'000000',2,'服务质量','service','risk_opinion_type','','warning','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'服务质量'),(12214,'000000',3,'价格争议','price','risk_opinion_type','','info','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'价格争议'),(12215,'000000',4,'安全事故','safety','risk_opinion_type','','danger','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'安全事故'),(12216,'000000',5,'其他','other','risk_opinion_type','','info','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'其他'),(12217,'000000',1,'正面','positive','risk_sentiment_type','','success','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'正面'),(12218,'000000',2,'中性','neutral','risk_sentiment_type','','info','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'中性'),(12219,'000000',3,'负面','negative','risk_sentiment_type','','danger','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'负面'),(12220,'000000',1,'小','low','risk_influence_level','','success','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'小'),(12221,'000000',2,'中','medium','risk_influence_level','','warning','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'中'),(12222,'000000',3,'大','high','risk_influence_level','','danger','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'大'),(12223,'000000',1,'人身伤害','injury','risk_accident_type','','danger','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'人身伤害'),(12224,'000000',2,'设备事故','equipment','risk_accident_type','','warning','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'设备事故'),(12225,'000000',3,'火灾事故','fire','risk_accident_type','','danger','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'火灾事故'),(12226,'000000',4,'交通事故','traffic','risk_accident_type','','warning','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'交通事故'),(12227,'000000',5,'其他事故','other','risk_accident_type','','info','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'其他事故'),(12228,'000000',1,'一般事故','general','risk_accident_level','','info','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'一般事故'),(12229,'000000',2,'较大事故','major','risk_accident_level','','warning','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'较大事故'),(12230,'000000',3,'重大事故','serious','risk_accident_level','','danger','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'重大事故'),(12231,'000000',4,'特别重大','critical','risk_accident_level','','danger','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'特别重大'),(12232,'000000',1,'日常巡检','daily','risk_task_type','','primary','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'日常巡检'),(12233,'000000',2,'专项检查','special','risk_task_type','','warning','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'专项检查'),(12234,'000000',3,'节前检查','holiday','risk_task_type','','info','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'节前检查'),(12235,'000000',1,'待执行','pending','risk_task_status','','warning','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'待执行'),(12236,'000000',2,'进行中','in_progress','risk_task_status','','primary','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'进行中'),(12237,'000000',3,'已完成','completed','risk_task_status','','success','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'已完成'),(12238,'000000',4,'已取消','cancelled','risk_task_status','','info','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'已取消'),(12239,'000000',1,'安全','safety','risk_item_type','','danger','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'安全'),(12240,'000000',2,'卫生','sanitation','risk_item_type','','info','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'卫生'),(12241,'000000',3,'设备','equipment','risk_item_type','','warning','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'设备'),(12242,'000000',4,'消防','fire','risk_item_type','','danger','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'消防'),(12243,'000000',1,'拍照','photo','risk_check_method','','primary','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'拍照'),(12244,'000000',2,'扫码','scan','risk_check_method','','info','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'扫码'),(12245,'000000',3,'手工','manual','risk_check_method','','warning','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'手工'),(12246,'000000',1,'合格','pass','risk_check_result','','success','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'合格'),(12247,'000000',2,'不合格','fail','risk_check_result','','danger','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'不合格'),(12248,'000000',3,'部分合格','partial','risk_check_result','','warning','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'部分合格'),(12249,'000000',1,'待整改','pending','risk_rectificate_status','','warning','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'待整改'),(12250,'000000',2,'整改中','in_progress','risk_rectificate_status','','primary','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'整改中'),(12251,'000000',3,'已整改','completed','risk_rectificate_status','','success','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'已整改'),(12252,'000000',4,'已验收','verified','risk_rectificate_status','','success','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'已验收'),(12253,'000000',1,'已打卡','checked','risk_record_status','','success','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'已打卡'),(12254,'000000',2,'未打卡','unchecked','risk_record_status','','danger','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'未打卡'),(12255,'000000',3,'异常打卡','abnormal','risk_record_status','','warning','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'异常打卡'),(12256,'000000',1,'通过','pass','risk_audit_result','','success','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'通过'),(12257,'000000',2,'不通过','fail','risk_audit_result','','danger','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'不通过'),(12258,'000000',1,'全部','all','risk_publish_scope','','primary','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'全部'),(12259,'000000',2,'门店','store','risk_publish_scope','','info','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'门店'),(12260,'000000',3,'部门','dept','risk_publish_scope','','info','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'部门'),(12261,'000000',1,'身份证','id_card','risk_file_type','','primary','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'身份证'),(12262,'000000',2,'证书','certificate','risk_file_type','','info','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'证书'),(12263,'000000',3,'合同','contract','risk_file_type','','warning','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'合同'),(12264,'000000',4,'照片','photo','risk_file_type','','success','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'照片'),(12265,'000000',5,'其他','other','risk_file_type','','info','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'其他'),(12266,'000000',1,'男','male','risk_gender','','primary','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'男'),(12267,'000000',2,'女','female','risk_gender','','danger','N',0,1,'2026-06-18 16:19:53',NULL,NULL,'女'),(20100,'000000',1,'重大','重大','risk_opinion_level',NULL,'danger','Y',103,1,'2026-06-20 16:26:18',1,'2026-06-20 16:26:18','重大舆情'),(20101,'000000',2,'较大','较大','risk_opinion_level',NULL,'warning','N',103,1,'2026-06-20 16:26:18',1,'2026-06-20 16:26:18','较大舆情'),(20102,'000000',3,'一般','一般','risk_opinion_level',NULL,'info','N',103,1,'2026-06-20 16:26:18',1,'2026-06-20 16:26:18','一般舆情'),(20200,'000000',1,'待处理','待处理','risk_opinion_status',NULL,'warning','Y',103,1,'2026-06-20 16:26:18',1,'2026-06-20 16:26:18','待处理舆情'),(20201,'000000',2,'处理中','处理中','risk_opinion_status',NULL,'primary','N',103,1,'2026-06-20 16:26:18',1,'2026-06-20 16:26:18','处理中舆情'),(20202,'000000',3,'已处理','已处理','risk_opinion_status',NULL,'success','N',103,1,'2026-06-20 16:26:18',1,'2026-06-20 16:26:18','已处理舆情'),(21100,'000000',1,'特别重大','特别重大','risk_accident_level',NULL,'danger','N',103,1,'2026-06-20 17:06:21',1,'2026-06-20 17:06:21','特别重大事故'),(21101,'000000',2,'重大','重大','risk_accident_level',NULL,'danger','N',103,1,'2026-06-20 17:06:21',1,'2026-06-20 17:06:21','重大事故'),(21102,'000000',3,'较大','较大','risk_accident_level',NULL,'warning','N',103,1,'2026-06-20 17:06:21',1,'2026-06-20 17:06:21','较大事故'),(21103,'000000',4,'一般','一般','risk_accident_level',NULL,'primary','N',103,1,'2026-06-20 17:06:21',1,'2026-06-20 17:06:21','一般事故'),(21200,'000000',1,'人身伤害','人身伤害','risk_accident_type',NULL,'danger','N',103,1,'2026-06-20 17:06:21',1,'2026-06-20 17:06:21','人身伤害事故'),(21201,'000000',2,'设备损坏','设备损坏','risk_accident_type',NULL,'warning','N',103,1,'2026-06-20 17:06:21',1,'2026-06-20 17:06:21','设备损坏事故'),(21202,'000000',3,'火灾','火灾','risk_accident_type',NULL,'danger','N',103,1,'2026-06-20 17:06:21',1,'2026-06-20 17:06:21','火灾事故'),(21203,'000000',4,'爆炸','爆炸','risk_accident_type',NULL,'danger','N',103,1,'2026-06-20 17:06:21',1,'2026-06-20 17:06:21','爆炸事故'),(21204,'000000',5,'交通事故','交通事故','risk_accident_type',NULL,'warning','N',103,1,'2026-06-20 17:06:21',1,'2026-06-20 17:06:21','交通事故'),(21205,'000000',6,'其他','其他','risk_accident_type',NULL,'info','N',103,1,'2026-06-20 17:06:21',1,'2026-06-20 17:06:21','其他事故'),(21300,'000000',1,'待处理','待处理','risk_accident_status',NULL,'danger','Y',103,1,'2026-06-20 17:06:21',1,'2026-06-20 17:06:21','待处理事故'),(21301,'000000',2,'调查中','调查中','risk_accident_status',NULL,'warning','N',103,1,'2026-06-20 17:06:21',1,'2026-06-20 17:06:21','调查中事故'),(21302,'000000',3,'已结束','已结束','risk_accident_status',NULL,'success','N',103,1,'2026-06-20 17:06:21',1,'2026-06-20 17:06:21','已结束事故'),(21303,'000000',4,'待考核','待考核','risk_accident_status',NULL,'info','N',103,1,'2026-06-20 17:06:21',1,'2026-06-20 17:06:21','待考核事故'),(22100,'000000',1,'园区巡检打卡','园区巡检打卡','risk_inspection_type',NULL,'primary','N',103,1,'2026-06-20 17:49:18',1,'2026-06-20 17:49:18',''),(22101,'000000',2,'门店闭店检查','门店闭店检查','risk_inspection_type',NULL,'success','N',103,1,'2026-06-20 17:49:18',1,'2026-06-20 17:49:18',''),(22102,'000000',3,'打样设施设备检查','打样设施设备检查','risk_inspection_type',NULL,'warning','N',103,1,'2026-06-20 17:49:18',1,'2026-06-20 17:49:18',''),(22103,'000000',4,'日常巡检','日常巡检','risk_inspection_type',NULL,'info','N',103,1,'2026-06-20 17:49:18',1,'2026-06-20 17:49:18',''),(22200,'000000',1,'常规','常规','risk_inspection_method',NULL,'primary','Y',103,1,'2026-06-20 17:49:18',1,'2026-06-20 17:49:18',''),(22201,'000000',2,'扫码','扫码','risk_inspection_method',NULL,'warning','N',103,1,'2026-06-20 17:49:18',1,'2026-06-20 17:49:18',''),(22300,'000000',1,'已打卡','已打卡','risk_inspection_status',NULL,'success','Y',103,1,'2026-06-20 17:49:18',1,'2026-06-20 17:49:18',''),(22301,'000000',2,'未打卡','未打卡','risk_inspection_status',NULL,'danger','N',103,1,'2026-06-20 17:49:18',1,'2026-06-20 17:49:18',''),(22302,'000000',3,'异常打卡','异常打卡','risk_inspection_status',NULL,'warning','N',103,1,'2026-06-20 17:49:18',1,'2026-06-20 17:49:18',''),(22400,'000000',1,'正常','正常','risk_inspection_result',NULL,'success','Y',103,1,'2026-06-20 17:49:18',1,'2026-06-20 17:49:18',''),(22401,'000000',2,'异常','异常','risk_inspection_result',NULL,'danger','N',103,1,'2026-06-20 17:49:18',1,'2026-06-20 17:49:18',''),(22500,'000000',1,'环境检查','环境检查','risk_inspection_item_type',NULL,'primary','N',103,1,'2026-06-20 17:49:18',1,'2026-06-20 17:49:18',''),(22501,'000000',2,'设备检查','设备检查','risk_inspection_item_type',NULL,'warning','N',103,1,'2026-06-20 17:49:18',1,'2026-06-20 17:49:18',''),(22502,'000000',3,'安全防护','安全防护','risk_inspection_item_type',NULL,'danger','N',103,1,'2026-06-20 17:49:18',1,'2026-06-20 17:49:18',''),(22503,'000000',4,'人员行为','人员行为','risk_inspection_item_type',NULL,'info','N',103,1,'2026-06-20 17:49:18',1,'2026-06-20 17:49:18',''),(22504,'000000',5,'消防设施','消防设施','risk_inspection_item_type',NULL,'danger','N',103,1,'2026-06-20 17:49:18',1,'2026-06-20 17:49:18',''),(22600,'000000',1,'每日','每日','risk_inspection_cycle',NULL,'primary','Y',103,1,'2026-06-20 17:49:18',1,'2026-06-20 17:49:18',''),(22601,'000000',2,'每周','每周','risk_inspection_cycle',NULL,'success','N',103,1,'2026-06-20 17:49:18',1,'2026-06-20 17:49:18',''),(22602,'000000',3,'每月','每月','risk_inspection_cycle',NULL,'warning','N',103,1,'2026-06-20 17:49:18',1,'2026-06-20 17:49:18',''),(22603,'000000',1,'安全知识','安全知识','safety_training_type',NULL,NULL,'N',103,1,'2026-06-11 20:25:50',1,NULL,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 '字典主键',
  `tenant_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '000000' 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 '字典类型',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL 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 `tenant_id` (`tenant_id`,`dict_type`)
) ENGINE=InnoDB AUTO_INCREMENT=1208 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,'000000','用户性别','sys_user_sex',103,1,'2026-06-10 19:14:54',NULL,NULL,'用户性别列表'),(2,'000000','菜单状态','sys_show_hide',103,1,'2026-06-10 19:14:54',NULL,NULL,'菜单状态列表'),(3,'000000','系统开关','sys_normal_disable',103,1,'2026-06-10 19:14:54',NULL,NULL,'系统开关列表'),(6,'000000','系统是否','sys_yes_no',103,1,'2026-06-10 19:14:54',NULL,NULL,'系统是否列表'),(7,'000000','通知类型','sys_notice_type',103,1,'2026-06-10 19:14:54',NULL,NULL,'通知类型列表'),(8,'000000','通知状态','sys_notice_status',103,1,'2026-06-10 19:14:54',NULL,NULL,'通知状态列表'),(9,'000000','操作类型','sys_oper_type',103,1,'2026-06-10 19:14:54',NULL,NULL,'操作类型列表'),(10,'000000','系统状态','sys_common_status',103,1,'2026-06-10 19:14:54',NULL,NULL,'登录状态列表'),(11,'000000','授权类型','sys_grant_type',103,1,'2026-06-10 19:14:54',NULL,NULL,'认证授权类型'),(12,'000000','设备类型','sys_device_type',103,1,'2026-06-10 19:14:54',NULL,NULL,'客户端设备类型'),(13,'000000','业务状态','wf_business_status',103,1,'2026-06-10 19:14:54',NULL,NULL,'业务状态列表'),(14,'000000','表单类型','wf_form_type',103,1,'2026-06-10 19:14:54',NULL,NULL,'表单类型列表'),(15,'000000','任务状态','wf_task_status',103,1,'2026-06-10 19:14:54',NULL,NULL,'任务状态'),(20,'000000','人员变动类型','audit_change_type',103,1,'2026-06-10 20:46:27',1,'2026-06-10 20:46:27',NULL),(23,'000000','设备类型','equipment_type',103,1,'2026-06-10 20:46:27',1,'2026-06-10 20:46:27',NULL),(24,'000000','舆情来源','opinion_source',103,1,'2026-06-10 20:46:27',1,'2026-06-10 20:46:27',NULL),(25,'000000','舆情风险等级','opinion_risk_level',103,1,'2026-06-10 20:46:27',1,'2026-06-10 20:46:27',NULL),(29,'000000','巡检打卡状态','patrol_check_status',103,1,'2026-06-10 20:46:27',1,'2026-06-10 20:46:27',NULL),(30,'000000','巡检打卡结果','patrol_check_result',103,1,'2026-06-10 20:46:27',1,'2026-06-10 20:46:27',NULL),(31,'000000','人员类型','person_type',103,1,'2026-06-11 12:15:51',1,'2026-06-11 12:15:51',NULL),(32,'000000','岗位证书类型','certificate_type',103,1,'2026-06-11 12:15:51',1,'2026-06-11 12:15:51',NULL),(33,'000000','保险状态','insurance_status',103,1,'2026-06-11 12:15:51',1,'2026-06-11 12:15:51',NULL),(34,'000000','隐患类型','risk_danger_type',0,1,'2026-06-18 16:19:53',NULL,NULL,'安全隐患类型字典'),(35,'000000','隐患等级','risk_danger_level',0,1,'2026-06-18 16:19:53',NULL,NULL,'隐患等级字典'),(36,'000000','处理状态','risk_handle_status',0,1,'2026-06-18 16:19:53',NULL,NULL,'处理状态字典'),(37,'000000','风险等级','risk_risk_level',0,1,'2026-06-18 16:19:53',NULL,NULL,'风险等级字典'),(38,'000000','危险源类型','risk_source_type',0,1,'2026-06-18 16:19:53',NULL,NULL,'危险源类型字典'),(39,'000000','危险源状态','risk_source_status',0,1,'2026-06-18 16:19:53',NULL,NULL,'危险源状态字典'),(40,'000000','作业类型','risk_work_type',0,1,'2026-06-18 16:19:53',NULL,NULL,'作业类型字典'),(41,'000000','审核状态','risk_audit_status',0,1,'2026-06-18 16:19:53',NULL,NULL,'审核状态字典'),(42,'000000','工种','risk_job_type',0,1,'2026-06-18 16:19:53',NULL,NULL,'工种字典'),(43,'000000','人员状态','risk_personnel_status',0,1,'2026-06-18 16:19:53',NULL,NULL,'人员状态字典'),(44,'000000','健康状况','risk_health_status',0,1,'2026-06-18 16:19:53',NULL,NULL,'健康状况字典'),(45,'000000','证书类型','risk_cert_type',0,1,'2026-06-18 16:19:53',NULL,NULL,'证书类型字典'),(46,'000000','证书状态','risk_cert_status',0,1,'2026-06-18 16:19:53',NULL,NULL,'证书状态字典'),(47,'000000','变动类型','risk_change_type',0,1,'2026-06-18 16:19:53',NULL,NULL,'变动类型字典'),(48,'000000','警示类型','risk_warning_type',0,1,'2026-06-18 16:19:53',NULL,NULL,'警示类型字典'),(49,'000000','警示等级','risk_warning_level',0,1,'2026-06-18 16:19:53',NULL,NULL,'警示等级字典'),(50,'000000','警示状态','risk_warning_status',0,1,'2026-06-18 16:19:53',NULL,NULL,'警示状态字典'),(51,'000000','设备类型','risk_equipment_type',0,1,'2026-06-18 16:19:53',NULL,NULL,'设备类型字典'),(52,'000000','使用状态','risk_use_status',0,1,'2026-06-18 16:19:53',NULL,NULL,'使用状态字典'),(53,'000000','检验状态','risk_inspection_status',0,1,'2026-06-18 16:19:53',NULL,NULL,'检验状态字典'),(54,'000000','维护类型','risk_maintenance_type',0,1,'2026-06-18 16:19:53',NULL,NULL,'维护类型字典'),(55,'000000','维护状态','risk_maintenance_status',0,1,'2026-06-18 16:19:53',NULL,NULL,'维护状态字典'),(56,'000000','舆情类型','risk_opinion_type',0,1,'2026-06-18 16:19:53',NULL,NULL,'舆情类型字典'),(57,'000000','情感类型','risk_sentiment_type',0,1,'2026-06-18 16:19:53',NULL,NULL,'情感类型字典'),(58,'000000','影响等级','risk_influence_level',0,1,'2026-06-18 16:19:53',NULL,NULL,'影响等级字典'),(59,'000000','事故类型','risk_accident_type',0,1,'2026-06-18 16:19:53',NULL,NULL,'事故类型字典'),(60,'000000','事故等级','risk_accident_level',0,1,'2026-06-18 16:19:53',NULL,NULL,'事故等级字典'),(61,'000000','巡检任务类型','risk_task_type',0,1,'2026-06-18 16:19:53',NULL,NULL,'巡检任务类型字典'),(62,'000000','巡检任务状态','risk_task_status',0,1,'2026-06-18 16:19:53',NULL,NULL,'巡检任务状态字典'),(63,'000000','巡检项目类型','risk_item_type',0,1,'2026-06-18 16:19:53',NULL,NULL,'巡检项目类型字典'),(64,'000000','检查方式','risk_check_method',0,1,'2026-06-18 16:19:53',NULL,NULL,'检查方式字典'),(65,'000000','检查结果','risk_check_result',0,1,'2026-06-18 16:19:53',NULL,NULL,'检查结果字典'),(66,'000000','整改状态','risk_rectificate_status',0,1,'2026-06-18 16:19:53',NULL,NULL,'整改状态字典'),(67,'000000','打卡记录状态','risk_record_status',0,1,'2026-06-18 16:19:53',NULL,NULL,'打卡记录状态字典'),(68,'000000','审核结果','risk_audit_result',0,1,'2026-06-18 16:19:53',NULL,NULL,'审核结果字典'),(69,'000000','发布范围','risk_publish_scope',0,1,'2026-06-18 16:19:53',NULL,NULL,'发布范围字典'),(70,'000000','文件类型','risk_file_type',0,1,'2026-06-18 16:19:53',NULL,NULL,'文件类型字典'),(71,'000000','性别','risk_gender',0,1,'2026-06-18 16:19:53',NULL,NULL,'性别字典'),(1001,'000000','舆情风险等级','risk_opinion_level',103,1,'2026-06-20 16:24:54',1,'2026-06-20 16:24:54','舆情推送-风险等级字典'),(1002,'000000','舆情处置状态','risk_opinion_status',103,1,'2026-06-20 16:24:54',1,'2026-06-20 16:24:54','舆情推送-处置状态字典'),(1103,'000000','事故状态','risk_accident_status',103,1,'2026-06-20 17:06:21',1,'2026-06-20 17:06:21','事故上报-事故处置状态字典'),(1201,'000000','巡检类型','risk_inspection_type',103,1,'2026-06-20 17:49:18',1,'2026-06-20 17:49:18','巡检管理-巡检类型字典'),(1202,'000000','打卡方式','risk_inspection_method',103,1,'2026-06-20 17:49:18',1,'2026-06-20 17:49:18','巡检管理-打卡方式字典'),(1204,'000000','打卡结果','risk_inspection_result',103,1,'2026-06-20 17:49:18',1,'2026-06-20 17:49:18','巡检管理-打卡结果字典'),(1205,'000000','巡检项目大类','risk_inspection_item_type',103,1,'2026-06-20 17:49:18',1,'2026-06-20 17:49:18','巡检管理-巡检项目大类字典'),(1206,'000000','巡检周期','risk_inspection_cycle',103,1,'2026-06-20 17:49:18',1,'2026-06-20 17:49:18','巡检管理-巡检周期字典'),(1207,'000000','安全培训类型','safety_training_type',103,1,'2026-06-11 20:25:50',1,NULL,'安全培训类型');
/*!40000 ALTER TABLE `sys_dict_type` 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 COMMENT '访问ID',
  `tenant_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '000000' COMMENT '租户编号',
  `user_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '用户账号',
  `client_key` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '客户端',
  `device_type` varchar(32) 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 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 (2064668234509967361,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-10 19:17:21'),(2064688176370266114,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-10 20:36:36'),(2064691225197260801,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-10 20:48:43'),(2064692672957755393,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-10 20:54:28'),(2064692863387545601,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-10 20:55:13'),(2064998820831264770,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-11 17:10:59'),(2065000024642674689,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-11 17:15:46'),(2065049442628644866,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-11 20:32:09'),(2065355426914770945,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-12 16:48:01'),(2065404007541592066,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-12 20:01:03'),(2066875469221826561,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-16 21:28:07'),(2067555153492230145,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-18 18:28:57'),(2067556922297335809,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-18 18:35:58'),(2067560127332794369,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-18 18:48:42'),(2067560377200066561,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-18 18:49:42'),(2067564156716761089,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-18 19:04:43'),(2067569318952878081,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-18 19:25:14'),(2067569584691396609,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','1','验证码错误','2026-06-18 19:26:17'),(2067569816745459713,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-18 19:27:13'),(2067575114835128322,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-18 19:48:16'),(2067595435801780226,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-18 21:09:01'),(2067597202287435777,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','退出成功','2026-06-18 21:16:02'),(2067597285171077122,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-18 21:16:22'),(2067598412843261954,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-18 21:20:50'),(2067775287410511873,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-19 09:03:41'),(2067886342950297602,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-19 16:24:58'),(2067921711263584257,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-19 18:45:31'),(2068178242542440449,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','1','验证码错误','2026-06-20 11:44:53'),(2068178260661833730,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-20 11:44:57'),(2068246501681770497,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-20 16:16:07'),(2068253434169991170,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-20 16:43:40'),(2068264265247027201,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-20 17:26:42'),(2068264324080529410,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-20 17:26:56'),(2068282159246790658,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','1','验证码已失效','2026-06-20 18:37:48'),(2068282244982558722,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-20 18:38:09'),(2068534654086860802,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-21 11:21:08'),(2068535831604154369,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-21 11:25:48'),(2068612354575093761,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','1','验证码已失效','2026-06-21 16:29:53'),(2068612373181026306,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-21 16:29:57'),(2068664765205336066,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-21 19:58:09'),(2068667163269287937,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-21 20:07:40'),(2068674502831525890,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','退出成功','2026-06-21 20:36:50'),(2068674639368704001,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-21 20:37:23'),(2068675449779539970,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','退出成功','2026-06-21 20:40:36'),(2068676438792228865,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-21 20:44:32'),(2068676508145045506,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-21 20:44:48'),(2068688363076915202,'000000','admin','','','0:0:0:0:0:0:0:1','内网IP','Unknown','Unknown','1','验证码已失效','2026-06-21 21:31:55'),(2068689328739913729,'000000','admin','','','0:0:0:0:0:0:0:1','内网IP','Unknown','Unknown','1','验证码错误','2026-06-21 21:35:45'),(2068698738983899138,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-21 22:13:09'),(2068868753146208257,'000000','admin','','','0:0:0:0:0:0:0:1','内网IP','Unknown','Unknown','0','登录成功','2026-06-22 09:28:43'),(2069359613281538050,'000000','admin','','','0:0:0:0:0:0:0:1','内网IP','Unknown','Unknown','1','验证码已失效','2026-06-23 17:59:13'),(2069363180620976130,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-23 18:13:24'),(2069379370856652801,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-23 19:17:44'),(2069383429898543105,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-23 19:33:52'),(2069387686160801794,'000000','admin','','','0:0:0:0:0:0:0:1','内网IP','Unknown','Unknown','1','验证码已失效','2026-06-23 19:50:46'),(2069390099961782273,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-23 20:00:22'),(2069398537202737153,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-23 20:33:53'),(2069406059414331394,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-23 21:03:47'),(2069427656384749570,'000000','admin','pc','pc','0:0:0:0:0:0:0:1','内网IP','Chrome','OSX','0','登录成功','2026-06-23 22:29:36'),(2069636061441302529,'000000','admin','pc','pc','180.125.105.200','中国|江苏省|淮安市|电信|CN','Chrome','OSX','0','登录成功','2026-06-24 12:17:44'),(2069636349606764545,'000000','admin','pc','pc','180.125.105.200','中国|江苏省|淮安市|电信|CN','Chrome','OSX','0','退出成功','2026-06-24 12:18:52'),(2069636378518102017,'000000','admin','pc','pc','180.125.105.200','中国|江苏省|淮安市|电信|CN','Chrome','OSX','0','登录成功','2026-06-24 12:18:59'),(2069637219996147714,'000000','admin','pc','pc','180.125.105.200','中国|江苏省|淮安市|电信|CN','Chrome','OSX','0','退出成功','2026-06-24 12:22:20'),(2069637243765268481,'000000','admin','pc','pc','180.125.105.200','中国|江苏省|淮安市|电信|CN','Chrome','OSX','0','登录成功','2026-06-24 12:22:26'),(2069637500330844162,'000000','admin','pc','pc','180.125.105.200','中国|江苏省|淮安市|电信|CN','Chrome','OSX','0','登录成功','2026-06-24 12:23:27'),(2069637860889993218,'000000','admin','pc','pc','180.125.105.200','中国|江苏省|淮安市|电信|CN','Chrome','OSX','1','验证码错误','2026-06-24 12:24:53'),(2069637874303377410,'000000','admin','pc','pc','180.125.105.200','中国|江苏省|淮安市|电信|CN','Chrome','OSX','0','登录成功','2026-06-24 12:24:56'),(2069638325786648577,'000000','admin','pc','pc','114.237.89.234','中国|江苏省|连云港市|电信|CN','MicroMessenger','OSX','0','登录成功','2026-06-24 12:26:44'),(2069638706419736577,'000000','admin','pc','pc','117.89.193.31','中国|江苏省|南京市|电信|CN','Chrome','Windows 10 or Windows Server 2016','1','验证码错误','2026-06-24 12:28:14'),(2069638739588292609,'000000','admin','pc','pc','117.89.193.31','中国|江苏省|南京市|电信|CN','Chrome','Windows 10 or Windows Server 2016','0','登录成功','2026-06-24 12:28:22'),(2069645838598807554,'000000','admin','pc','pc','117.89.193.31','中国|江苏省|南京市|电信|CN','Chrome','Windows 10 or Windows Server 2016','0','登录成功','2026-06-24 12:56:35'),(2069661937033814017,'000000','admin','pc','pc','117.89.193.31','中国|江苏省|南京市|电信|CN','Chrome','Windows 10 or Windows Server 2016','0','登录成功','2026-06-24 14:00:33'),(2069684937825198081,'000000','admin','pc','pc','180.125.105.200','中国|江苏省|淮安市|电信|CN','Chrome','OSX','0','登录成功','2026-06-24 15:31:57'),(2069685292248080385,'000000','admin','pc','pc','180.125.105.200','中国|江苏省|淮安市|电信|CN','Chrome','OSX','0','登录成功','2026-06-24 15:33:21'),(2069685646993924098,'000000','admin','pc','pc','117.62.192.185','中国|江苏省|南京市|电信|CN','Chrome','OSX','0','登录成功','2026-06-24 15:34:46'),(2069692953244999681,'000000','admin','pc','pc','180.125.105.200','中国|江苏省|淮安市|电信|CN','Chrome','OSX','0','退出成功','2026-06-24 16:03:48'),(2069701330679373826,'000000','admin','pc','pc','121.224.146.117','中国|江苏省|苏州市|电信|CN','MSEdge','Windows 10 or Windows Server 2016','0','登录成功','2026-06-24 16:37:05'),(2069701561546448897,'000000','admin','pc','pc','121.224.146.117','中国|江苏省|苏州市|电信|CN','Firefox','Windows 10 or Windows Server 2016','0','登录成功','2026-06-24 16:38:00'),(2069701695340552194,'000000','admin','pc','pc','121.224.146.117','中国|江苏省|苏州市|电信|CN','Chrome','Windows 10 or Windows Server 2016','0','登录成功','2026-06-24 16:38:32'),(2069707897105555458,'000000','admin','pc','pc','180.105.173.229','中国|江苏省|连云港市|电信|CN','Safari','OSX','0','登录成功','2026-06-24 17:03:11'),(2069977942951985153,'000000','admin','pc','pc','180.125.105.200','中国|江苏省|淮安市|电信|CN','Chrome','OSX','0','登录成功','2026-06-25 10:56:15'),(2070044106466000898,'000000','admin','pc','pc','117.62.192.185','中国|江苏省|南京市|电信|CN','Chrome','OSX','0','登录成功','2026-06-25 15:19:09'),(2070058092393660417,'000000','admin','pc','pc','121.224.146.117','中国|江苏省|苏州市|电信|CN','MSEdge','Windows 10 or Windows Server 2016','0','登录成功','2026-06-25 16:14:44'),(2070069902505148417,'000000','admin','pc','pc','117.89.193.31','中国|江苏省|南京市|电信|CN','Chrome','Windows 10 or Windows Server 2016','0','登录成功','2026-06-25 17:01:39'),(2070072153172869121,'000000','admin','pc','pc','117.62.192.185','中国|江苏省|南京市|电信|CN','Chrome','OSX','0','登录成功','2026-06-25 17:10:36'),(2070124714034724866,'000000','admin','pc','pc','121.224.146.117','中国|江苏省|苏州市|电信|CN','Chrome','Windows 10 or Windows Server 2016','0','登录成功','2026-06-25 20:39:28'),(2070125002065969153,'000000','admin','pc','pc','121.224.146.117','中国|江苏省|苏州市|电信|CN','Chrome','Windows 10 or Windows Server 2016','0','登录成功','2026-06-25 20:40:36'),(2070128170782949378,'000000','admin','pc','pc','121.224.146.117','中国|江苏省|苏州市|电信|CN','Chrome','Windows 10 or Windows Server 2016','0','登录成功','2026-06-25 20:53:12'),(2070137854390697985,'000000','admin','pc','pc','121.224.146.117','中国|江苏省|苏州市|电信|CN','Chrome','Windows 10 or Windows Server 2016','0','登录成功','2026-06-25 21:31:40'),(2070146405897076737,'000000','admin','pc','pc','121.224.146.117','中国|江苏省|苏州市|电信|CN','Chrome','Windows 10 or Windows Server 2016','0','登录成功','2026-06-25 22:05:39'),(2070150044942336001,'000000','admin','pc','pc','121.224.146.117','中国|江苏省|苏州市|电信|CN','Chrome','Windows 10 or Windows Server 2016','0','登录成功','2026-06-25 22:20:07'),(2070150741335212034,'000000','admin','pc','pc','121.224.146.117','中国|江苏省|苏州市|电信|CN','Chrome','Windows 10 or Windows Server 2016','0','登录成功','2026-06-25 22:22:53'),(2070150846322835458,'000000','admin','pc','pc','121.224.146.117','中国|江苏省|苏州市|电信|CN','Chrome','Windows 10 or Windows Server 2016','0','登录成功','2026-06-25 22:23:18'),(2070151554145189889,'000000','admin','pc','pc','121.224.146.117','中国|江苏省|苏州市|电信|CN','Chrome','Windows 10 or Windows Server 2016','0','登录成功','2026-06-25 22:26:07'),(2071084847225196545,'000000','admin','pc','pc','121.224.146.117','中国|江苏省|苏州市|电信|CN','MSEdge','Windows 10 or Windows Server 2016','0','登录成功','2026-06-28 12:14:41'),(2071152372969492481,'000000','admin','pc','pc','180.125.105.200','中国|江苏省|淮安市|电信|CN','Chrome','OSX','0','登录成功','2026-06-28 16:43:01'),(2071201324594970626,'000000','admin','pc','pc','180.125.105.200','中国|江苏省|淮安市|电信|CN','Chrome','OSX','0','登录成功','2026-06-28 19:57:31'),(2071215285893718017,'000000','admin','pc','pc','121.224.146.117','中国|江苏省|苏州市|电信|CN','MSEdge','Windows 10 or Windows Server 2016','0','登录成功','2026-06-28 20:53:00'),(2071217509017444353,'000000','admin','pc','pc','180.125.105.200','中国|江苏省|淮安市|电信|CN','Chrome','OSX','0','登录成功','2026-06-28 21:01:50'),(2071226932569944066,'000000','admin','pc','pc','180.125.105.200','中国|江苏省|淮安市|电信|CN','Chrome','OSX','0','登录成功','2026-06-28 21:39:17'),(2071409878186700801,'000000','admin','pc','pc','121.225.245.6','中国|江苏省|南京市|电信|CN','Chrome','OSX','0','登录成功','2026-06-29 09:46:15'),(2071409906246594562,'000000','admin','pc','pc','114.238.170.65','中国|江苏省|淮安市|电信|CN','MicroMessenger','OSX','0','登录成功','2026-06-29 09:46:21'),(2071409956615991297,'000000','admin','pc','pc','117.89.193.31','中国|江苏省|南京市|电信|CN','WindowsWechat','Windows 10 or Windows Server 2016','0','登录成功','2026-06-29 09:46:33'),(2071409976845119490,'000000','admin','pc','pc','114.238.170.65','中国|江苏省|淮安市|电信|CN','MicroMessenger','OSX','0','退出成功','2026-06-29 09:46:38'),(2071415850640715777,'000000','admin','pc','pc','117.89.193.31','中国|江苏省|南京市|电信|CN','Chrome','Windows 10 or Windows Server 2016','0','登录成功','2026-06-29 10:09:58'),(2071423671696412674,'000000','admin','pc','pc','180.125.105.200','中国|江苏省|淮安市|电信|CN','Chrome','OSX','0','登录成功','2026-06-29 10:41:03'),(2071423840244518914,'000000','admin','pc','pc','117.89.193.31','中国|江苏省|南京市|电信|CN','WindowsWechat','Windows 10 or Windows Server 2016','0','登录成功','2026-06-29 10:41:43'),(2071424053633929217,'000000','admin','pc','pc','117.89.193.31','中国|江苏省|南京市|电信|CN','Chrome','Windows 10 or Windows Server 2016','0','登录成功','2026-06-29 10:42:34'),(2071427477356204033,'000000','admin','pc','pc','121.225.245.6','中国|江苏省|南京市|电信|CN','Chrome','OSX','0','登录成功','2026-06-29 10:56:11'),(2071433713510305794,'000000','admin','pc','pc','121.224.146.117','中国|江苏省|苏州市|电信|CN','MSEdge','Windows 10 or Windows Server 2016','0','登录成功','2026-06-29 11:20:57'),(2071437967729938433,'000000','admin','pc','pc','121.224.146.117','中国|江苏省|苏州市|电信|CN','Chrome','Windows 10 or Windows Server 2016','0','登录成功','2026-06-29 11:37:52'),(2071439011851587586,'000000','admin','pc','pc','121.224.146.117','中国|江苏省|苏州市|电信|CN','Chrome','Windows 10 or Windows Server 2016','0','登录成功','2026-06-29 11:42:01'),(2071439826146349058,'000000','admin','pc','pc','121.224.146.117','中国|江苏省|苏州市|电信|CN','Chrome','Windows 10 or Windows Server 2016','0','登录成功','2026-06-29 11:45:15'),(2071451777375195137,'000000','admin','pc','pc','121.224.146.117','中国|江苏省|苏州市|电信|CN','Chrome','Windows 10 or Windows Server 2016','0','登录成功','2026-06-29 12:32:44'),(2071470496889491458,'000000','admin','pc','pc','121.225.245.6','中国|江苏省|南京市|电信|CN','Chrome','OSX','0','登录成功','2026-06-29 13:47: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,
  `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_param` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL 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_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL 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=11952 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',103,1,'2026-06-10 19:14:54',NULL,NULL,'系统管理目录'),(2,'系统监控',0,3,'monitor',NULL,'',1,0,'M','0','0','','monitor',103,1,'2026-06-10 19:14:54',NULL,NULL,'系统监控目录'),(3,'系统工具',0,4,'tool',NULL,'',1,0,'M','0','0','','tool',103,1,'2026-06-10 19:14:54',NULL,NULL,'系统工具目录'),(4,'PLUS官网',0,5,'https://gitee.com/dromara/RuoYi-Vue-Plus',NULL,'',0,0,'M','0','0','','guide',103,1,'2026-06-10 19:14:54',NULL,NULL,'RuoYi-Vue-Plus官网地址'),(5,'测试菜单',0,5,'demo',NULL,'',1,0,'M','0','0','','star',103,1,'2026-06-10 19:14:54',NULL,NULL,'测试菜单'),(6,'租户管理',0,2,'tenant',NULL,'',1,0,'M','0','0','','chart',103,1,'2026-06-10 19:14:54',NULL,NULL,'租户管理目录'),(100,'用户管理',1,1,'user','system/user/index','',1,0,'C','0','0','system:user:list','user',103,1,'2026-06-10 19:14:54',NULL,NULL,'用户管理菜单'),(101,'角色管理',1,2,'role','system/role/index','',1,0,'C','0','0','system:role:list','peoples',103,1,'2026-06-10 19:14:54',NULL,NULL,'角色管理菜单'),(102,'菜单管理',1,3,'menu','system/menu/index','',1,0,'C','0','0','system:menu:list','tree-table',103,1,'2026-06-10 19:14:54',NULL,NULL,'菜单管理菜单'),(103,'部门管理',1,4,'dept','system/dept/index','',1,0,'C','0','0','system:dept:list','tree',103,1,'2026-06-10 19:14:54',NULL,NULL,'部门管理菜单'),(104,'岗位管理',1,5,'post','system/post/index','',1,0,'C','0','0','system:post:list','post',103,1,'2026-06-10 19:14:54',NULL,NULL,'岗位管理菜单'),(105,'字典管理',1,6,'dict','system/dict/index','',1,0,'C','0','0','system:dict:list','dict',103,1,'2026-06-10 19:14:54',NULL,NULL,'字典管理菜单'),(106,'参数设置',1,7,'config','system/config/index','',1,0,'C','0','0','system:config:list','edit',103,1,'2026-06-10 19:14:54',NULL,NULL,'参数设置菜单'),(107,'通知公告',1,8,'notice','system/notice/index','',1,0,'C','0','0','system:notice:list','message',103,1,'2026-06-10 19:14:54',NULL,NULL,'通知公告菜单'),(108,'日志管理',1,9,'log','','',1,0,'M','0','0','','log',103,1,'2026-06-10 19:14:54',NULL,NULL,'日志管理菜单'),(109,'在线用户',2,1,'online','monitor/online/index','',1,0,'C','0','0','monitor:online:list','online',103,1,'2026-06-10 19:14:54',NULL,NULL,'在线用户菜单'),(113,'缓存监控',2,5,'cache','monitor/cache/index','',1,0,'C','0','0','monitor:cache:list','redis',103,1,'2026-06-10 19:14:54',NULL,NULL,'缓存监控菜单'),(115,'代码生成',3,2,'gen','tool/gen/index','',1,0,'C','0','0','tool:gen:list','code',103,1,'2026-06-10 19:14:54',NULL,NULL,'代码生成菜单'),(116,'修改生成配置',3,2,'gen-edit/index/:tableId','tool/gen/editTable','',1,1,'C','1','0','tool:gen:edit','#',103,1,'2026-06-10 19:14:54',NULL,NULL,'/tool/gen'),(117,'Admin监控',2,5,'Admin','monitor/admin/index','',1,0,'C','0','0','monitor:admin:list','dashboard',103,1,'2026-06-10 19:14:54',NULL,NULL,'Admin监控菜单'),(118,'文件管理',1,10,'oss','system/oss/index','',1,0,'C','0','0','system:oss:list','upload',103,1,'2026-06-10 19:14:54',NULL,NULL,'文件管理菜单'),(120,'任务调度中心',2,6,'snailjob','monitor/snailjob/index','',1,0,'C','0','0','monitor:snailjob:list','job',103,1,'2026-06-10 19:14:54',NULL,NULL,'SnailJob控制台菜单'),(121,'租户管理',6,1,'tenant','system/tenant/index','',1,0,'C','0','0','system:tenant:list','list',103,1,'2026-06-10 19:14:54',NULL,NULL,'租户管理菜单'),(122,'租户套餐管理',6,2,'tenantPackage','system/tenantPackage/index','',1,0,'C','0','0','system:tenantPackage:list','form',103,1,'2026-06-10 19:14:54',NULL,NULL,'租户套餐管理菜单'),(123,'客户端管理',1,11,'client','system/client/index','',1,0,'C','0','0','system:client:list','international',103,1,'2026-06-10 19:14:54',NULL,NULL,'客户端管理菜单'),(130,'分配用户',1,2,'role-auth/user/:roleId','system/role/authUser','',1,1,'C','1','0','system:role:edit','#',103,1,'2026-06-10 19:14:54',NULL,NULL,'/system/role'),(131,'分配角色',1,1,'user-auth/role/:userId','system/user/authRole','',1,1,'C','1','0','system:user:edit','#',103,1,'2026-06-10 19:14:54',NULL,NULL,'/system/user'),(132,'字典数据',1,6,'dict-data/index/:dictId','system/dict/data','',1,1,'C','1','0','system:dict:list','#',103,1,'2026-06-10 19:14:54',NULL,NULL,'/system/dict'),(133,'文件配置管理',1,10,'oss-config/index','system/oss/config','',1,1,'C','1','0','system:ossConfig:list','#',103,1,'2026-06-10 19:14:54',NULL,NULL,'/system/oss'),(500,'操作日志',108,1,'operlog','monitor/operlog/index','',1,0,'C','0','0','monitor:operlog:list','form',103,1,'2026-06-10 19:14:54',NULL,NULL,'操作日志菜单'),(501,'登录日志',108,2,'logininfor','monitor/logininfor/index','',1,0,'C','0','0','monitor:logininfor:list','logininfor',103,1,'2026-06-10 19:14:54',NULL,NULL,'登录日志菜单'),(1001,'用户查询',100,1,'','','',1,0,'F','0','0','system:user:query','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1002,'用户新增',100,2,'','','',1,0,'F','0','0','system:user:add','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1003,'用户修改',100,3,'','','',1,0,'F','0','0','system:user:edit','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1004,'用户删除',100,4,'','','',1,0,'F','0','0','system:user:remove','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1005,'用户导出',100,5,'','','',1,0,'F','0','0','system:user:export','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1006,'用户导入',100,6,'','','',1,0,'F','0','0','system:user:import','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1007,'重置密码',100,7,'','','',1,0,'F','0','0','system:user:resetPwd','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1008,'角色查询',101,1,'','','',1,0,'F','0','0','system:role:query','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1009,'角色新增',101,2,'','','',1,0,'F','0','0','system:role:add','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1010,'角色修改',101,3,'','','',1,0,'F','0','0','system:role:edit','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1011,'角色删除',101,4,'','','',1,0,'F','0','0','system:role:remove','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1012,'角色导出',101,5,'','','',1,0,'F','0','0','system:role:export','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1013,'菜单查询',102,1,'','','',1,0,'F','0','0','system:menu:query','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1014,'菜单新增',102,2,'','','',1,0,'F','0','0','system:menu:add','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1015,'菜单修改',102,3,'','','',1,0,'F','0','0','system:menu:edit','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1016,'菜单删除',102,4,'','','',1,0,'F','0','0','system:menu:remove','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1017,'部门查询',103,1,'','','',1,0,'F','0','0','system:dept:query','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1018,'部门新增',103,2,'','','',1,0,'F','0','0','system:dept:add','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1019,'部门修改',103,3,'','','',1,0,'F','0','0','system:dept:edit','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1020,'部门删除',103,4,'','','',1,0,'F','0','0','system:dept:remove','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1021,'岗位查询',104,1,'','','',1,0,'F','0','0','system:post:query','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1022,'岗位新增',104,2,'','','',1,0,'F','0','0','system:post:add','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1023,'岗位修改',104,3,'','','',1,0,'F','0','0','system:post:edit','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1024,'岗位删除',104,4,'','','',1,0,'F','0','0','system:post:remove','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1025,'岗位导出',104,5,'','','',1,0,'F','0','0','system:post:export','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1026,'字典查询',105,1,'#','','',1,0,'F','0','0','system:dict:query','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1027,'字典新增',105,2,'#','','',1,0,'F','0','0','system:dict:add','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1028,'字典修改',105,3,'#','','',1,0,'F','0','0','system:dict:edit','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1029,'字典删除',105,4,'#','','',1,0,'F','0','0','system:dict:remove','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1030,'字典导出',105,5,'#','','',1,0,'F','0','0','system:dict:export','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1031,'参数查询',106,1,'#','','',1,0,'F','0','0','system:config:query','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1032,'参数新增',106,2,'#','','',1,0,'F','0','0','system:config:add','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1033,'参数修改',106,3,'#','','',1,0,'F','0','0','system:config:edit','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1034,'参数删除',106,4,'#','','',1,0,'F','0','0','system:config:remove','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1035,'参数导出',106,5,'#','','',1,0,'F','0','0','system:config:export','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1036,'公告查询',107,1,'#','','',1,0,'F','0','0','system:notice:query','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1037,'公告新增',107,2,'#','','',1,0,'F','0','0','system:notice:add','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1038,'公告修改',107,3,'#','','',1,0,'F','0','0','system:notice:edit','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1039,'公告删除',107,4,'#','','',1,0,'F','0','0','system:notice:remove','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1040,'操作查询',500,1,'#','','',1,0,'F','0','0','monitor:operlog:query','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1041,'操作删除',500,2,'#','','',1,0,'F','0','0','monitor:operlog:remove','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1042,'日志导出',500,4,'#','','',1,0,'F','0','0','monitor:operlog:export','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1043,'登录查询',501,1,'#','','',1,0,'F','0','0','monitor:logininfor:query','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1044,'登录删除',501,2,'#','','',1,0,'F','0','0','monitor:logininfor:remove','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1045,'日志导出',501,3,'#','','',1,0,'F','0','0','monitor:logininfor:export','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1046,'在线查询',109,1,'#','','',1,0,'F','0','0','monitor:online:query','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1047,'批量强退',109,2,'#','','',1,0,'F','0','0','monitor:online:batchLogout','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1048,'单条强退',109,3,'#','','',1,0,'F','0','0','monitor:online:forceLogout','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1050,'账户解锁',501,4,'#','','',1,0,'F','0','0','monitor:logininfor:unlock','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1055,'生成查询',115,1,'#','','',1,0,'F','0','0','tool:gen:query','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1056,'生成修改',115,2,'#','','',1,0,'F','0','0','tool:gen:edit','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1057,'生成删除',115,3,'#','','',1,0,'F','0','0','tool:gen:remove','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1058,'导入代码',115,2,'#','','',1,0,'F','0','0','tool:gen:import','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1059,'预览代码',115,4,'#','','',1,0,'F','0','0','tool:gen:preview','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1060,'生成代码',115,5,'#','','',1,0,'F','0','0','tool:gen:code','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1061,'客户端管理查询',123,1,'#','','',1,0,'F','0','0','system:client:query','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1062,'客户端管理新增',123,2,'#','','',1,0,'F','0','0','system:client:add','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1063,'客户端管理修改',123,3,'#','','',1,0,'F','0','0','system:client:edit','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1064,'客户端管理删除',123,4,'#','','',1,0,'F','0','0','system:client:remove','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1065,'客户端管理导出',123,5,'#','','',1,0,'F','0','0','system:client:export','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1500,'测试单表',5,1,'demo','demo/demo/index','',1,0,'C','0','0','demo:demo:list','#',103,1,'2026-06-10 19:14:54',NULL,NULL,'测试单表菜单'),(1501,'测试单表查询',1500,1,'#','','',1,0,'F','0','0','demo:demo:query','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1502,'测试单表新增',1500,2,'#','','',1,0,'F','0','0','demo:demo:add','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1503,'测试单表修改',1500,3,'#','','',1,0,'F','0','0','demo:demo:edit','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1504,'测试单表删除',1500,4,'#','','',1,0,'F','0','0','demo:demo:remove','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1505,'测试单表导出',1500,5,'#','','',1,0,'F','0','0','demo:demo:export','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1506,'测试树表',5,1,'tree','demo/tree/index','',1,0,'C','0','0','demo:tree:list','#',103,1,'2026-06-10 19:14:54',NULL,NULL,'测试树表菜单'),(1507,'测试树表查询',1506,1,'#','','',1,0,'F','0','0','demo:tree:query','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1508,'测试树表新增',1506,2,'#','','',1,0,'F','0','0','demo:tree:add','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1509,'测试树表修改',1506,3,'#','','',1,0,'F','0','0','demo:tree:edit','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1510,'测试树表删除',1506,4,'#','','',1,0,'F','0','0','demo:tree:remove','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1511,'测试树表导出',1506,5,'#','','',1,0,'F','0','0','demo:tree:export','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1600,'文件查询',118,1,'#','','',1,0,'F','0','0','system:oss:query','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1601,'文件上传',118,2,'#','','',1,0,'F','0','0','system:oss:upload','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1602,'文件下载',118,3,'#','','',1,0,'F','0','0','system:oss:download','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1603,'文件删除',118,4,'#','','',1,0,'F','0','0','system:oss:remove','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1606,'租户查询',121,1,'#','','',1,0,'F','0','0','system:tenant:query','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1607,'租户新增',121,2,'#','','',1,0,'F','0','0','system:tenant:add','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1608,'租户修改',121,3,'#','','',1,0,'F','0','0','system:tenant:edit','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1609,'租户删除',121,4,'#','','',1,0,'F','0','0','system:tenant:remove','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1610,'租户导出',121,5,'#','','',1,0,'F','0','0','system:tenant:export','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1611,'租户套餐查询',122,1,'#','','',1,0,'F','0','0','system:tenantPackage:query','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1612,'租户套餐新增',122,2,'#','','',1,0,'F','0','0','system:tenantPackage:add','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1613,'租户套餐修改',122,3,'#','','',1,0,'F','0','0','system:tenantPackage:edit','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1614,'租户套餐删除',122,4,'#','','',1,0,'F','0','0','system:tenantPackage:remove','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1615,'租户套餐导出',122,5,'#','','',1,0,'F','0','0','system:tenantPackage:export','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1620,'配置列表',118,5,'#','','',1,0,'F','0','0','system:ossConfig:list','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1621,'配置添加',118,6,'#','','',1,0,'F','0','0','system:ossConfig:add','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1622,'配置编辑',118,6,'#','','',1,0,'F','0','0','system:ossConfig:edit','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(1623,'配置删除',118,6,'#','','',1,0,'F','0','0','system:ossConfig:remove','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11616,'工作流',0,6,'workflow','','',1,0,'M','0','0','','workflow',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11618,'我的任务',0,7,'task','','',1,0,'M','0','0','','my-task',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11619,'我的待办',11618,2,'taskWaiting','workflow/task/taskWaiting','',1,1,'C','0','0','','waiting',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11620,'流程定义',11616,3,'processDefinition','workflow/processDefinition/index','',1,1,'C','0','0','workflow:definition:list','process-definition',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11621,'流程实例',11630,1,'processInstance','workflow/processInstance/index','',1,1,'C','0','0','workflow:instance:list','tree-table',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11622,'流程分类',11616,1,'category','workflow/category/index','',1,0,'C','0','0','workflow:category:list','category',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11623,'流程分类查询',11622,1,'#','','',1,0,'F','0','0','workflow:category:query','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11624,'流程分类新增',11622,2,'#','','',1,0,'F','0','0','workflow:category:add','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11625,'流程分类修改',11622,3,'#','','',1,0,'F','0','0','workflow:category:edit','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11626,'流程分类删除',11622,4,'#','','',1,0,'F','0','0','workflow:category:remove','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11627,'流程分类导出',11622,5,'#','','',1,0,'F','0','0','workflow:category:export','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11629,'我发起的',11618,1,'myDocument','workflow/task/myDocument','',1,1,'C','0','0','workflow:instance:currentList','guide',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11630,'流程监控',11616,4,'processMonitor','','',1,0,'M','0','0','','monitor',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11631,'待办任务',11630,2,'allTaskWaiting','workflow/task/allTaskWaiting','',1,1,'C','0','0','','waiting',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11632,'我的已办',11618,3,'taskFinish','workflow/task/taskFinish','',1,1,'C','0','0','','finish',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11633,'我的抄送',11618,4,'taskCopyList','workflow/task/taskCopyList','',1,1,'C','0','0','','my-copy',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11638,'请假申请',5,1,'leave','workflow/leave/index','',1,0,'C','0','0','workflow:leave:list','#',103,1,'2026-06-10 19:14:54',NULL,NULL,'请假申请菜单'),(11639,'请假申请查询',11638,1,'#','','',1,0,'F','0','0','workflow:leave:query','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11640,'请假申请新增',11638,2,'#','','',1,0,'F','0','0','workflow:leave:add','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11641,'请假申请修改',11638,3,'#','','',1,0,'F','0','0','workflow:leave:edit','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11642,'请假申请删除',11638,4,'#','','',1,0,'F','0','0','workflow:leave:remove','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11643,'请假申请导出',11638,5,'#','','',1,0,'F','0','0','workflow:leave:export','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11644,'流程定义查询',11620,1,'#','','',1,0,'F','0','0','workflow:definition:query','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11645,'流程定义新增',11620,2,'#','','',1,0,'F','0','0','workflow:definition:add','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11646,'流程定义修改',11620,3,'#','','',1,0,'F','0','0','workflow:definition:edit','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11647,'流程定义删除',11620,4,'#','','',1,0,'F','0','0','workflow:definition:remove','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11648,'流程定义导出',11620,5,'#','','',1,0,'F','0','0','workflow:definition:export','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11649,'流程定义导入',11620,6,'#','','',1,0,'F','0','0','workflow:definition:import','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11650,'流程定义发布/取消发布',11620,7,'#','','',1,0,'F','0','0','workflow:definition:publish','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11651,'流程定义复制',11620,8,'#','','',1,0,'F','0','0','workflow:definition:copy','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11652,'流程定义激活/挂起',11620,9,'#','','',1,0,'F','0','0','workflow:definition:active','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11653,'流程实例查询',11621,1,'#','','',1,0,'F','0','0','workflow:instance:query','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11654,'流程变量查询',11621,2,'#','','',1,0,'F','0','0','workflow:instance:variableQuery','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11655,'流程变量修改',11621,3,'#','','',1,0,'F','0','0','workflow:instance:variable','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11656,'流程实例激活/挂起',11621,4,'#','','',1,0,'F','0','0','workflow:instance:active','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11657,'流程实例删除',11621,5,'#','','',1,0,'F','0','0','workflow:instance:remove','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11658,'流程实例作废',11621,6,'#','','',1,0,'F','0','0','workflow:instance:invalid','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11659,'流程实例撤销',11621,7,'#','','',1,0,'F','0','0','workflow:instance:cancel','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11700,'流程设计',11616,5,'design/index','workflow/processDefinition/design','',1,1,'C','1','0','workflow:leave:edit','#',103,1,'2026-06-10 19:14:54',NULL,NULL,'/workflow/processDefinition'),(11701,'请假申请',11616,6,'leaveEdit/index','workflow/leave/leaveEdit','',1,1,'C','1','0','workflow:leave:edit','#',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(11855,'风控平台',0,6,'risk',NULL,NULL,1,0,'M','0','0','','warning',103,1,'2026-06-18 11:44:14',NULL,NULL,'风控平台目录'),(11856,'安全隐患',11855,1,'hiddenDanger','risk/hiddenDanger/index',NULL,1,0,'C','0','0','risk:hiddenDanger:list','#',103,1,'2026-06-18 11:44:14',NULL,NULL,'安全隐患菜单'),(11857,'隐患查询',11856,1,'#','',NULL,1,0,'F','0','0','risk:hiddenDanger:query','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11858,'隐患新增',11856,2,'#','',NULL,1,0,'F','0','0','risk:hiddenDanger:add','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11859,'隐患修改',11856,3,'#','',NULL,1,0,'F','0','0','risk:hiddenDanger:edit','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11860,'隐患删除',11856,4,'#','',NULL,1,0,'F','0','0','risk:hiddenDanger:remove','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11861,'隐患导出',11856,5,'#','',NULL,1,0,'F','0','0','risk:hiddenDanger:export','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11862,'隐患处理',11856,6,'#','',NULL,1,0,'F','0','0','risk:hiddenDanger:handle','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11863,'危险源上报',11855,2,'dangerSource','risk/dangerSource/index',NULL,1,0,'C','0','0','risk:dangerSource:list','#',103,1,'2026-06-18 11:44:14',NULL,NULL,'危险源上报菜单'),(11864,'危险源查询',11863,1,'#','',NULL,1,0,'F','0','0','risk:dangerSource:query','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11865,'危险源新增',11863,2,'#','',NULL,1,0,'F','0','0','risk:dangerSource:add','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11866,'危险源修改',11863,3,'#','',NULL,1,0,'F','0','0','risk:dangerSource:edit','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11867,'危险源删除',11863,4,'#','',NULL,1,0,'F','0','0','risk:dangerSource:remove','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11868,'危险源导出',11863,5,'#','',NULL,1,0,'F','0','0','risk:dangerSource:export','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11869,'作业上报',11855,3,'workReport','risk/workReport/index',NULL,1,0,'C','0','0','risk:workReport:list','#',103,1,'2026-06-18 11:44:14',NULL,NULL,'作业上报菜单'),(11870,'作业查询',11869,1,'#','',NULL,1,0,'F','0','0','risk:workReport:query','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11871,'作业新增',11869,2,'#','',NULL,1,0,'F','0','0','risk:workReport:add','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11872,'作业修改',11869,3,'#','',NULL,1,0,'F','0','0','risk:workReport:edit','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11873,'作业删除',11869,4,'#','',NULL,1,0,'F','0','0','risk:workReport:remove','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11874,'作业审核',11869,5,'#','',NULL,1,0,'F','0','0','risk:workReport:review','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11875,'作业导出',11869,6,'#','',NULL,1,0,'F','0','0','risk:workReport:export','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11876,'人员信息',11855,4,'personnel','risk/personnel/index',NULL,1,0,'C','0','0','risk:personnel:list','#',103,1,'2026-06-18 11:44:14',NULL,NULL,'人员信息菜单'),(11877,'人员查询',11876,1,'#','',NULL,1,0,'F','0','0','risk:personnel:query','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11878,'人员新增',11876,2,'#','',NULL,1,0,'F','0','0','risk:personnel:add','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11879,'人员修改',11876,3,'#','',NULL,1,0,'F','0','0','risk:personnel:edit','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11880,'人员删除',11876,4,'#','',NULL,1,0,'F','0','0','risk:personnel:remove','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11881,'证书查询',11948,5,'#','',NULL,1,0,'F','0','0','risk:personnelCert:list','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11882,'证书新增',11948,6,'#','',NULL,1,0,'F','0','0','risk:personnelCert:add','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11883,'证书修改',11948,7,'#','',NULL,1,0,'F','0','0','risk:personnelCert:edit','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11884,'证书删除',11948,8,'#','',NULL,1,0,'F','0','0','risk:personnelCert:remove','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11885,'审计工作',11855,5,'personnelChange','risk/personnelChange/index',NULL,1,0,'C','0','0','risk:personnelChange:list','#',103,1,'2026-06-18 11:44:14',NULL,NULL,'审计工作菜单'),(11886,'人员变动查询',11885,1,'#','',NULL,1,0,'F','0','0','risk:personnelChange:query','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11887,'人员变动新增',11885,2,'#','',NULL,1,0,'F','0','0','risk:personnelChange:add','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11888,'人员变动修改',11885,3,'#','',NULL,1,0,'F','0','0','risk:personnelChange:edit','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11889,'人员变动删除',11885,4,'#','',NULL,1,0,'F','0','0','risk:personnelChange:remove','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11890,'审计文件查询',11885,5,'#','',NULL,1,0,'F','0','0','risk:auditFile:list','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11891,'审计文件上传',11885,6,'#','',NULL,1,0,'F','0','0','risk:auditFile:add','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11892,'审计文件删除',11885,7,'#','',NULL,1,0,'F','0','0','risk:auditFile:remove','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11893,'风险警示',11855,6,'warning','risk/warning/index',NULL,1,0,'C','0','0','risk:warning:list','#',103,1,'2026-06-18 11:44:14',NULL,NULL,'风险警示菜单'),(11894,'警示查询',11893,1,'#','',NULL,1,0,'F','0','0','risk:warning:query','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11895,'警示新增',11893,2,'#','',NULL,1,0,'F','0','0','risk:warning:add','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11896,'警示修改',11893,3,'#','',NULL,1,0,'F','0','0','risk:warning:edit','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11897,'警示删除',11893,4,'#','',NULL,1,0,'F','0','0','risk:warning:remove','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11898,'特种设备',11855,7,'specialEquipment','risk/specialEquipment/index',NULL,1,0,'C','0','0','risk:specialEquipment:list','#',103,1,'2026-06-18 11:44:14',NULL,NULL,'特种设备菜单'),(11899,'设备查询',11898,1,'#','',NULL,1,0,'F','0','0','risk:specialEquipment:query','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11900,'设备新增',11898,2,'#','',NULL,1,0,'F','0','0','risk:specialEquipment:add','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11901,'设备修改',11898,3,'#','',NULL,1,0,'F','0','0','risk:specialEquipment:edit','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11902,'设备删除',11898,4,'#','',NULL,1,0,'F','0','0','risk:specialEquipment:remove','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11903,'设备维护查询',11949,5,'#','',NULL,1,0,'F','0','0','risk:equipmentMaintenance:list','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11904,'设备维护新增',11949,6,'#','',NULL,1,0,'F','0','0','risk:equipmentMaintenance:add','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11905,'设备维护修改',11949,7,'#','',NULL,1,0,'F','0','0','risk:equipmentMaintenance:edit','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11906,'设备维护删除',11949,8,'#','',NULL,1,0,'F','0','0','risk:equipmentMaintenance:remove','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11907,'舆情推送',11855,8,'publicOpinion','risk/publicOpinion/index',NULL,1,0,'C','0','0','risk:publicOpinion:list','#',103,1,'2026-06-18 11:44:14',NULL,NULL,'舆情推送菜单'),(11908,'舆情查询',11907,1,'#','',NULL,1,0,'F','0','0','risk:publicOpinion:query','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11909,'舆情新增',11907,2,'#','',NULL,1,0,'F','0','0','risk:publicOpinion:add','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11910,'舆情修改',11907,3,'#','',NULL,1,0,'F','0','0','risk:publicOpinion:edit','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11911,'舆情删除',11907,4,'#','',NULL,1,0,'F','0','0','risk:publicOpinion:remove','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11912,'舆情处理',11907,5,'#','',NULL,1,0,'F','0','0','risk:publicOpinion:handle','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11913,'事故上报',11855,9,'accident','risk/accident/index',NULL,1,0,'C','0','0','risk:accident:list','#',103,1,'2026-06-18 11:44:14',NULL,NULL,'事故上报菜单'),(11914,'事故查询',11913,1,'#','',NULL,1,0,'F','0','0','risk:accident:query','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11915,'事故新增',11913,2,'#','',NULL,1,0,'F','0','0','risk:accident:add','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11916,'事故修改',11913,3,'#','',NULL,1,0,'F','0','0','risk:accident:edit','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11917,'事故删除',11913,4,'#','',NULL,1,0,'F','0','0','risk:accident:remove','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11918,'巡检任务',11855,10,'inspectionTask','risk/inspectionTask/index',NULL,1,0,'C','0','0','risk:inspectionTask:list','#',103,1,'2026-06-18 11:44:14',NULL,NULL,'巡检任务菜单'),(11919,'巡检任务查询',11918,1,'#','',NULL,1,0,'F','0','0','risk:inspectionTask:query','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11920,'巡检任务新增',11918,2,'#','',NULL,1,0,'F','0','0','risk:inspectionTask:add','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11921,'巡检任务修改',11918,3,'#','',NULL,1,0,'F','0','0','risk:inspectionTask:edit','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11922,'巡检任务删除',11918,4,'#','',NULL,1,0,'F','0','0','risk:inspectionTask:remove','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11923,'巡检项目查询',11950,5,'#','',NULL,1,0,'F','0','0','risk:inspectionItem:list','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11924,'巡检项目新增',11950,6,'#','',NULL,1,0,'F','0','0','risk:inspectionItem:add','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11925,'巡检项目修改',11950,7,'#','',NULL,1,0,'F','0','0','risk:inspectionItem:edit','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11926,'巡检项目删除',11950,8,'#','',NULL,1,0,'F','0','0','risk:inspectionItem:remove','#',103,1,'2026-06-18 11:44:14',NULL,NULL,''),(11936,'文件上传',11855,11,'#','',NULL,1,0,'F','0','0','risk:file:upload','#',103,1,'2026-06-18 11:44:14',NULL,NULL,'文件上传'),(11937,'文件删除',11855,12,'#','',NULL,1,0,'F','0','0','risk:file:remove','#',103,1,'2026-06-18 11:44:14',NULL,NULL,'文件删除'),(11948,'人员证书',11876,5,'personnelCert','risk/personnelCert/index',NULL,1,0,'C','0','0','risk:personnelCert:list','peoples',103,1,'2026-06-18 19:22:48',NULL,NULL,'人员证书菜单'),(11949,'设备维护',11898,5,'equipmentMaintenance','risk/equipmentMaintenance/index',NULL,1,0,'C','0','0','risk:equipmentMaintenance:list','tool',103,1,'2026-06-18 19:22:48',NULL,NULL,'设备维护菜单'),(11950,'巡检项目',11918,5,'inspectionItem','risk/inspectionItem/index',NULL,1,0,'C','0','0','risk:inspectionItem:list','list',103,1,'2026-06-18 19:22:48',NULL,NULL,'巡检项目菜单'),(11951,'巡检明细',11938,5,'inspectionRecordDetail','risk/inspectionRecordDetail/index',NULL,1,0,'C','0','0','risk:inspectionRecordDetail:list','documentation',103,1,'2026-06-18 19:22:48',NULL,NULL,'巡检明细菜单');
/*!40000 ALTER TABLE `sys_menu` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sys_menu_bak_20260618`
--

DROP TABLE IF EXISTS `sys_menu_bak_20260618`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sys_menu_bak_20260618` (
  `menu_id` bigint NOT NULL DEFAULT '0',
  `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_param` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL 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_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '备注'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sys_menu_bak_20260618`
--

LOCK TABLES `sys_menu_bak_20260618` WRITE;
/*!40000 ALTER TABLE `sys_menu_bak_20260618` DISABLE KEYS */;
INSERT INTO `sys_menu_bak_20260618` VALUES (11808,'安全生产风控',0,10,'riskctrl',NULL,NULL,1,0,'M','0','0',NULL,'monitor',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18','安全生产风控模块'),(11809,'安全隐患',11808,1,'hazard','riskctrl/hazard/index',NULL,1,0,'C','0','0','riskctrl:hazard:list','edit',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18','安全隐患'),(11810,'作业上报',11808,2,'workReport','riskctrl/workReport/index',NULL,1,0,'C','0','0','riskctrl:workReport:list','edit',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18','作业上报'),(11811,'人员信息',11808,3,'personInfo','riskctrl/personInfo/index',NULL,1,0,'C','0','0','riskctrl:personInfo:list','user',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18','人员信息'),(11812,'统计工作',11808,4,'statistics','riskctrl/statistics/index',NULL,1,0,'C','0','0','riskctrl:statistics:list','chart',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18','统计工作'),(11813,'风险警示',11808,5,'riskWarning','riskctrl/riskWarning/index',NULL,1,0,'C','0','0','riskctrl:riskWarning:list','warn',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18','风险警示'),(11814,'特种设备',11808,6,'specialEquipment','riskctrl/specialEquipment/index',NULL,1,0,'C','0','0','riskctrl:specialEquipment:list','tool',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18','特种设备'),(11815,'安全培训',11808,7,'safetyTraining','riskctrl/safetyTraining/index',NULL,1,0,'C','0','0','riskctrl:safetyTraining:list','education',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18','安全培训'),(11816,'舆情警示',11808,8,'publicOpinion','riskctrl/publicOpinion/index',NULL,1,0,'C','0','0','riskctrl:publicOpinion:list','message',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18','舆情警示'),(11817,'事故上报',11808,9,'accidentReport','riskctrl/accidentReport/index',NULL,1,0,'C','0','0','riskctrl:accidentReport:list','sos',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18','事故上报'),(11818,'隐患新增',11809,1,'',NULL,NULL,1,0,'F','0','0','riskctrl:hazard:add','#',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18',NULL),(11819,'隐患编辑',11809,2,'',NULL,NULL,1,0,'F','0','0','riskctrl:hazard:edit','#',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18',NULL),(11820,'隐患删除',11809,3,'',NULL,NULL,1,0,'F','0','0','riskctrl:hazard:remove','#',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18',NULL),(11821,'隐患导出',11809,4,'',NULL,NULL,1,0,'F','0','0','riskctrl:hazard:export','#',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18',NULL),(11822,'作业新增',11810,1,'',NULL,NULL,1,0,'F','0','0','riskctrl:workReport:add','#',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18',NULL),(11823,'作业编辑',11810,2,'',NULL,NULL,1,0,'F','0','0','riskctrl:workReport:edit','#',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18',NULL),(11824,'作业删除',11810,3,'',NULL,NULL,1,0,'F','0','0','riskctrl:workReport:remove','#',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18',NULL),(11825,'作业导出',11810,4,'',NULL,NULL,1,0,'F','0','0','riskctrl:workReport:export','#',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18',NULL),(11826,'人员新增',11811,1,'',NULL,NULL,1,0,'F','0','0','riskctrl:personInfo:add','#',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18',NULL),(11827,'人员编辑',11811,2,'',NULL,NULL,1,0,'F','0','0','riskctrl:personInfo:edit','#',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18',NULL),(11828,'人员删除',11811,3,'',NULL,NULL,1,0,'F','0','0','riskctrl:personInfo:remove','#',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18',NULL),(11829,'人员导出',11811,4,'',NULL,NULL,1,0,'F','0','0','riskctrl:personInfo:export','#',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18',NULL),(11830,'警示新增',11813,1,'',NULL,NULL,1,0,'F','0','0','riskctrl:riskWarning:add','#',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18',NULL),(11831,'警示编辑',11813,2,'',NULL,NULL,1,0,'F','0','0','riskctrl:riskWarning:edit','#',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18',NULL),(11832,'警示删除',11813,3,'',NULL,NULL,1,0,'F','0','0','riskctrl:riskWarning:remove','#',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18',NULL),(11833,'警示导出',11813,4,'',NULL,NULL,1,0,'F','0','0','riskctrl:riskWarning:export','#',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18',NULL),(11834,'设备新增',11814,1,'',NULL,NULL,1,0,'F','0','0','riskctrl:specialEquipment:add','#',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18',NULL),(11835,'设备编辑',11814,2,'',NULL,NULL,1,0,'F','0','0','riskctrl:specialEquipment:edit','#',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18',NULL),(11836,'设备删除',11814,3,'',NULL,NULL,1,0,'F','0','0','riskctrl:specialEquipment:remove','#',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18',NULL),(11837,'设备导出',11814,4,'',NULL,NULL,1,0,'F','0','0','riskctrl:specialEquipment:export','#',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18',NULL),(11838,'培训新增',11815,1,'',NULL,NULL,1,0,'F','0','0','riskctrl:safetyTraining:add','#',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18',NULL),(11839,'培训编辑',11815,2,'',NULL,NULL,1,0,'F','0','0','riskctrl:safetyTraining:edit','#',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18',NULL),(11840,'培训删除',11815,3,'',NULL,NULL,1,0,'F','0','0','riskctrl:safetyTraining:remove','#',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18',NULL),(11841,'培训导出',11815,4,'',NULL,NULL,1,0,'F','0','0','riskctrl:safetyTraining:export','#',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18',NULL),(11842,'舆情新增',11816,1,'',NULL,NULL,1,0,'F','0','0','riskctrl:publicOpinion:add','#',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18',NULL),(11843,'舆情编辑',11816,2,'',NULL,NULL,1,0,'F','0','0','riskctrl:publicOpinion:edit','#',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18',NULL),(11844,'舆情删除',11816,3,'',NULL,NULL,1,0,'F','0','0','riskctrl:publicOpinion:remove','#',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18',NULL),(11845,'舆情导出',11816,4,'',NULL,NULL,1,0,'F','0','0','riskctrl:publicOpinion:export','#',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18',NULL),(11846,'事故新增',11817,1,'',NULL,NULL,1,0,'F','0','0','riskctrl:accidentReport:add','#',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18',NULL),(11847,'事故编辑',11817,2,'',NULL,NULL,1,0,'F','0','0','riskctrl:accidentReport:edit','#',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18',NULL),(11848,'事故删除',11817,3,'',NULL,NULL,1,0,'F','0','0','riskctrl:accidentReport:remove','#',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18',NULL),(11849,'事故导出',11817,4,'',NULL,NULL,1,0,'F','0','0','riskctrl:accidentReport:export','#',NULL,1,'2026-06-16 21:32:18',1,'2026-06-16 21:32:18',NULL),(11850,'夜间安全防范',11808,10,'nightSafety','riskctrl/nightSafety/index',NULL,1,0,'C','0','0','riskctrl:nightSafety:list','moon',NULL,1,'2026-06-16 21:45:22',NULL,NULL,''),(11851,'夜间安全防范查询',11850,1,'',NULL,NULL,1,0,'F','0','0','riskctrl:nightSafety:query','#',NULL,1,'2026-06-16 21:45:27',NULL,NULL,''),(11852,'夜间安全防范新增',11850,2,'',NULL,NULL,1,0,'F','0','0','riskctrl:nightSafety:add','#',NULL,1,'2026-06-16 21:45:27',NULL,NULL,''),(11853,'夜间安全防范修改',11850,3,'',NULL,NULL,1,0,'F','0','0','riskctrl:nightSafety:edit','#',NULL,1,'2026-06-16 21:45:27',NULL,NULL,''),(11854,'夜间安全防范删除',11850,4,'',NULL,NULL,1,0,'F','0','0','riskctrl:nightSafety:remove','#',NULL,1,'2026-06-16 21:45:27',NULL,NULL,'');
/*!40000 ALTER TABLE `sys_menu_bak_20260618` 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` bigint NOT NULL COMMENT '公告ID',
  `tenant_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '000000' COMMENT '租户编号',
  `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_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL 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 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 (1,'000000','温馨提醒：2018-07-01 新版本发布啦','2',_binary '0xe696b0e78988e69cace58685e5aeb9','0',103,1,'2026-06-10 19:14:54',NULL,NULL,'管理员'),(2,'000000','维护通知：2018-07-01 系统凌晨维护','1',_binary '0xe7bbb4e68aa4e58685e5aeb9','0',103,1,'2026-06-10 19:14:54',NULL,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 COMMENT '日志主键',
  `tenant_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '000000' 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(100) 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(4000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '请求参数',
  `json_result` varchar(4000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '返回参数',
  `status` int DEFAULT '0' COMMENT '操作状态（0正常 1异常）',
  `error_msg` varchar(4000) 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 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 (2065359642093936641,'000000','OSS对象存储',1,'org.dromara.system.controller.system.SysOssController.upload()','POST',1,'admin','研发部门','/resource/oss/upload','0:0:0:0:0:0:0:1','内网IP','','',1,'上传文件失败，请检查配置信息:[The service request was not made within 120 seconds of doBlockingWrite being invoked. Make sure to invoke the service request BEFORE invoking doBlockingWrite if your caller is single-threaded.]','2026-06-12 17:04:46',120470),(2065359728278495233,'000000','OSS对象存储',1,'org.dromara.system.controller.system.SysOssController.upload()','POST',1,'admin','研发部门','/resource/oss/upload','0:0:0:0:0:0:0:1','内网IP','','',1,'上传文件失败，请检查配置信息:[The service request was not made within 120 seconds of doBlockingWrite being invoked. Make sure to invoke the service request BEFORE invoking doBlockingWrite if your caller is single-threaded.]','2026-06-12 17:05:06',120015),(2065361541102743554,'000000','OSS对象存储',1,'org.dromara.system.controller.system.SysOssController.upload()','POST',1,'admin','研发部门','/resource/oss/upload','0:0:0:0:0:0:0:1','内网IP','','',1,'上传文件失败，请检查配置信息:[software.amazon.awssdk.core.exception.SdkClientException: Unable to execute HTTP request: Connection refused: /127.0.0.1:9000]','2026-06-12 17:12:19',678),(2065362683912130561,'000000','OSS对象存储',1,'org.dromara.system.controller.system.SysOssController.upload()','POST',1,'admin','研发部门','/resource/oss/upload','0:0:0:0:0:0:0:1','内网IP','','{\"code\":200,\"msg\":\"操作成功\",\"data\":{\"url\":\"http://106.55.100.207:9000/rjzytest/2026/06/12/c607a96bdd124e888dd6f75d7d409687.jpeg\",\"fileName\":\"7d8e4ef984565127f43d18799957560d.jpeg\",\"ossId\":\"2065362683807272961\"}}',0,'','2026-06-12 17:16:51',980),(2065362849549389825,'000000','OSS对象存储',1,'org.dromara.system.controller.system.SysOssController.upload()','POST',1,'admin','研发部门','/resource/oss/upload','0:0:0:0:0:0:0:1','内网IP','','{\"code\":200,\"msg\":\"操作成功\",\"data\":{\"url\":\"http://106.55.100.207:9000/rjzytest/2026/06/12/92b392f185254955a2aac5bb3218683f.jpeg\",\"fileName\":\"5a5b173339f917bea77fed26c58562a7.jpeg\",\"ossId\":\"2065362849478086657\"}}',0,'','2026-06-12 17:17:31',354),(2065362969464541185,'000000','作业上报',1,'org.dromara.riskctrl.controller.WorkReportController.add()','POST',1,'admin','研发部门','/riskctrl/workReport','0:0:0:0:0:0:0:1','内网IP','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"reportId\":null,\"reportNo\":\"\",\"workType\":\"临时施工上报\",\"projectName\":\"test\",\"startTime\":\"2026-06-01 00:00:00\",\"endTime\":\"2026-06-30 00:00:00\",\"safetyOfficer\":\"test\",\"contactPhone\":\"13111111111\",\"workImages\":\"http://106.55.100.207:9000/rjzytest/2026/06/12/c607a96bdd124e888dd6f75d7d409687.jpeg\",\"permitFiles\":\"http://106.55.100.207:9000/rjzytest/2026/06/12/92b392f185254955a2aac5bb3218683f.jpeg\",\"workDesc\":\"test1111\",\"auditStatus\":null,\"auditComment\":null,\"auditUser\":null,\"auditTime\":null,\"status\":null,\"remark\":\"test1111\"}','',1,'cannot find converter from WorkReportBo to WorkReport','2026-06-12 17:17:59',24),(2065404580965863426,'000000','OSS对象存储',1,'org.dromara.system.controller.system.SysOssController.upload()','POST',1,'admin','研发部门','/resource/oss/upload','0:0:0:0:0:0:0:1','内网IP','','{\"code\":200,\"msg\":\"操作成功\",\"data\":{\"url\":\"http://106.55.100.207:9000/rjzytest/2026/06/12/d35a593d6615402eb13643b9a67551d2.jpg\",\"fileName\":\"3b4d3f8f672e59b96d68e6cca01c4038.jpg\",\"ossId\":\"2065404580915531778\"}}',0,'','2026-06-12 20:03:20',997),(2065404979542183938,'000000','OSS对象存储',1,'org.dromara.system.controller.system.SysOssController.upload()','POST',1,'admin','研发部门','/resource/oss/upload','0:0:0:0:0:0:0:1','内网IP','','{\"code\":200,\"msg\":\"操作成功\",\"data\":{\"url\":\"http://106.55.100.207:9000/rjzytest/2026/06/12/c4f01ea534304370a8c0b11c7c53d6aa.jpeg\",\"fileName\":\"5a5b173339f917bea77fed26c58562a7.jpeg\",\"ossId\":\"2065404979521212417\"}}',0,'','2026-06-12 20:04:55',391),(2065405006503170050,'000000','OSS对象存储',1,'org.dromara.system.controller.system.SysOssController.upload()','POST',1,'admin','研发部门','/resource/oss/upload','0:0:0:0:0:0:0:1','内网IP','','{\"code\":200,\"msg\":\"操作成功\",\"data\":{\"url\":\"http://106.55.100.207:9000/rjzytest/2026/06/12/bb54249aff2f436a84e195f70ff8da34.jpeg\",\"fileName\":\"7d8e4ef984565127f43d18799957560d.jpeg\",\"ossId\":\"2065405006482198529\"}}',0,'','2026-06-12 20:05:02',540),(2065405046500052994,'000000','作业上报',1,'org.dromara.riskctrl.controller.WorkReportController.add()','POST',1,'admin','研发部门','/riskctrl/workReport','0:0:0:0:0:0:0:1','内网IP','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"reportId\":null,\"reportNo\":\"\",\"workType\":\"改造工程上报\",\"projectName\":\"test111\",\"startTime\":\"2026-06-01 00:00:00\",\"endTime\":\"2026-06-30 00:00:00\",\"safetyOfficer\":\"test111\",\"contactPhone\":\"13111111111\",\"workImages\":\"http://106.55.100.207:9000/rjzytest/2026/06/12/d35a593d6615402eb13643b9a67551d2.jpg,http://106.55.100.207:9000/rjzytest/2026/06/12/bb54249aff2f436a84e195f70ff8da34.jpeg\",\"permitFiles\":\"http://106.55.100.207:9000/rjzytest/2026/06/12/c4f01ea534304370a8c0b11c7c53d6aa.jpeg\",\"workDesc\":\"test111\",\"auditStatus\":null,\"auditComment\":null,\"auditUser\":null,\"auditTime\":null,\"status\":null,\"remark\":\"test111\"}','{\"code\":200,\"msg\":\"操作成功\",\"data\":null}',0,'','2026-06-12 20:05:11',22),(2069641518243389442,'000000','危险源上报',1,'org.dromara.risk.controller.RiskDangerSourceController.add()','POST',1,'admin','研发部门','/risk/dangerSource','117.89.193.31','中国|江苏省|南京市|电信|CN','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"id\":null,\"sourceCode\":null,\"sourceName\":\"9\",\"sourceType\":\"electrical\",\"riskLevel\":null,\"storeId\":null,\"storeName\":null,\"location\":\"9999\",\"sourceDesc\":\"a\",\"controlMeasures\":\"a\",\"reportTime\":\"2026-06-24 00:00:00\",\"responsibleId\":null,\"responsibleName\":null,\"status\":null,\"remark\":null,\"keyword\":null}','',1,'\n### Error updating database.  Cause: java.sql.SQLException: Field \'risk_level\' doesn\'t have a default value\n### The error may exist in org/dromara/risk/mapper/RiskDangerSourceMapper.java (best guess)\n### The error may involve org.dromara.risk.mapper.RiskDangerSourceMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO risk_danger_source (id, source_name, source_type, location, source_desc, control_measures, report_time, create_dept, create_by, create_time, update_by, update_time, tenant_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, \'000000\')\n### Cause: java.sql.SQLException: Field \'risk_level\' doesn\'t have a default value\n; Field \'risk_level\' doesn\'t have a default value','2026-06-24 12:39:25',262),(2069641519480709122,'000000','危险源上报',1,'org.dromara.risk.controller.RiskDangerSourceController.add()','POST',1,'admin','研发部门','/risk/dangerSource','117.89.193.31','中国|江苏省|南京市|电信|CN','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"id\":null,\"sourceCode\":null,\"sourceName\":\"9\",\"sourceType\":\"electrical\",\"riskLevel\":null,\"storeId\":null,\"storeName\":null,\"location\":\"9999\",\"sourceDesc\":\"a\",\"controlMeasures\":\"a\",\"reportTime\":\"2026-06-24 00:00:00\",\"responsibleId\":null,\"responsibleName\":null,\"status\":null,\"remark\":null,\"keyword\":null}','',1,'\n### Error updating database.  Cause: java.sql.SQLException: Field \'risk_level\' doesn\'t have a default value\n### The error may exist in org/dromara/risk/mapper/RiskDangerSourceMapper.java (best guess)\n### The error may involve org.dromara.risk.mapper.RiskDangerSourceMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO risk_danger_source (id, source_name, source_type, location, source_desc, control_measures, report_time, create_dept, create_by, create_time, update_by, update_time, tenant_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, \'000000\')\n### Cause: java.sql.SQLException: Field \'risk_level\' doesn\'t have a default value\n; Field \'risk_level\' doesn\'t have a default value','2026-06-24 12:39:25',9),(2069641536559915009,'000000','危险源上报',1,'org.dromara.risk.controller.RiskDangerSourceController.add()','POST',1,'admin','研发部门','/risk/dangerSource','117.89.193.31','中国|江苏省|南京市|电信|CN','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"id\":null,\"sourceCode\":null,\"sourceName\":\"9\",\"sourceType\":\"electrical\",\"riskLevel\":null,\"storeId\":null,\"storeName\":null,\"location\":\"9999\",\"sourceDesc\":\"a\",\"controlMeasures\":\"a\",\"reportTime\":\"2026-06-24 00:00:00\",\"responsibleId\":null,\"responsibleName\":null,\"status\":null,\"remark\":null,\"keyword\":null}','',1,'\n### Error updating database.  Cause: java.sql.SQLException: Field \'risk_level\' doesn\'t have a default value\n### The error may exist in org/dromara/risk/mapper/RiskDangerSourceMapper.java (best guess)\n### The error may involve org.dromara.risk.mapper.RiskDangerSourceMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO risk_danger_source (id, source_name, source_type, location, source_desc, control_measures, report_time, create_dept, create_by, create_time, update_by, update_time, tenant_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, \'000000\')\n### Cause: java.sql.SQLException: Field \'risk_level\' doesn\'t have a default value\n; Field \'risk_level\' doesn\'t have a default value','2026-06-24 12:39:29',9),(2069642022289678337,'000000','安全隐患',1,'org.dromara.risk.controller.RiskHiddenDangerController.add()','POST',1,'admin','研发部门','/risk/hiddenDanger','117.89.193.31','中国|江苏省|南京市|电信|CN','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"id\":\"2069642022096740353\",\"dangerCode\":null,\"dangerTitle\":\"1\",\"dangerType\":\"门店安全隐患\",\"dangerLevel\":\"中风险\",\"dangerSource\":\"1\",\"dangerDesc\":\"1\",\"storeId\":null,\"storeName\":null,\"discovererId\":null,\"discovererName\":null,\"discoverTime\":\"2026-06-10 00:00:00\",\"handleStatus\":\"待处理\",\"handlerId\":null,\"handlerName\":null,\"handleTime\":null,\"handleResult\":null,\"handleMeasures\":null,\"finishTime\":null,\"photoList\":\"[]\",\"remark\":null,\"keyword\":null}','{\"code\":200,\"msg\":\"操作成功\",\"data\":null}',0,'','2026-06-24 12:41:25',34),(2069643814708715521,'000000','危险源上报',1,'org.dromara.risk.controller.RiskDangerSourceController.add()','POST',1,'admin','研发部门','/risk/dangerSource','117.89.193.31','中国|江苏省|南京市|电信|CN','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"id\":null,\"sourceCode\":null,\"sourceName\":\"1\",\"sourceType\":\"electrical\",\"riskLevel\":null,\"storeId\":null,\"storeName\":null,\"location\":\"1\",\"sourceDesc\":\"1\",\"controlMeasures\":\"1\",\"reportTime\":\"2026-06-24 00:00:00\",\"responsibleId\":null,\"responsibleName\":null,\"status\":null,\"remark\":null,\"keyword\":null}','',1,'\n### Error updating database.  Cause: java.sql.SQLException: Field \'risk_level\' doesn\'t have a default value\n### The error may exist in org/dromara/risk/mapper/RiskDangerSourceMapper.java (best guess)\n### The error may involve org.dromara.risk.mapper.RiskDangerSourceMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO risk_danger_source (id, source_name, source_type, location, source_desc, control_measures, report_time, create_dept, create_by, create_time, update_by, update_time, tenant_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, \'000000\')\n### Cause: java.sql.SQLException: Field \'risk_level\' doesn\'t have a default value\n; Field \'risk_level\' doesn\'t have a default value','2026-06-24 12:48:32',11),(2069643841388683266,'000000','危险源上报',1,'org.dromara.risk.controller.RiskDangerSourceController.add()','POST',1,'admin','研发部门','/risk/dangerSource','117.89.193.31','中国|江苏省|南京市|电信|CN','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"id\":null,\"sourceCode\":null,\"sourceName\":\"1\",\"sourceType\":\"electrical\",\"riskLevel\":null,\"storeId\":null,\"storeName\":null,\"location\":\"1\",\"sourceDesc\":\"1\",\"controlMeasures\":\"1\",\"reportTime\":\"2026-06-24 00:00:00\",\"responsibleId\":null,\"responsibleName\":null,\"status\":null,\"remark\":null,\"keyword\":null}','',1,'\n### Error updating database.  Cause: java.sql.SQLException: Field \'risk_level\' doesn\'t have a default value\n### The error may exist in org/dromara/risk/mapper/RiskDangerSourceMapper.java (best guess)\n### The error may involve org.dromara.risk.mapper.RiskDangerSourceMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO risk_danger_source (id, source_name, source_type, location, source_desc, control_measures, report_time, create_dept, create_by, create_time, update_by, update_time, tenant_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, \'000000\')\n### Cause: java.sql.SQLException: Field \'risk_level\' doesn\'t have a default value\n; Field \'risk_level\' doesn\'t have a default value','2026-06-24 12:48:39',9),(2069644185652961281,'000000','危险源上报',1,'org.dromara.risk.controller.RiskDangerSourceController.add()','POST',1,'admin','研发部门','/risk/dangerSource','117.89.193.31','中国|江苏省|南京市|电信|CN','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"id\":null,\"sourceCode\":null,\"sourceName\":\"123123\",\"sourceType\":\"electrical\",\"riskLevel\":null,\"storeId\":null,\"storeName\":null,\"location\":\"2131\",\"sourceDesc\":\"123\",\"controlMeasures\":\"123\",\"reportTime\":\"2026-06-24 00:00:00\",\"responsibleId\":null,\"responsibleName\":null,\"status\":null,\"remark\":null,\"keyword\":null}','',1,'\n### Error updating database.  Cause: java.sql.SQLException: Field \'risk_level\' doesn\'t have a default value\n### The error may exist in org/dromara/risk/mapper/RiskDangerSourceMapper.java (best guess)\n### The error may involve org.dromara.risk.mapper.RiskDangerSourceMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO risk_danger_source (id, source_name, source_type, location, source_desc, control_measures, report_time, create_dept, create_by, create_time, update_by, update_time, tenant_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, \'000000\')\n### Cause: java.sql.SQLException: Field \'risk_level\' doesn\'t have a default value\n; Field \'risk_level\' doesn\'t have a default value','2026-06-24 12:50:01',8),(2069644201977192450,'000000','危险源上报',1,'org.dromara.risk.controller.RiskDangerSourceController.add()','POST',1,'admin','研发部门','/risk/dangerSource','117.89.193.31','中国|江苏省|南京市|电信|CN','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"id\":null,\"sourceCode\":null,\"sourceName\":\"123123\",\"sourceType\":\"electrical\",\"riskLevel\":null,\"storeId\":null,\"storeName\":null,\"location\":\"2131\",\"sourceDesc\":\"123\",\"controlMeasures\":\"123\",\"reportTime\":\"2026-06-24 00:00:00\",\"responsibleId\":null,\"responsibleName\":null,\"status\":null,\"remark\":null,\"keyword\":null}','',1,'\n### Error updating database.  Cause: java.sql.SQLException: Field \'risk_level\' doesn\'t have a default value\n### The error may exist in org/dromara/risk/mapper/RiskDangerSourceMapper.java (best guess)\n### The error may involve org.dromara.risk.mapper.RiskDangerSourceMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO risk_danger_source (id, source_name, source_type, location, source_desc, control_measures, report_time, create_dept, create_by, create_time, update_by, update_time, tenant_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, \'000000\')\n### Cause: java.sql.SQLException: Field \'risk_level\' doesn\'t have a default value\n; Field \'risk_level\' doesn\'t have a default value','2026-06-24 12:50:05',16),(2069644407426785281,'000000','作业上报',1,'org.dromara.risk.controller.RiskWorkReportController.add()','POST',1,'admin','研发部门','/risk/workReport','117.89.193.31','中国|江苏省|南京市|电信|CN','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"id\":\"2069644407309344770\",\"reportCode\":\"\",\"workType\":\"临时施工上报\",\"workTitle\":\"1\",\"workContent\":\"\",\"storeId\":null,\"storeName\":null,\"workLocation\":null,\"workStartTime\":\"2026-06-23 00:00:00\",\"workEndTime\":\"2026-06-30 00:00:00\",\"reporterId\":null,\"reporterName\":\"1\",\"reportTime\":\"2026-06-24 12:50:52\",\"contactPhone\":\"18100000000\",\"photoList\":\"[]\",\"certFile\":\"\",\"certName\":\"\",\"participants\":null,\"riskMeasures\":null,\"workResult\":null,\"auditStatus\":\"0\",\"auditorId\":null,\"auditorName\":null,\"auditTime\":null,\"auditOpinion\":null,\"remark\":null,\"keyword\":null}','{\"code\":200,\"msg\":\"操作成功\",\"data\":null}',0,'','2026-06-24 12:50:54',31),(2069645009686896641,'000000','人员信息',1,'org.dromara.risk.controller.RiskPersonnelController.saveWithCerts()','POST',1,'admin','研发部门','/risk/personnel/saveWithCerts','117.89.193.31','中国|江苏省|南京市|电信|CN','{\"personnel\":{\"personnelCode\":\"\",\"personnelName\":\"123\",\"idCard\":\"320112197801010002\",\"age\":48,\"storeName\":\"1\",\"jobType\":\"2\",\"insuranceStatus\":\"1\",\"insuranceStartDate\":\"\",\"insuranceExpireDate\":\"\"},\"certList\":[]}','',1,'\n### Error updating database.  Cause: java.sql.SQLException: Field \'personnel_name\' doesn\'t have a default value\n### The error may exist in org/dromara/risk/mapper/RiskPersonnelMapper.java (best guess)\n### The error may involve org.dromara.risk.mapper.RiskPersonnelMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO risk_personnel (id, create_dept, create_by, create_time, update_by, update_time, tenant_id) VALUES (?, ?, ?, ?, ?, ?, \'000000\')\n### Cause: java.sql.SQLException: Field \'personnel_name\' doesn\'t have a default value\n; Field \'personnel_name\' doesn\'t have a default value','2026-06-24 12:53:17',11),(2069705003316813826,'000000','风控文件上传',1,'org.dromara.risk.controller.RiskFileController.upload()','POST',1,'admin','研发部门','/risk/file/upload','121.224.146.117','中国|江苏省|苏州市|电信|CN','','{\"code\":200,\"msg\":\"文件上传成功\",\"data\":{\"ossId\":\"5ec52296ac664632ac65552f79198a17\",\"originalName\":\"屏幕截图 2026-06-21 124559.png\",\"fileName\":\"risk/2026/06/24/3e94870ec64e47a1ad409fa77a14a978.png\",\"url\":\"http://106.55.100.207:9000/rjzytest/risk/2026/06/24/3e94870ec64e47a1ad409fa77a14a978.png\"}}',0,'','2026-06-24 16:51:41',487),(2069705120472113154,'000000','风控文件上传',1,'org.dromara.risk.controller.RiskFileController.upload()','POST',1,'admin','研发部门','/risk/file/upload','121.224.146.117','中国|江苏省|苏州市|电信|CN','','{\"code\":200,\"msg\":\"文件上传成功\",\"data\":{\"ossId\":\"6b213e4886554ef5bba1c0c3aab8e858\",\"originalName\":\"屏幕截图 2026-06-21 124559.png\",\"fileName\":\"risk/2026/06/24/9a94a9f190d747f599580f022bf1f89c.png\",\"url\":\"http://106.55.100.207:9000/rjzytest/risk/2026/06/24/9a94a9f190d747f599580f022bf1f89c.png\"}}',0,'','2026-06-24 16:52:09',18),(2069705849698000898,'000000','危险源上报',1,'org.dromara.risk.controller.RiskDangerSourceController.add()','POST',1,'admin','研发部门','/risk/dangerSource','121.224.146.117','中国|江苏省|苏州市|电信|CN','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"id\":null,\"sourceCode\":null,\"sourceName\":\"test1\",\"sourceType\":\"high_altitude\",\"riskLevel\":null,\"storeId\":null,\"storeName\":null,\"location\":\"高空\",\"sourceDesc\":\"test1\",\"controlMeasures\":\"test1\",\"reportTime\":\"2026-06-24 00:00:00\",\"responsibleId\":null,\"responsibleName\":null,\"status\":null,\"remark\":null,\"keyword\":null}','',1,'\n### Error updating database.  Cause: java.sql.SQLException: Field \'risk_level\' doesn\'t have a default value\n### The error may exist in org/dromara/risk/mapper/RiskDangerSourceMapper.java (best guess)\n### The error may involve org.dromara.risk.mapper.RiskDangerSourceMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO risk_danger_source (id, source_name, source_type, location, source_desc, control_measures, report_time, create_dept, create_by, create_time, update_by, update_time, tenant_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, \'000000\')\n### Cause: java.sql.SQLException: Field \'risk_level\' doesn\'t have a default value\n; Field \'risk_level\' doesn\'t have a default value','2026-06-24 16:55:03',38),(2069705855263842305,'000000','危险源上报',1,'org.dromara.risk.controller.RiskDangerSourceController.add()','POST',1,'admin','研发部门','/risk/dangerSource','121.224.146.117','中国|江苏省|苏州市|电信|CN','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"id\":null,\"sourceCode\":null,\"sourceName\":\"test1\",\"sourceType\":\"high_altitude\",\"riskLevel\":null,\"storeId\":null,\"storeName\":null,\"location\":\"高空\",\"sourceDesc\":\"test1\",\"controlMeasures\":\"test1\",\"reportTime\":\"2026-06-24 00:00:00\",\"responsibleId\":null,\"responsibleName\":null,\"status\":null,\"remark\":null,\"keyword\":null}','',1,'\n### Error updating database.  Cause: java.sql.SQLException: Field \'risk_level\' doesn\'t have a default value\n### The error may exist in org/dromara/risk/mapper/RiskDangerSourceMapper.java (best guess)\n### The error may involve org.dromara.risk.mapper.RiskDangerSourceMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO risk_danger_source (id, source_name, source_type, location, source_desc, control_measures, report_time, create_dept, create_by, create_time, update_by, update_time, tenant_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, \'000000\')\n### Cause: java.sql.SQLException: Field \'risk_level\' doesn\'t have a default value\n; Field \'risk_level\' doesn\'t have a default value','2026-06-24 16:55:04',7),(2069709908085579778,'000000','风控文件上传',1,'org.dromara.risk.controller.RiskFileController.upload()','POST',1,'admin','研发部门','/risk/file/upload','121.224.146.117','中国|江苏省|苏州市|电信|CN','','{\"code\":200,\"msg\":\"文件上传成功\",\"data\":{\"ossId\":\"420b22dde8fb4cb4895f1a2b4fdbee07\",\"originalName\":\"屏幕截图 2026-06-14 220314.png\",\"fileName\":\"risk/2026/06/24/8a44086f0fe548d3b22da8b3cf95ed48.png\",\"url\":\"http://106.55.100.207:9000/rjzytest/risk/2026/06/24/8a44086f0fe548d3b22da8b3cf95ed48.png\"}}',0,'','2026-06-24 17:11:10',33),(2069710041313452033,'000000','风控文件上传',1,'org.dromara.risk.controller.RiskFileController.upload()','POST',1,'admin','研发部门','/risk/file/upload','121.224.146.117','中国|江苏省|苏州市|电信|CN','','{\"code\":200,\"msg\":\"文件上传成功\",\"data\":{\"ossId\":\"e4db3d7611334359919f0bd8f5f2900f\",\"originalName\":\"屏幕截图 2026-05-05 081147.png\",\"fileName\":\"risk/2026/06/24/c62890b417284140a035392ebff74e28.png\",\"url\":\"http://106.55.100.207:9000/rjzytest/risk/2026/06/24/c62890b417284140a035392ebff74e28.png\"}}',0,'','2026-06-24 17:11:42',18),(2069710671268552705,'000000','危险源上报',1,'org.dromara.risk.controller.RiskDangerSourceController.add()','POST',1,'admin','研发部门','/risk/dangerSource','121.224.146.117','中国|江苏省|苏州市|电信|CN','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"id\":null,\"sourceCode\":null,\"sourceName\":\"test1\",\"sourceType\":\"electrical\",\"riskLevel\":null,\"storeId\":null,\"storeName\":null,\"location\":\"1\",\"sourceDesc\":\"1\",\"controlMeasures\":\"1\",\"reportTime\":\"2026-06-24 00:00:00\",\"responsibleId\":null,\"responsibleName\":null,\"status\":null,\"remark\":null,\"keyword\":null}','',1,'\n### Error updating database.  Cause: java.sql.SQLException: Field \'risk_level\' doesn\'t have a default value\n### The error may exist in org/dromara/risk/mapper/RiskDangerSourceMapper.java (best guess)\n### The error may involve org.dromara.risk.mapper.RiskDangerSourceMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO risk_danger_source (id, source_name, source_type, location, source_desc, control_measures, report_time, create_dept, create_by, create_time, update_by, update_time, tenant_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, \'000000\')\n### Cause: java.sql.SQLException: Field \'risk_level\' doesn\'t have a default value\n; Field \'risk_level\' doesn\'t have a default value','2026-06-24 17:14:12',4),(2069711723871084545,'000000','风控文件上传',1,'org.dromara.risk.controller.RiskFileController.upload()','POST',1,'admin','研发部门','/risk/file/upload','121.224.146.117','中国|江苏省|苏州市|电信|CN','','{\"code\":200,\"msg\":\"文件上传成功\",\"data\":{\"ossId\":\"23ebf065dee64516abafcdd1e0a1650c\",\"originalName\":\"屏幕截图 2026-06-21 124549.png\",\"fileName\":\"risk/2026/06/24/3bc313d42fa24f49876fc469f280d15c.png\",\"url\":\"http://106.55.100.207:9000/rjzytest/risk/2026/06/24/3bc313d42fa24f49876fc469f280d15c.png\"}}',0,'','2026-06-24 17:18:23',16),(2069711738861527041,'000000','安全隐患',1,'org.dromara.risk.controller.RiskHiddenDangerController.add()','POST',1,'admin','研发部门','/risk/hiddenDanger','121.224.146.117','中国|江苏省|苏州市|电信|CN','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"id\":\"2069711738676977665\",\"dangerCode\":null,\"dangerTitle\":\"test1\",\"dangerType\":\"物流安全隐患\",\"dangerLevel\":\"高风险\",\"dangerSource\":\"1\",\"dangerDesc\":\"1\",\"storeId\":null,\"storeName\":null,\"discovererId\":null,\"discovererName\":null,\"discoverTime\":\"2026-06-24 00:00:00\",\"handleStatus\":\"待处理\",\"handlerId\":null,\"handlerName\":null,\"handleTime\":null,\"handleResult\":null,\"handleMeasures\":null,\"finishTime\":null,\"photoList\":\"[\\\"http://106.55.100.207:9000/rjzytest/risk/2026/06/24/3bc313d42fa24f49876fc469f280d15c.png\\\"]\",\"remark\":null,\"keyword\":null}','{\"code\":200,\"msg\":\"操作成功\",\"data\":null}',0,'','2026-06-24 17:18:27',12),(2069711949629497345,'000000','作业上报',1,'org.dromara.risk.controller.RiskWorkReportController.add()','POST',1,'admin','研发部门','/risk/workReport','121.224.146.117','中国|江苏省|苏州市|电信|CN','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"id\":null,\"reportCode\":\"\",\"workType\":\"改造工程上报\",\"workTitle\":\"test1\",\"workContent\":\"\",\"storeId\":null,\"storeName\":null,\"workLocation\":null,\"workStartTime\":\"2026-06-24 00:00:00\",\"workEndTime\":\"2026-06-30 00:00:00\",\"reporterId\":null,\"reporterName\":\"1\",\"reportTime\":\"2026-06-24 17:19:22\",\"contactPhone\":\"13246547483\",\"photoList\":\"[]\",\"certFile\":\"\",\"certName\":\"\",\"participants\":null,\"riskMeasures\":null,\"workResult\":null,\"auditStatus\":\"0\",\"auditorId\":null,\"auditorName\":null,\"auditTime\":null,\"auditOpinion\":null,\"remark\":null,\"keyword\":null}','',1,'\n### Error updating database.  Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry \'\' for key \'risk_work_report.uk_report_code\'\n### The error may exist in org/dromara/risk/mapper/RiskWorkReportMapper.java (best guess)\n### The error may involve org.dromara.risk.mapper.RiskWorkReportMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO risk_work_report (id, report_code, work_type, work_title, work_content, work_start_time, work_end_time, reporter_name, report_time, contact_phone, photo_list, cert_file, cert_name, audit_status, create_dept, create_by, create_time, update_by, update_time, tenant_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, \'000000\')\n### Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry \'\' for key \'risk_work_report.uk_report_code\'\n; Duplicate entry \'\' for key \'risk_work_report.uk_report_code\'','2026-06-24 17:19:17',27),(2069711977609699330,'000000','作业上报',1,'org.dromara.risk.controller.RiskWorkReportController.add()','POST',1,'admin','研发部门','/risk/workReport','121.224.146.117','中国|江苏省|苏州市|电信|CN','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"id\":null,\"reportCode\":\"\",\"workType\":\"改造工程上报\",\"workTitle\":\"test1\",\"workContent\":\"\",\"storeId\":null,\"storeName\":null,\"workLocation\":null,\"workStartTime\":\"2026-06-24 00:00:00\",\"workEndTime\":\"2026-06-30 00:00:00\",\"reporterId\":null,\"reporterName\":\"123\",\"reportTime\":\"2026-06-24 17:19:22\",\"contactPhone\":\"13246547483\",\"photoList\":\"[]\",\"certFile\":\"\",\"certName\":\"\",\"participants\":null,\"riskMeasures\":null,\"workResult\":null,\"auditStatus\":\"0\",\"auditorId\":null,\"auditorName\":null,\"auditTime\":null,\"auditOpinion\":null,\"remark\":null,\"keyword\":null}','',1,'\n### Error updating database.  Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry \'\' for key \'risk_work_report.uk_report_code\'\n### The error may exist in org/dromara/risk/mapper/RiskWorkReportMapper.java (best guess)\n### The error may involve org.dromara.risk.mapper.RiskWorkReportMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO risk_work_report (id, report_code, work_type, work_title, work_content, work_start_time, work_end_time, reporter_name, report_time, contact_phone, photo_list, cert_file, cert_name, audit_status, create_dept, create_by, create_time, update_by, update_time, tenant_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, \'000000\')\n### Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry \'\' for key \'risk_work_report.uk_report_code\'\n; Duplicate entry \'\' for key \'risk_work_report.uk_report_code\'','2026-06-24 17:19:24',15),(2069711994307223554,'000000','作业上报',1,'org.dromara.risk.controller.RiskWorkReportController.add()','POST',1,'admin','研发部门','/risk/workReport','121.224.146.117','中国|江苏省|苏州市|电信|CN','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"id\":null,\"reportCode\":\"\",\"workType\":\"改造工程上报\",\"workTitle\":\"test123\",\"workContent\":\"\",\"storeId\":null,\"storeName\":null,\"workLocation\":null,\"workStartTime\":\"2026-06-24 00:00:00\",\"workEndTime\":\"2026-06-30 00:00:00\",\"reporterId\":null,\"reporterName\":\"123\",\"reportTime\":\"2026-06-24 17:19:22\",\"contactPhone\":\"13246547483\",\"photoList\":\"[]\",\"certFile\":\"\",\"certName\":\"\",\"participants\":null,\"riskMeasures\":null,\"workResult\":null,\"auditStatus\":\"0\",\"auditorId\":null,\"auditorName\":null,\"auditTime\":null,\"auditOpinion\":null,\"remark\":null,\"keyword\":null}','',1,'\n### Error updating database.  Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry \'\' for key \'risk_work_report.uk_report_code\'\n### The error may exist in org/dromara/risk/mapper/RiskWorkReportMapper.java (best guess)\n### The error may involve org.dromara.risk.mapper.RiskWorkReportMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO risk_work_report (id, report_code, work_type, work_title, work_content, work_start_time, work_end_time, reporter_name, report_time, contact_phone, photo_list, cert_file, cert_name, audit_status, create_dept, create_by, create_time, update_by, update_time, tenant_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, \'000000\')\n### Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry \'\' for key \'risk_work_report.uk_report_code\'\n; Duplicate entry \'\' for key \'risk_work_report.uk_report_code\'','2026-06-24 17:19:27',19),(2069712122879418370,'000000','风险警示',1,'org.dromara.risk.controller.RiskWarningController.add()','POST',1,'admin','研发部门','/risk/warning','121.224.146.117','中国|江苏省|苏州市|电信|CN','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"id\":\"2069712122753589250\",\"warningCode\":\"\",\"warningTitle\":\"test1\",\"warningType\":\"food_safety\",\"warningLevel\":\"urgent\",\"warningSource\":\"\",\"warningContent\":\"1\",\"storeId\":null,\"storeName\":null,\"releaseTime\":\"2026-06-25 00:00:00\",\"expireTime\":null,\"releaserId\":null,\"releaserName\":\"疯狂的狮子Li\",\"publishScope\":\"全员\",\"status\":\"已发布\",\"readCount\":null,\"remark\":null,\"keyword\":null}','{\"code\":200,\"msg\":\"操作成功\",\"data\":null}',0,'','2026-06-24 17:19:58',19),(2069712330455523329,'000000','人员信息',1,'org.dromara.risk.controller.RiskPersonnelController.saveWithCerts()','POST',1,'admin','研发部门','/risk/personnel/saveWithCerts','121.224.146.117','中国|江苏省|苏州市|电信|CN','{\"personnel\":{\"personnelCode\":\"\",\"personnelName\":\"test1\",\"idCard\":\"111111200001011111\",\"age\":26,\"storeName\":\"1\",\"jobType\":\"1\",\"insuranceStatus\":\"1\",\"insuranceStartDate\":\"\",\"insuranceExpireDate\":\"\"},\"certList\":[]}','',1,'\n### Error updating database.  Cause: java.sql.SQLException: Field \'personnel_name\' doesn\'t have a default value\n### The error may exist in org/dromara/risk/mapper/RiskPersonnelMapper.java (best guess)\n### The error may involve org.dromara.risk.mapper.RiskPersonnelMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO risk_personnel (id, create_dept, create_by, create_time, update_by, update_time, tenant_id) VALUES (?, ?, ?, ?, ?, ?, \'000000\')\n### Cause: java.sql.SQLException: Field \'personnel_name\' doesn\'t have a default value\n; Field \'personnel_name\' doesn\'t have a default value','2026-06-24 17:20:48',3),(2069712807578574849,'000000','特种设备',1,'org.dromara.risk.controller.RiskSpecialEquipmentController.add()','POST',1,'admin','研发部门','/risk/specialEquipment','121.224.146.117','中国|江苏省|苏州市|电信|CN','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"id\":\"2069712807448551426\",\"equipmentCode\":null,\"equipmentName\":\"test1\",\"equipmentType\":\"电梯\",\"model\":null,\"specification\":null,\"manufacturer\":null,\"manufactureDate\":null,\"purchaseDate\":null,\"storeId\":null,\"storeName\":null,\"location\":\"1\",\"photoList\":\"[]\",\"installDate\":null,\"useStatus\":null,\"inspectionStatus\":null,\"nextInspectionDate\":null,\"responsibleId\":null,\"responsibleName\":null,\"remark\":null,\"keyword\":null}','{\"code\":200,\"msg\":\"操作成功\",\"data\":null}',0,'','2026-06-24 17:22:41',28),(2069712897076633602,'000000','舆情推送',1,'org.dromara.risk.controller.RiskPublicOpinionController.add()','POST',1,'admin','研发部门','/risk/publicOpinion','121.224.146.117','中国|江苏省|苏州市|电信|CN','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"id\":\"2069712896980164609\",\"opinionTitle\":\"test1\",\"source\":\"微博\",\"publishTime\":\"2026-06-23 00:00:00\",\"riskLevel\":\"重大\",\"responsiblePerson\":\"\",\"opinionLink\":\"\",\"opinionContent\":\"1\",\"disposalSuggestion\":\"\",\"status\":\"待处理\",\"handleResult\":null,\"handleTime\":null,\"remark\":null,\"keyword\":null}','{\"code\":200,\"msg\":\"操作成功\",\"data\":null}',0,'','2026-06-24 17:23:03',13),(2069713226878951425,'000000','风控文件上传',1,'org.dromara.risk.controller.RiskFileController.upload()','POST',1,'admin','研发部门','/risk/file/upload','121.224.146.117','中国|江苏省|苏州市|电信|CN','','{\"code\":200,\"msg\":\"文件上传成功\",\"data\":{\"ossId\":\"d5e2fd1880a54c388cd774861ad2c369\",\"originalName\":\"屏幕截图 2026-06-21 113122.png\",\"fileName\":\"risk/2026/06/24/3dc930b6b86b4af6983e84b588a5726d.png\",\"url\":\"http://106.55.100.207:9000/rjzytest/risk/2026/06/24/3dc930b6b86b4af6983e84b588a5726d.png\"}}',0,'','2026-06-24 17:24:21',18),(2069713762332188674,'000000','巡检任务',1,'org.dromara.risk.controller.RiskInspectionTaskController.add()','POST',1,'admin','研发部门','/risk/inspectionTask','121.224.146.117','中国|江苏省|苏州市|电信|CN','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"id\":null,\"taskCode\":null,\"taskName\":\"test1\",\"taskType\":\"园区巡检打卡\",\"storeId\":null,\"storeName\":\"1\",\"planStartTime\":null,\"planEndTime\":null,\"actualStartTime\":null,\"actualEndTime\":null,\"inspectorId\":null,\"inspectorName\":\"1\",\"taskStatus\":null,\"itemCount\":null,\"completedCount\":null,\"passRate\":null,\"location\":\"1\",\"lng\":null,\"lat\":null,\"cycle\":\"每日\",\"scanEnabled\":\"0\",\"checkMethod\":\"常规\",\"auditorId\":null,\"auditorName\":\"1\",\"dayOfWeek\":\"\",\"dayOfMonth\":\"\",\"timeSlot\":\"\",\"remark\":null,\"keyword\":null}','',1,'\n### Error updating database.  Cause: java.sql.SQLException: Field \'plan_start_time\' doesn\'t have a default value\n### The error may exist in org/dromara/risk/mapper/RiskInspectionTaskMapper.java (best guess)\n### The error may involve org.dromara.risk.mapper.RiskInspectionTaskMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO risk_inspection_task (id, task_name, task_type, store_name, inspector_name, location, cycle, scan_enabled, check_method, auditor_name, day_of_week, day_of_month, time_slot, create_dept, create_by, create_time, update_by, update_time, tenant_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, \'000000\')\n### Cause: java.sql.SQLException: Field \'plan_start_time\' doesn\'t have a default value\n; Field \'plan_start_time\' doesn\'t have a default value','2026-06-24 17:26:29',21),(2069721094676029441,'000000','危险源上报',1,'org.dromara.risk.controller.RiskDangerSourceController.add()','POST',1,'admin','研发部门','/risk/dangerSource','121.224.146.117','中国|江苏省|苏州市|电信|CN','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"id\":\"2069721094625697793\",\"sourceCode\":null,\"sourceName\":\"test1\",\"sourceType\":\"electrical\",\"riskLevel\":\"high\",\"storeId\":null,\"storeName\":null,\"location\":\"1\",\"sourceDesc\":\"1\",\"controlMeasures\":\"1\",\"reportTime\":\"2026-06-01 00:00:00\",\"responsibleId\":null,\"responsibleName\":null,\"status\":null,\"remark\":null,\"keyword\":null}','{\"code\":200,\"msg\":\"操作成功\",\"data\":null}',0,'','2026-06-24 17:55:37',9),(2069721370455711745,'000000','作业上报',1,'org.dromara.risk.controller.RiskWorkReportController.add()','POST',1,'admin','研发部门','/risk/workReport','121.224.146.117','中国|江苏省|苏州市|电信|CN','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"id\":null,\"reportCode\":\"\",\"workType\":\"改造工程上报\",\"workTitle\":\"test1\",\"workContent\":\"\",\"storeId\":null,\"storeName\":null,\"workLocation\":null,\"workStartTime\":\"2026-06-03 00:00:00\",\"workEndTime\":\"2026-06-30 00:00:00\",\"reporterId\":null,\"reporterName\":\"1\",\"reportTime\":\"2026-06-24 17:56:48\",\"contactPhone\":\"19911111111\",\"photoList\":\"[]\",\"certFile\":\"\",\"certName\":\"\",\"participants\":null,\"riskMeasures\":null,\"workResult\":null,\"auditStatus\":\"0\",\"auditorId\":null,\"auditorName\":null,\"auditTime\":null,\"auditOpinion\":null,\"remark\":null,\"keyword\":null}','',1,'\n### Error updating database.  Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry \'\' for key \'risk_work_report.uk_report_code\'\n### The error may exist in org/dromara/risk/mapper/RiskWorkReportMapper.java (best guess)\n### The error may involve org.dromara.risk.mapper.RiskWorkReportMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO risk_work_report (id, report_code, work_type, work_title, work_content, work_start_time, work_end_time, reporter_name, report_time, contact_phone, photo_list, cert_file, cert_name, audit_status, create_dept, create_by, create_time, update_by, update_time, tenant_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, \'000000\')\n### Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry \'\' for key \'risk_work_report.uk_report_code\'\n; Duplicate entry \'\' for key \'risk_work_report.uk_report_code\'','2026-06-24 17:56:43',7),(2069721401376120834,'000000','作业上报',1,'org.dromara.risk.controller.RiskWorkReportController.add()','POST',1,'admin','研发部门','/risk/workReport','121.224.146.117','中国|江苏省|苏州市|电信|CN','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"id\":null,\"reportCode\":\"\",\"workType\":\"改造工程上报\",\"workTitle\":\"test1\",\"workContent\":\"\",\"storeId\":null,\"storeName\":null,\"workLocation\":null,\"workStartTime\":\"2026-06-03 00:00:00\",\"workEndTime\":\"2026-06-30 00:00:00\",\"reporterId\":null,\"reporterName\":\"2\",\"reportTime\":\"2026-06-24 17:56:48\",\"contactPhone\":\"19911111111\",\"photoList\":\"[]\",\"certFile\":\"\",\"certName\":\"\",\"participants\":null,\"riskMeasures\":null,\"workResult\":null,\"auditStatus\":\"0\",\"auditorId\":null,\"auditorName\":null,\"auditTime\":null,\"auditOpinion\":null,\"remark\":null,\"keyword\":null}','',1,'\n### Error updating database.  Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry \'\' for key \'risk_work_report.uk_report_code\'\n### The error may exist in org/dromara/risk/mapper/RiskWorkReportMapper.java (best guess)\n### The error may involve org.dromara.risk.mapper.RiskWorkReportMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO risk_work_report (id, report_code, work_type, work_title, work_content, work_start_time, work_end_time, reporter_name, report_time, contact_phone, photo_list, cert_file, cert_name, audit_status, create_dept, create_by, create_time, update_by, update_time, tenant_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, \'000000\')\n### Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry \'\' for key \'risk_work_report.uk_report_code\'\n; Duplicate entry \'\' for key \'risk_work_report.uk_report_code\'','2026-06-24 17:56:50',9),(2069721481856425986,'000000','作业上报',1,'org.dromara.risk.controller.RiskWorkReportController.add()','POST',1,'admin','研发部门','/risk/workReport','121.224.146.117','中国|江苏省|苏州市|电信|CN','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"id\":null,\"reportCode\":\"\",\"workType\":\"改造工程上报\",\"workTitle\":\"test2\",\"workContent\":\"\",\"storeId\":null,\"storeName\":null,\"workLocation\":null,\"workStartTime\":\"2026-06-03 00:00:00\",\"workEndTime\":\"2026-06-30 00:00:00\",\"reporterId\":null,\"reporterName\":\"2\",\"reportTime\":\"2026-06-24 17:56:48\",\"contactPhone\":\"19911111111\",\"photoList\":\"[]\",\"certFile\":\"\",\"certName\":\"\",\"participants\":null,\"riskMeasures\":null,\"workResult\":null,\"auditStatus\":\"0\",\"auditorId\":null,\"auditorName\":null,\"auditTime\":null,\"auditOpinion\":null,\"remark\":null,\"keyword\":null}','',1,'\n### Error updating database.  Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry \'\' for key \'risk_work_report.uk_report_code\'\n### The error may exist in org/dromara/risk/mapper/RiskWorkReportMapper.java (best guess)\n### The error may involve org.dromara.risk.mapper.RiskWorkReportMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO risk_work_report (id, report_code, work_type, work_title, work_content, work_start_time, work_end_time, reporter_name, report_time, contact_phone, photo_list, cert_file, cert_name, audit_status, create_dept, create_by, create_time, update_by, update_time, tenant_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, \'000000\')\n### Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry \'\' for key \'risk_work_report.uk_report_code\'\n; Duplicate entry \'\' for key \'risk_work_report.uk_report_code\'','2026-06-24 17:57:09',8),(2069721506388910082,'000000','作业上报',1,'org.dromara.risk.controller.RiskWorkReportController.add()','POST',1,'admin','研发部门','/risk/workReport','121.224.146.117','中国|江苏省|苏州市|电信|CN','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"id\":null,\"reportCode\":\"\",\"workType\":\"改造工程上报\",\"workTitle\":\"test98\",\"workContent\":\"\",\"storeId\":null,\"storeName\":null,\"workLocation\":null,\"workStartTime\":\"2026-06-03 00:00:00\",\"workEndTime\":\"2026-06-30 00:00:00\",\"reporterId\":null,\"reporterName\":\"2\",\"reportTime\":\"2026-06-24 17:56:48\",\"contactPhone\":\"19911111111\",\"photoList\":\"[]\",\"certFile\":\"\",\"certName\":\"\",\"participants\":null,\"riskMeasures\":null,\"workResult\":null,\"auditStatus\":\"0\",\"auditorId\":null,\"auditorName\":null,\"auditTime\":null,\"auditOpinion\":null,\"remark\":null,\"keyword\":null}','',1,'\n### Error updating database.  Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry \'\' for key \'risk_work_report.uk_report_code\'\n### The error may exist in org/dromara/risk/mapper/RiskWorkReportMapper.java (best guess)\n### The error may involve org.dromara.risk.mapper.RiskWorkReportMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO risk_work_report (id, report_code, work_type, work_title, work_content, work_start_time, work_end_time, reporter_name, report_time, contact_phone, photo_list, cert_file, cert_name, audit_status, create_dept, create_by, create_time, update_by, update_time, tenant_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, \'000000\')\n### Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry \'\' for key \'risk_work_report.uk_report_code\'\n; Duplicate entry \'\' for key \'risk_work_report.uk_report_code\'','2026-06-24 17:57:15',8),(2069721669962571777,'000000','人员信息',1,'org.dromara.risk.controller.RiskPersonnelController.saveWithCerts()','POST',1,'admin','研发部门','/risk/personnel/saveWithCerts','121.224.146.117','中国|江苏省|苏州市|电信|CN','{\"personnel\":{\"personnelCode\":\"\",\"personnelName\":\"张三\",\"idCard\":\"111111200001011111\",\"age\":26,\"storeName\":\"1\",\"jobType\":\"1\",\"insuranceStatus\":\"1\",\"insuranceStartDate\":\"\",\"insuranceExpireDate\":\"\"},\"certList\":[]}','',1,'\n### Error updating database.  Cause: java.sql.SQLException: Field \'personnel_name\' doesn\'t have a default value\n### The error may exist in org/dromara/risk/mapper/RiskPersonnelMapper.java (best guess)\n### The error may involve org.dromara.risk.mapper.RiskPersonnelMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO risk_personnel (id, create_dept, create_by, create_time, update_by, update_time, tenant_id) VALUES (?, ?, ?, ?, ?, ?, \'000000\')\n### Cause: java.sql.SQLException: Field \'personnel_name\' doesn\'t have a default value\n; Field \'personnel_name\' doesn\'t have a default value','2026-06-24 17:57:54',3),(2069721894097788930,'000000','人员信息',1,'org.dromara.risk.controller.RiskPersonnelController.saveWithCerts()','POST',1,'admin','研发部门','/risk/personnel/saveWithCerts','121.224.146.117','中国|江苏省|苏州市|电信|CN','{\"personnel\":{\"personnelCode\":\"\",\"personnelName\":\"张三\",\"idCard\":\"111111200001011111\",\"age\":26,\"storeName\":\"1\",\"jobType\":\"1\",\"insuranceStatus\":\"1\",\"insuranceStartDate\":\"\",\"insuranceExpireDate\":\"\"},\"certList\":[]}','',1,'\n### Error updating database.  Cause: java.sql.SQLException: Field \'personnel_name\' doesn\'t have a default value\n### The error may exist in org/dromara/risk/mapper/RiskPersonnelMapper.java (best guess)\n### The error may involve org.dromara.risk.mapper.RiskPersonnelMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO risk_personnel (id, create_dept, create_by, create_time, update_by, update_time, tenant_id) VALUES (?, ?, ?, ?, ?, ?, \'000000\')\n### Cause: java.sql.SQLException: Field \'personnel_name\' doesn\'t have a default value\n; Field \'personnel_name\' doesn\'t have a default value','2026-06-24 17:58:48',3),(2070058388129841154,'000000','作业上报',1,'org.dromara.risk.controller.RiskWorkReportController.add()','POST',1,'admin','研发部门','/risk/workReport','121.224.146.117','中国|江苏省|苏州市|电信|CN','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"id\":null,\"reportCode\":\"\",\"workType\":\"改造工程上报\",\"workTitle\":\"test1\",\"workContent\":\"\",\"storeId\":null,\"storeName\":null,\"workLocation\":null,\"workStartTime\":\"2026-06-23 00:00:00\",\"workEndTime\":\"2026-06-25 00:00:00\",\"reporterId\":null,\"reporterName\":\"1\",\"reportTime\":\"2026-06-25 16:16:01\",\"contactPhone\":\"19911111111\",\"photoList\":\"[]\",\"certFile\":\"\",\"certName\":\"\",\"participants\":null,\"riskMeasures\":null,\"workResult\":null,\"auditStatus\":\"0\",\"auditorId\":null,\"auditorName\":null,\"auditTime\":null,\"auditOpinion\":null,\"remark\":null,\"keyword\":null}','',1,'\n### Error updating database.  Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry \'\' for key \'risk_work_report.uk_report_code\'\n### The error may exist in org/dromara/risk/mapper/RiskWorkReportMapper.java (best guess)\n### The error may involve org.dromara.risk.mapper.RiskWorkReportMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO risk_work_report  ( id, report_code, work_type, work_title, work_content,    work_start_time, work_end_time,  reporter_name, report_time, contact_phone, photo_list, cert_file, cert_name,    audit_status,        create_dept, create_by, create_time, update_by, update_time )  VALUES (  ?, ?, ?, ?, ?,    ?, ?,  ?, ?, ?, ?, ?, ?,    ?,        ?, ?, ?, ?, ?  )\n### Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry \'\' for key \'risk_work_report.uk_report_code\'\n; Duplicate entry \'\' for key \'risk_work_report.uk_report_code\'','2026-06-25 16:15:54',296),(2070058502982467586,'000000','人员信息',1,'org.dromara.risk.controller.RiskPersonnelController.saveWithCerts()','POST',1,'admin','研发部门','/risk/personnel/saveWithCerts','121.224.146.117','中国|江苏省|苏州市|电信|CN','{\"personnel\":{\"personnelCode\":\"\",\"personnelName\":\"张三\",\"idCard\":\"111111200001011111\",\"age\":26,\"storeName\":\"1\",\"jobType\":\"1\",\"insuranceStatus\":\"1\",\"insuranceStartDate\":\"\",\"insuranceExpireDate\":\"\"},\"certList\":[]}','',1,'\n### Error updating database.  Cause: java.sql.SQLException: Field \'personnel_name\' doesn\'t have a default value\n### The error may exist in org/dromara/risk/mapper/RiskPersonnelMapper.java (best guess)\n### The error may involve org.dromara.risk.mapper.RiskPersonnelMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO risk_personnel  ( id,                          create_dept, create_by, create_time, update_by, update_time )  VALUES (  ?,                          ?, ?, ?, ?, ?  )\n### Cause: java.sql.SQLException: Field \'personnel_name\' doesn\'t have a default value\n; Field \'personnel_name\' doesn\'t have a default value','2026-06-25 16:16:22',16),(2071085341121269761,'000000','作业上报',1,'org.dromara.risk.controller.RiskWorkReportController.add()','POST',1,'admin','研发部门','/risk/workReport','121.224.146.117','中国|江苏省|苏州市|电信|CN','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"id\":\"2071085340865417217\",\"reportCode\":\"WR20260628121638984\",\"workType\":\"改造工程上报\",\"workTitle\":\"test01\",\"workContent\":\"\",\"storeId\":null,\"storeName\":null,\"workLocation\":null,\"workStartTime\":\"2026-06-24 00:00:00\",\"workEndTime\":\"2026-06-28 00:00:00\",\"reporterId\":null,\"reporterName\":\"张三\",\"reportTime\":\"2026-06-28 12:16:38\",\"contactPhone\":\"19911111111\",\"photoList\":\"[]\",\"certFile\":\"\",\"certName\":\"\",\"participants\":null,\"riskMeasures\":null,\"workResult\":null,\"auditStatus\":\"0\",\"auditorId\":null,\"auditorName\":null,\"auditTime\":null,\"auditOpinion\":null,\"remark\":null,\"keyword\":null}','{\"code\":200,\"msg\":\"操作成功\",\"data\":null}',0,'','2026-06-28 12:16:39',49),(2071085452836556802,'000000','人员信息',1,'org.dromara.risk.controller.RiskPersonnelController.saveWithCerts()','POST',1,'admin','研发部门','/risk/personnel/saveWithCerts','121.224.146.117','中国|江苏省|苏州市|电信|CN','{\"personnel\":{\"personnelCode\":\"\",\"personnelName\":\"李四\",\"idCard\":\"111111200001011111\",\"age\":26,\"storeName\":\"1\",\"jobType\":\"1\",\"insuranceStatus\":\"1\",\"insuranceStartDate\":\"\",\"insuranceExpireDate\":\"\"},\"certList\":[]}','',1,'\n### Error updating database.  Cause: java.sql.SQLException: Field \'personnel_name\' doesn\'t have a default value\n### The error may exist in org/dromara/risk/mapper/RiskPersonnelMapper.java (best guess)\n### The error may involve org.dromara.risk.mapper.RiskPersonnelMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO risk_personnel  ( id, personnel_code,                         create_dept, create_by, create_time, update_by, update_time )  VALUES (  ?, ?,                         ?, ?, ?, ?, ?  )\n### Cause: java.sql.SQLException: Field \'personnel_name\' doesn\'t have a default value\n; Field \'personnel_name\' doesn\'t have a default value','2026-06-28 12:17:06',285),(2071085462617673730,'000000','人员信息',1,'org.dromara.risk.controller.RiskPersonnelController.saveWithCerts()','POST',1,'admin','研发部门','/risk/personnel/saveWithCerts','121.224.146.117','中国|江苏省|苏州市|电信|CN','{\"personnel\":{\"personnelCode\":\"\",\"personnelName\":\"李四\",\"idCard\":\"111111200001011111\",\"age\":26,\"storeName\":\"1\",\"jobType\":\"1\",\"insuranceStatus\":\"1\",\"insuranceStartDate\":\"\",\"insuranceExpireDate\":\"\"},\"certList\":[]}','',1,'\n### Error updating database.  Cause: java.sql.SQLException: Field \'personnel_name\' doesn\'t have a default value\n### The error may exist in org/dromara/risk/mapper/RiskPersonnelMapper.java (best guess)\n### The error may involve org.dromara.risk.mapper.RiskPersonnelMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO risk_personnel  ( id, personnel_code,                         create_dept, create_by, create_time, update_by, update_time )  VALUES (  ?, ?,                         ?, ?, ?, ?, ?  )\n### Cause: java.sql.SQLException: Field \'personnel_name\' doesn\'t have a default value\n; Field \'personnel_name\' doesn\'t have a default value','2026-06-28 12:17:08',6),(2071085516359290882,'000000','人员信息',1,'org.dromara.risk.controller.RiskPersonnelController.saveWithCerts()','POST',1,'admin','研发部门','/risk/personnel/saveWithCerts','121.224.146.117','中国|江苏省|苏州市|电信|CN','{\"personnel\":{\"personnelCode\":\"\",\"personnelName\":\"李四\",\"idCard\":\"111111200001011111\",\"age\":26,\"storeName\":\"1\",\"jobType\":\"1\",\"insuranceStatus\":\"1\",\"insuranceStartDate\":\"\",\"insuranceExpireDate\":\"\"},\"certList\":[]}','',1,'\n### Error updating database.  Cause: java.sql.SQLException: Field \'personnel_name\' doesn\'t have a default value\n### The error may exist in org/dromara/risk/mapper/RiskPersonnelMapper.java (best guess)\n### The error may involve org.dromara.risk.mapper.RiskPersonnelMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO risk_personnel  ( id, personnel_code,                         create_dept, create_by, create_time, update_by, update_time )  VALUES (  ?, ?,                         ?, ?, ?, ?, ?  )\n### Cause: java.sql.SQLException: Field \'personnel_name\' doesn\'t have a default value\n; Field \'personnel_name\' doesn\'t have a default value','2026-06-28 12:17:21',11),(2071086091146711042,'000000','事故上报',1,'org.dromara.risk.controller.RiskAccidentController.add()','POST',1,'admin','研发部门','/risk/accident','121.224.146.117','中国|江苏省|苏州市|电信|CN','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"id\":null,\"accidentCode\":\"AC20260628121937624\",\"accidentTitle\":\"1\",\"accidentType\":\"人身伤害\",\"accidentLevel\":\"general\",\"storeId\":null,\"storeName\":null,\"accidentLocation\":\"1\",\"accidentTime\":\"2026-06-28 00:00:00\",\"accidentCause\":\"\",\"accidentDesc\":\"1\",\"deathCount\":0,\"injuryCount\":2,\"lossAmount\":\"0\",\"reporterId\":null,\"reporterName\":\"1\",\"reportTime\":null,\"handleStatus\":\"待处理\",\"handlerId\":null,\"handlerName\":null,\"handleMeasures\":null,\"investigationResult\":null,\"improvementMeasures\":null,\"remark\":null,\"participants\":\"张三\",\"photoList\":\"\",\"keyword\":null}','',1,'\n### Error updating database.  Cause: java.sql.SQLException: Field \'report_time\' doesn\'t have a default value\n### The error may exist in org/dromara/risk/mapper/RiskAccidentMapper.java (best guess)\n### The error may involve org.dromara.risk.mapper.RiskAccidentMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO risk_accident  ( id, accident_code, accident_title, accident_type, accident_level,   accident_location, accident_time, accident_cause, accident_desc, death_count, injury_count, loss_amount,  reporter_name,  handle_status,       participants, photo_list,   create_dept, create_by, create_time, update_by, update_time )  VALUES (  ?, ?, ?, ?, ?,   ?, ?, ?, ?, ?, ?, ?,  ?,  ?,       ?, ?,   ?, ?, ?, ?, ?  )\n### Cause: java.sql.SQLException: Field \'report_time\' doesn\'t have a default value\n; Field \'report_time\' doesn\'t have a default value','2026-06-28 12:19:38',29),(2071086133932806145,'000000','事故上报',1,'org.dromara.risk.controller.RiskAccidentController.add()','POST',1,'admin','研发部门','/risk/accident','121.224.146.117','中国|江苏省|苏州市|电信|CN','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"id\":null,\"accidentCode\":\"AC20260628121947449\",\"accidentTitle\":\"1\",\"accidentType\":\"人身伤害\",\"accidentLevel\":\"general\",\"storeId\":null,\"storeName\":null,\"accidentLocation\":\"1\",\"accidentTime\":\"2026-06-28 00:00:00\",\"accidentCause\":\"\",\"accidentDesc\":\"1\",\"deathCount\":0,\"injuryCount\":2,\"lossAmount\":\"0\",\"reporterId\":null,\"reporterName\":\"1\",\"reportTime\":null,\"handleStatus\":\"待处理\",\"handlerId\":null,\"handlerName\":null,\"handleMeasures\":null,\"investigationResult\":null,\"improvementMeasures\":null,\"remark\":null,\"participants\":\"张三\",\"photoList\":\"\",\"keyword\":null}','',1,'\n### Error updating database.  Cause: java.sql.SQLException: Field \'report_time\' doesn\'t have a default value\n### The error may exist in org/dromara/risk/mapper/RiskAccidentMapper.java (best guess)\n### The error may involve org.dromara.risk.mapper.RiskAccidentMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO risk_accident  ( id, accident_code, accident_title, accident_type, accident_level,   accident_location, accident_time, accident_cause, accident_desc, death_count, injury_count, loss_amount,  reporter_name,  handle_status,       participants, photo_list,   create_dept, create_by, create_time, update_by, update_time )  VALUES (  ?, ?, ?, ?, ?,   ?, ?, ?, ?, ?, ?, ?,  ?,  ?,       ?, ?,   ?, ?, ?, ?, ?  )\n### Cause: java.sql.SQLException: Field \'report_time\' doesn\'t have a default value\n; Field \'report_time\' doesn\'t have a default value','2026-06-28 12:19:48',7),(2071201466832207874,'000000','风控文件上传',1,'org.dromara.risk.controller.RiskFileController.upload()','POST',1,'admin','研发部门','/risk/file/upload','180.125.105.200','中国|江苏省|淮安市|电信|CN','','{\"code\":200,\"msg\":\"文件上传成功\",\"data\":{\"ossId\":\"e8abe06b46b24f31b558c05067ec1476\",\"originalName\":\"5a5b173339f917bea77fed26c58562a7.jpeg\",\"fileName\":\"risk/2026/06/28/d88d983811b640e693530d93efe41fc5.jpeg\",\"url\":\"http://106.55.100.207:9000/rjzytest/risk/2026/06/28/d88d983811b640e693530d93efe41fc5.jpeg\"}}',0,'','2026-06-28 19:58:05',469),(2071201483114496002,'000000','人员信息',1,'org.dromara.risk.controller.RiskPersonnelController.saveWithCerts()','POST',1,'admin','研发部门','/risk/personnel/saveWithCerts','180.125.105.200','中国|江苏省|淮安市|电信|CN','{\"personnel\":{\"personnelCode\":\"\",\"personnelName\":\"test1\",\"idCard\":\"320320199001010001\",\"age\":36,\"storeName\":\"test\",\"jobType\":\"1\",\"insuranceStatus\":\"1\",\"insuranceStartDate\":\"\",\"insuranceExpireDate\":\"\"},\"certList\":[{\"certType\":\"1\",\"certName\":\"1\",\"certFile\":\"http://106.55.100.207:9000/rjzytest/risk/2026/06/28/d88d983811b640e693530d93efe41fc5.jpeg\",\"certStatus\":\"有效\"}]}','{\"code\":200,\"msg\":\"操作成功\",\"data\":\"2071201482850254850\"}',0,'','2026-06-28 19:58:09',72),(2071205376028405762,'000000','风控文件上传',1,'org.dromara.risk.controller.RiskFileController.upload()','POST',1,'admin','研发部门','/risk/file/upload','180.125.105.200','中国|江苏省|淮安市|电信|CN','','{\"code\":200,\"msg\":\"文件上传成功\",\"data\":{\"ossId\":\"6f18e2de637a47f6a06feff9e3575f90\",\"originalName\":\"3b4d3f8f672e59b96d68e6cca01c4038.jpg\",\"fileName\":\"risk/2026/06/28/4ea2a3e835024d47b27258aee7bf6b7e.jpg\",\"url\":\"http://106.55.100.207:9000/rjzytest/risk/2026/06/28/4ea2a3e835024d47b27258aee7bf6b7e.jpg\"}}',0,'','2026-06-28 20:13:37',2535),(2071205393254412289,'000000','审计文件',1,'org.dromara.risk.controller.RiskAuditFileController.add()','POST',1,'admin','研发部门','/risk/auditFile','180.125.105.200','中国|江苏省|淮安市|电信|CN','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"id\":null,\"fileCode\":null,\"changeId\":null,\"fileName\":\"3b4d3f8f672e59b96d68e6cca01c4038.jpg\",\"fileType\":\"调令\",\"fileUrl\":\"http://106.55.100.207:9000/rjzytest/risk/2026/06/28/4ea2a3e835024d47b27258aee7bf6b7e.jpg\",\"fileSize\":null,\"uploadBy\":null,\"uploadName\":\"疯狂的狮子Li\",\"uploadTime\":null,\"auditResult\":null,\"auditOpinion\":null,\"remark\":\"test\",\"keyword\":null}','',1,'\n### Error updating database.  Cause: java.sql.SQLException: Field \'upload_time\' doesn\'t have a default value\n### The error may exist in org/dromara/risk/mapper/RiskAuditFileMapper.java (best guess)\n### The error may involve org.dromara.risk.mapper.RiskAuditFileMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO risk_audit_file  ( id,   file_name, file_type, file_url,   upload_name,    remark,   create_dept, create_by, create_time, update_by, update_time )  VALUES (  ?,   ?, ?, ?,   ?,    ?,   ?, ?, ?, ?, ?  )\n### Cause: java.sql.SQLException: Field \'upload_time\' doesn\'t have a default value\n; Field \'upload_time\' doesn\'t have a default value','2026-06-28 20:13:42',267),(2071205842825080833,'000000','审计文件',1,'org.dromara.risk.controller.RiskAuditFileController.add()','POST',1,'admin','研发部门','/risk/auditFile','180.125.105.200','中国|江苏省|淮安市|电信|CN','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"id\":null,\"fileCode\":null,\"changeId\":null,\"fileName\":\"3b4d3f8f672e59b96d68e6cca01c4038.jpg\",\"fileType\":\"调令\",\"fileUrl\":\"http://106.55.100.207:9000/rjzytest/risk/2026/06/28/4ea2a3e835024d47b27258aee7bf6b7e.jpg\",\"fileSize\":null,\"uploadBy\":null,\"uploadName\":\"疯狂的狮子Li\",\"uploadTime\":null,\"auditResult\":null,\"auditOpinion\":null,\"remark\":\"test\",\"keyword\":null}','',1,'\n### Error updating database.  Cause: java.sql.SQLException: Field \'upload_time\' doesn\'t have a default value\n### The error may exist in org/dromara/risk/mapper/RiskAuditFileMapper.java (best guess)\n### The error may involve org.dromara.risk.mapper.RiskAuditFileMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO risk_audit_file  ( id,   file_name, file_type, file_url,   upload_name,    remark,   create_dept, create_by, create_time, update_by, update_time )  VALUES (  ?,   ?, ?, ?,   ?,    ?,   ?, ?, ?, ?, ?  )\n### Cause: java.sql.SQLException: Field \'upload_time\' doesn\'t have a default value\n; Field \'upload_time\' doesn\'t have a default value','2026-06-28 20:15:29',20),(2071209264622198785,'000000','人员变动',1,'org.dromara.risk.controller.RiskPersonnelChangeController.add()','POST',1,'admin','研发部门','/risk/personnelChange','180.125.105.200','中国|江苏省|淮安市|电信|CN','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"id\":\"2071209263955304449\",\"changeCode\":null,\"personnelId\":\"2071201482850254850\",\"personnelName\":\"test1\",\"changeType\":\"调任\",\"changeReason\":\"test\",\"changeDate\":\"2026-06-28 00:00:00\",\"leaveDate\":null,\"beforeStoreId\":null,\"beforeStoreName\":null,\"beforeDept\":\"test\",\"beforePosition\":\"1\",\"afterStoreId\":null,\"afterStoreName\":null,\"afterDept\":\"深圳总公司\",\"afterPosition\":\"test\",\"handlerId\":null,\"handlerName\":\"\",\"auditStatus\":null,\"auditorId\":null,\"auditorName\":null,\"auditTime\":null,\"auditOpinion\":null,\"remark\":null,\"keyword\":null}','{\"code\":200,\"msg\":\"操作成功\",\"data\":null}',0,'','2026-06-28 20:29:05',62),(2071209331886252034,'000000','风控文件上传',1,'org.dromara.risk.controller.RiskFileController.upload()','POST',1,'admin','研发部门','/risk/file/upload','180.125.105.200','中国|江苏省|淮安市|电信|CN','','{\"code\":200,\"msg\":\"文件上传成功\",\"data\":{\"ossId\":\"e8ab4080d70346b29e891dbee1e7fcab\",\"originalName\":\"3b4d3f8f672e59b96d68e6cca01c4038.jpg\",\"fileName\":\"risk/2026/06/28/0e78ae146339413bb6a738949b5b349e.jpg\",\"url\":\"http://106.55.100.207:9000/rjzytest/risk/2026/06/28/0e78ae146339413bb6a738949b5b349e.jpg\"}}',0,'','2026-06-28 20:29:21',2891),(2071209348978040834,'000000','审计文件',1,'org.dromara.risk.controller.RiskAuditFileController.add()','POST',1,'admin','研发部门','/risk/auditFile','180.125.105.200','中国|江苏省|淮安市|电信|CN','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"id\":\"2071209348910931969\",\"fileCode\":null,\"changeId\":\"2071209263955304449\",\"fileName\":\"3b4d3f8f672e59b96d68e6cca01c4038.jpg\",\"fileType\":\"调令\",\"fileUrl\":\"http://106.55.100.207:9000/rjzytest/risk/2026/06/28/0e78ae146339413bb6a738949b5b349e.jpg\",\"fileSize\":null,\"uploadBy\":null,\"uploadName\":\"疯狂的狮子Li\",\"uploadTime\":\"2026-06-28 20:29:24\",\"auditResult\":null,\"auditOpinion\":null,\"remark\":\"test\",\"keyword\":null}','{\"code\":200,\"msg\":\"操作成功\",\"data\":null}',0,'','2026-06-28 20:29:25',21),(2071215579813765122,'000000','事故上报',1,'org.dromara.risk.controller.RiskAccidentController.add()','POST',1,'admin','研发部门','/risk/accident','121.224.146.117','中国|江苏省|苏州市|电信|CN','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"id\":null,\"accidentCode\":\"AC20260628205409454\",\"accidentTitle\":\"1\",\"accidentType\":\"injury\",\"accidentLevel\":\"general\",\"storeId\":null,\"storeName\":null,\"accidentLocation\":\"1\",\"accidentTime\":\"2026-06-28 00:00:00\",\"accidentCause\":\"\",\"accidentDesc\":\"1\",\"deathCount\":0,\"injuryCount\":1,\"lossAmount\":\"0\",\"reporterId\":null,\"reporterName\":\"1\",\"reportTime\":null,\"handleStatus\":\"待处理\",\"handlerId\":null,\"handlerName\":null,\"handleMeasures\":null,\"investigationResult\":null,\"improvementMeasures\":null,\"remark\":null,\"participants\":\"张三\",\"photoList\":\"\",\"keyword\":null}','',1,'\n### Error updating database.  Cause: java.sql.SQLException: Field \'report_time\' doesn\'t have a default value\n### The error may exist in org/dromara/risk/mapper/RiskAccidentMapper.java (best guess)\n### The error may involve org.dromara.risk.mapper.RiskAccidentMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO risk_accident  ( id, accident_code, accident_title, accident_type, accident_level,   accident_location, accident_time, accident_cause, accident_desc, death_count, injury_count, loss_amount,  reporter_name,  handle_status,       participants, photo_list,   create_dept, create_by, create_time, update_by, update_time )  VALUES (  ?, ?, ?, ?, ?,   ?, ?, ?, ?, ?, ?, ?,  ?,  ?,       ?, ?,   ?, ?, ?, ?, ?  )\n### Cause: java.sql.SQLException: Field \'report_time\' doesn\'t have a default value\n; Field \'report_time\' doesn\'t have a default value','2026-06-28 20:54:10',250),(2071215723196047361,'000000','人员信息',1,'org.dromara.risk.controller.RiskPersonnelController.saveWithCerts()','POST',1,'admin','研发部门','/risk/personnel/saveWithCerts','121.224.146.117','中国|江苏省|苏州市|电信|CN','{\"personnel\":{\"personnelCode\":\"\",\"personnelName\":\"test2\",\"idCard\":\"111111200001011111\",\"age\":26,\"storeName\":\"1\",\"jobType\":\"1\",\"insuranceStatus\":\"1\",\"insuranceStartDate\":\"\",\"insuranceExpireDate\":\"\"},\"certList\":[]}','{\"code\":200,\"msg\":\"操作成功\",\"data\":\"2071215722969554946\"}',0,'','2026-06-28 20:54:44',27),(2071217678542823426,'000000','风控文件上传',1,'org.dromara.risk.controller.RiskFileController.upload()','POST',1,'admin','研发部门','/risk/file/upload','180.125.105.200','中国|江苏省|淮安市|电信|CN','','{\"code\":200,\"msg\":\"文件上传成功\",\"data\":{\"ossId\":\"6d7e3546c7fa4ea88e38aad2adab757e\",\"originalName\":\"5a5b173339f917bea77fed26c58562a7.jpeg\",\"fileName\":\"risk/2026/06/28/44a261a33d664e4abb63cf7eedd4e480.jpeg\",\"url\":\"http://106.55.100.207:9000/rjzytest/risk/2026/06/28/44a261a33d664e4abb63cf7eedd4e480.jpeg\"}}',0,'','2026-06-28 21:02:31',58),(2071217738554925057,'000000','风控文件上传',1,'org.dromara.risk.controller.RiskFileController.upload()','POST',1,'admin','研发部门','/risk/file/upload','180.125.105.200','中国|江苏省|淮安市|电信|CN','','{\"code\":200,\"msg\":\"文件上传成功\",\"data\":{\"ossId\":\"9f1e88b76ac641038643d3901a3f01b6\",\"originalName\":\"3b4d3f8f672e59b96d68e6cca01c4038.jpg\",\"fileName\":\"risk/2026/06/28/afe075ea9135458c95c60846ac08ba95.jpg\",\"url\":\"http://106.55.100.207:9000/rjzytest/risk/2026/06/28/afe075ea9135458c95c60846ac08ba95.jpg\"}}',0,'','2026-06-28 21:02:45',2646),(2071217763032883201,'000000','事故上报',1,'org.dromara.risk.controller.RiskAccidentController.add()','POST',1,'admin','研发部门','/risk/accident','180.125.105.200','中国|江苏省|淮安市|电信|CN','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"id\":null,\"accidentCode\":\"AC20260628210250791\",\"accidentTitle\":\"test\",\"accidentType\":\"人身伤害\",\"accidentLevel\":\"特别重大\",\"storeId\":null,\"storeName\":null,\"accidentLocation\":\"test\",\"accidentTime\":\"2026-06-28 02:00:00\",\"accidentCause\":\"test\",\"accidentDesc\":\"test\",\"deathCount\":0,\"injuryCount\":1,\"lossAmount\":\"0\",\"reporterId\":null,\"reporterName\":\"test\",\"reportTime\":null,\"handleStatus\":\"待处理\",\"handlerId\":null,\"handlerName\":null,\"handleMeasures\":null,\"investigationResult\":null,\"improvementMeasures\":null,\"remark\":null,\"participants\":\"test\",\"photoList\":\"[\\\"http://106.55.100.207:9000/rjzytest/risk/2026/06/28/44a261a33d664e4abb63cf7eedd4e480.jpeg\\\",\\\"http://106.55.100.207:9000/rjzytest/risk/2026/06/28/afe075ea9135458c95c60846ac08ba95.jpg\\\"]\",\"keyword\":null}','',1,'\n### Error updating database.  Cause: java.sql.SQLException: Field \'report_time\' doesn\'t have a default value\n### The error may exist in org/dromara/risk/mapper/RiskAccidentMapper.java (best guess)\n### The error may involve org.dromara.risk.mapper.RiskAccidentMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO risk_accident  ( id, accident_code, accident_title, accident_type, accident_level,   accident_location, accident_time, accident_cause, accident_desc, death_count, injury_count, loss_amount,  reporter_name,  handle_status,       participants, photo_list,   create_dept, create_by, create_time, update_by, update_time )  VALUES (  ?, ?, ?, ?, ?,   ?, ?, ?, ?, ?, ?, ?,  ?,  ?,       ?, ?,   ?, ?, ?, ?, ?  )\n### Cause: java.sql.SQLException: Field \'report_time\' doesn\'t have a default value\n; Field \'report_time\' doesn\'t have a default value','2026-06-28 21:02:51',11),(2071227116746027009,'000000','风控文件上传',1,'org.dromara.risk.controller.RiskFileController.upload()','POST',1,'admin','研发部门','/risk/file/upload','180.125.105.200','中国|江苏省|淮安市|电信|CN','','{\"code\":200,\"msg\":\"文件上传成功\",\"data\":{\"ossId\":\"fde468711d424be28b45f2c73ae7a654\",\"originalName\":\"3b4d3f8f672e59b96d68e6cca01c4038.jpg\",\"fileName\":\"risk/2026/06/28/43656b6bc5df447ba08976859bec7116.jpg\",\"url\":\"http://106.55.100.207:9000/rjzytest/risk/2026/06/28/43656b6bc5df447ba08976859bec7116.jpg\"}}',0,'','2026-06-28 21:40:01',2622),(2071227130201354242,'000000','风控文件上传',1,'org.dromara.risk.controller.RiskFileController.upload()','POST',1,'admin','研发部门','/risk/file/upload','180.125.105.200','中国|江苏省|淮安市|电信|CN','','{\"code\":200,\"msg\":\"文件上传成功\",\"data\":{\"ossId\":\"4c385df14e554e7f9d90a20b5561a5e3\",\"originalName\":\"7d8e4ef984565127f43d18799957560d.jpeg\",\"fileName\":\"risk/2026/06/28/ebd0b3f1853b406d9eba919e58143448.jpeg\",\"url\":\"http://106.55.100.207:9000/rjzytest/risk/2026/06/28/ebd0b3f1853b406d9eba919e58143448.jpeg\"}}',0,'','2026-06-28 21:40:04',1499),(2071227132197842946,'000000','事故上报',1,'org.dromara.risk.controller.RiskAccidentController.add()','POST',1,'admin','研发部门','/risk/accident','180.125.105.200','中国|江苏省|淮安市|电信|CN','{\"createDept\":null,\"createBy\":null,\"createTime\":null,\"updateBy\":null,\"updateTime\":null,\"id\":\"2071227132013293570\",\"accidentCode\":\"AC20260628214004315\",\"accidentTitle\":\"test\",\"accidentType\":\"人身伤害\",\"accidentLevel\":\"特别重大\",\"storeId\":null,\"storeName\":null,\"accidentLocation\":\"test\",\"accidentTime\":\"2026-06-28 21:39:30\",\"accidentCause\":\"test\",\"accidentDesc\":\"test\",\"deathCount\":0,\"injuryCount\":1,\"lossAmount\":\"0\",\"reporterId\":null,\"reporterName\":\"test\",\"reportTime\":\"2026-06-28 21:40:04\",\"handleStatus\":\"待处理\",\"handlerId\":null,\"handlerName\":null,\"handleMeasures\":null,\"investigationResult\":null,\"improvementMeasures\":null,\"remark\":null,\"participants\":\"test\",\"photoList\":\"[\\\"http://106.55.100.207:9000/rjzytest/risk/2026/06/28/43656b6bc5df447ba08976859bec7116.jpg\\\"]\",\"keyword\":null}','{\"code\":200,\"msg\":\"操作成功\",\"data\":null}',0,'','2026-06-28 21:40:05',49),(2071410142331383810,'000000','风控文件上传',1,'org.dromara.risk.controller.RiskFileController.upload()','POST',1,'admin','研发部门','/risk/file/upload','117.89.193.31','中国|江苏省|南京市|电信|CN','','{\"code\":200,\"msg\":\"文件上传成功\",\"data\":{\"ossId\":\"691457ebb39b488a8b384de08d912d2e\",\"originalName\":\"图片1.png\",\"fileName\":\"risk/2026/06/29/61d1fd8ea5b94cae840a72139c0b42e4.png\",\"url\":\"http://106.55.100.207:9000/rjzytest/risk/2026/06/29/61d1fd8ea5b94cae840a72139c0b42e4.png\"}}',0,'','2026-06-29 09:47:18',46);
/*!40000 ALTER TABLE `sys_oper_log` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sys_oss`
--

DROP TABLE IF EXISTS `sys_oss`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sys_oss` (
  `oss_id` bigint NOT NULL COMMENT '对象存储主键',
  `tenant_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '000000' COMMENT '租户编号',
  `file_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '文件名',
  `original_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '原名',
  `file_suffix` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '文件后缀名',
  `url` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'URL地址',
  `ext1` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '扩展字段',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `create_by` bigint DEFAULT NULL COMMENT '上传人',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新人',
  `service` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'minio' COMMENT '服务商',
  PRIMARY KEY (`oss_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='OSS对象存储表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sys_oss`
--

LOCK TABLES `sys_oss` WRITE;
/*!40000 ALTER TABLE `sys_oss` DISABLE KEYS */;
INSERT INTO `sys_oss` VALUES (2065362683807272961,'000000','2026/06/12/c607a96bdd124e888dd6f75d7d409687.jpeg','7d8e4ef984565127f43d18799957560d.jpeg','.jpeg','http://106.55.100.207:9000/rjzytest/2026/06/12/c607a96bdd124e888dd6f75d7d409687.jpeg','{\"bizType\":null,\"fileSize\":1801435,\"contentType\":\"image/jpeg\",\"source\":null,\"uploadIp\":null,\"remark\":null,\"tags\":null,\"refId\":null,\"refType\":null,\"isTemp\":null,\"md5\":null}',103,'2026-06-12 17:16:51',1,'2026-06-12 17:16:51',1,'minio'),(2065362849478086657,'000000','2026/06/12/92b392f185254955a2aac5bb3218683f.jpeg','5a5b173339f917bea77fed26c58562a7.jpeg','.jpeg','http://106.55.100.207:9000/rjzytest/2026/06/12/92b392f185254955a2aac5bb3218683f.jpeg','{\"bizType\":null,\"fileSize\":363107,\"contentType\":\"image/jpeg\",\"source\":null,\"uploadIp\":null,\"remark\":null,\"tags\":null,\"refId\":null,\"refType\":null,\"isTemp\":null,\"md5\":null}',103,'2026-06-12 17:17:31',1,'2026-06-12 17:17:31',1,'minio'),(2065404580915531778,'000000','2026/06/12/d35a593d6615402eb13643b9a67551d2.jpg','3b4d3f8f672e59b96d68e6cca01c4038.jpg','.jpg','http://106.55.100.207:9000/rjzytest/2026/06/12/d35a593d6615402eb13643b9a67551d2.jpg','{\"bizType\":null,\"fileSize\":2850543,\"contentType\":\"image/jpeg\",\"source\":null,\"uploadIp\":null,\"remark\":null,\"tags\":null,\"refId\":null,\"refType\":null,\"isTemp\":null,\"md5\":null}',103,'2026-06-12 20:03:20',1,'2026-06-12 20:03:20',1,'minio'),(2065404979521212417,'000000','2026/06/12/c4f01ea534304370a8c0b11c7c53d6aa.jpeg','5a5b173339f917bea77fed26c58562a7.jpeg','.jpeg','http://106.55.100.207:9000/rjzytest/2026/06/12/c4f01ea534304370a8c0b11c7c53d6aa.jpeg','{\"bizType\":null,\"fileSize\":363107,\"contentType\":\"image/jpeg\",\"source\":null,\"uploadIp\":null,\"remark\":null,\"tags\":null,\"refId\":null,\"refType\":null,\"isTemp\":null,\"md5\":null}',103,'2026-06-12 20:04:55',1,'2026-06-12 20:04:55',1,'minio'),(2065405006482198529,'000000','2026/06/12/bb54249aff2f436a84e195f70ff8da34.jpeg','7d8e4ef984565127f43d18799957560d.jpeg','.jpeg','http://106.55.100.207:9000/rjzytest/2026/06/12/bb54249aff2f436a84e195f70ff8da34.jpeg','{\"bizType\":null,\"fileSize\":1801435,\"contentType\":\"image/jpeg\",\"source\":null,\"uploadIp\":null,\"remark\":null,\"tags\":null,\"refId\":null,\"refType\":null,\"isTemp\":null,\"md5\":null}',103,'2026-06-12 20:05:02',1,'2026-06-12 20:05:02',1,'minio');
/*!40000 ALTER TABLE `sys_oss` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sys_oss_config`
--

DROP TABLE IF EXISTS `sys_oss_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sys_oss_config` (
  `oss_config_id` bigint NOT NULL COMMENT '主键',
  `tenant_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '000000' COMMENT '租户编号',
  `config_key` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '配置key',
  `access_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT 'accessKey',
  `secret_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '秘钥',
  `bucket_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '桶名称',
  `prefix` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '前缀',
  `endpoint` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '访问站点',
  `domain` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '自定义域名',
  `is_https` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'N' COMMENT '是否https（Y=是,N=否）',
  `region` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '域',
  `access_policy` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '1' COMMENT '桶权限类型(0=private 1=public 2=custom)',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '1' COMMENT '是否默认（0=是,1=否）',
  `ext1` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '扩展字段',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`oss_config_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='对象存储配置表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sys_oss_config`
--

LOCK TABLES `sys_oss_config` WRITE;
/*!40000 ALTER TABLE `sys_oss_config` DISABLE KEYS */;
INSERT INTO `sys_oss_config` VALUES (1,'000000','minio','rjzytest','rjzytest','rjzytest','','106.55.100.207:9000','','N','','1','0','',103,1,'2026-06-10 19:14:54',1,'2026-06-10 19:14:54',NULL),(2,'000000','qiniu','XXXXXXXXXXXXXXX','XXXXXXXXXXXXXXX','ruoyi','','s3-cn-north-1.qiniucs.com','','N','','1','1','',103,1,'2026-06-10 19:14:54',1,'2026-06-10 19:14:54',NULL),(3,'000000','aliyun','XXXXXXXXXXXXXXX','XXXXXXXXXXXXXXX','ruoyi','','oss-cn-beijing.aliyuncs.com','','N','','1','1','',103,1,'2026-06-10 19:14:54',1,'2026-06-10 19:14:54',NULL),(4,'000000','qcloud','XXXXXXXXXXXXXXX','XXXXXXXXXXXXXXX','ruoyi-1240000000','','cos.ap-beijing.myqcloud.com','','N','ap-beijing','1','1','',103,1,'2026-06-10 19:14:54',1,'2026-06-10 19:14:54',NULL),(5,'000000','image','rjzytest','rjzytest','rjzytest','','106.55.100.207:9000','','N','','1','1','',103,1,'2026-06-10 19:14:54',1,'2026-06-10 19:14:54',NULL);
/*!40000 ALTER TABLE `sys_oss_config` 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 COMMENT '岗位ID',
  `tenant_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '000000' COMMENT '租户编号',
  `dept_id` bigint NOT NULL COMMENT '部门id',
  `post_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '岗位编码',
  `post_category` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 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_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL 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 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,'000000',103,'ceo',NULL,'董事长',1,'0',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(2,'000000',100,'se',NULL,'项目经理',2,'0',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(3,'000000',100,'hr',NULL,'人力资源',3,'0',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(4,'000000',100,'user',NULL,'普通员工',4,'0',103,1,'2026-06-10 19:14:54',NULL,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 COMMENT '角色ID',
  `tenant_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '000000' COMMENT '租户编号',
  `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：本部门及以下数据权限 5：仅本人数据权限 6：部门及以下或本人数据权限）',
  `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代表存在 1代表删除）',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL 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 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,'000000','超级管理员','superadmin',1,'1',1,1,'0','0',103,1,'2026-06-10 19:14:54',NULL,NULL,'超级管理员'),(3,'000000','本部门及以下','test1',3,'4',1,1,'0','0',103,1,'2026-06-10 19:14:54',NULL,NULL,''),(4,'000000','仅本人','test2',4,'5',1,1,'0','0',103,1,'2026-06-10 19:14:54',NULL,NULL,'');
/*!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 */;
/*!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,1),(1,2),(1,3),(1,4),(1,5),(1,6),(1,100),(1,101),(1,102),(1,103),(1,104),(1,105),(1,106),(1,107),(1,108),(1,109),(1,113),(1,115),(1,116),(1,117),(1,118),(1,120),(1,121),(1,122),(1,123),(1,130),(1,131),(1,132),(1,133),(1,500),(1,501),(1,1001),(1,1002),(1,1003),(1,1004),(1,1005),(1,1006),(1,1007),(1,1008),(1,1009),(1,1010),(1,1011),(1,1012),(1,1013),(1,1014),(1,1015),(1,1016),(1,1017),(1,1018),(1,1019),(1,1020),(1,1021),(1,1022),(1,1023),(1,1024),(1,1025),(1,1026),(1,1027),(1,1028),(1,1029),(1,1030),(1,1031),(1,1032),(1,1033),(1,1034),(1,1035),(1,1036),(1,1037),(1,1038),(1,1039),(1,1040),(1,1041),(1,1042),(1,1043),(1,1044),(1,1045),(1,1046),(1,1047),(1,1048),(1,1050),(1,1055),(1,1056),(1,1057),(1,1058),(1,1059),(1,1060),(1,1061),(1,1062),(1,1063),(1,1064),(1,1065),(1,1500),(1,1501),(1,1502),(1,1503),(1,1504),(1,1505),(1,1506),(1,1507),(1,1508),(1,1509),(1,1510),(1,1511),(1,1600),(1,1601),(1,1602),(1,1603),(1,1606),(1,1607),(1,1608),(1,1609),(1,1610),(1,1611),(1,1612),(1,1613),(1,1614),(1,1615),(1,1620),(1,1621),(1,1622),(1,1623),(1,11616),(1,11618),(1,11619),(1,11620),(1,11621),(1,11622),(1,11623),(1,11624),(1,11625),(1,11626),(1,11627),(1,11629),(1,11630),(1,11631),(1,11632),(1,11633),(1,11638),(1,11639),(1,11640),(1,11641),(1,11642),(1,11643),(1,11644),(1,11645),(1,11646),(1,11647),(1,11648),(1,11649),(1,11650),(1,11651),(1,11652),(1,11653),(1,11654),(1,11655),(1,11656),(1,11657),(1,11658),(1,11659),(1,11700),(1,11701),(1,11855),(1,11856),(1,11857),(1,11858),(1,11859),(1,11860),(1,11861),(1,11862),(1,11863),(1,11864),(1,11865),(1,11866),(1,11867),(1,11868),(1,11869),(1,11870),(1,11871),(1,11872),(1,11873),(1,11874),(1,11875),(1,11876),(1,11877),(1,11878),(1,11879),(1,11880),(1,11881),(1,11882),(1,11883),(1,11884),(1,11885),(1,11886),(1,11887),(1,11888),(1,11889),(1,11890),(1,11891),(1,11892),(1,11893),(1,11894),(1,11895),(1,11896),(1,11897),(1,11898),(1,11899),(1,11900),(1,11901),(1,11902),(1,11903),(1,11904),(1,11905),(1,11906),(1,11907),(1,11908),(1,11909),(1,11910),(1,11911),(1,11912),(1,11913),(1,11914),(1,11915),(1,11916),(1,11917),(1,11918),(1,11919),(1,11920),(1,11921),(1,11922),(1,11923),(1,11924),(1,11925),(1,11926),(1,11927),(1,11928),(1,11929),(1,11930),(1,11931),(1,11932),(1,11933),(1,11934),(1,11935),(1,11936),(1,11937),(1,11948),(1,11949),(1,11950),(1,11951);
/*!40000 ALTER TABLE `sys_role_menu` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sys_social`
--

DROP TABLE IF EXISTS `sys_social`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sys_social` (
  `id` bigint NOT NULL COMMENT '主键',
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `tenant_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '000000' COMMENT '租户id',
  `auth_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '平台+平台唯一id',
  `source` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户来源',
  `open_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '平台编号唯一id',
  `user_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '登录账号',
  `nick_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '用户昵称',
  `email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '用户邮箱',
  `avatar` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '头像地址',
  `access_token` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户的授权令牌',
  `expire_in` int DEFAULT NULL COMMENT '用户的授权令牌的有效期，部分平台可能没有',
  `refresh_token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '刷新令牌，部分平台可能没有',
  `access_code` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '平台的授权信息，部分平台可能没有',
  `union_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '用户的 unionid',
  `scope` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '授予的权限，部分平台可能没有',
  `token_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '个别平台的授权信息，部分平台可能没有',
  `id_token` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'id token，部分平台可能没有',
  `mac_algorithm` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '小米平台用户的附带属性，部分平台可能没有',
  `mac_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '小米平台用户的附带属性，部分平台可能没有',
  `code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '用户的授权code，部分平台可能没有',
  `oauth_token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Twitter平台用户的附带属性，部分平台可能没有',
  `oauth_token_secret` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'Twitter平台用户的附带属性，部分平台可能没有',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志（0代表存在 1代表删除）',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='社会化关系表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sys_social`
--

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

--
-- Table structure for table `sys_tenant`
--

DROP TABLE IF EXISTS `sys_tenant`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sys_tenant` (
  `id` bigint NOT NULL COMMENT 'id',
  `tenant_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '租户编号',
  `contact_user_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '联系人',
  `contact_phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '联系电话',
  `company_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '企业名称',
  `license_number` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '统一社会信用代码',
  `address` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '地址',
  `intro` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '企业简介',
  `domain` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '域名',
  `remark` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  `package_id` bigint DEFAULT NULL COMMENT '租户套餐编号',
  `expire_time` datetime DEFAULT NULL COMMENT '过期时间',
  `account_count` int DEFAULT '-1' COMMENT '用户数量（-1不限制）',
  `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代表存在 1代表删除）',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='租户表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sys_tenant`
--

LOCK TABLES `sys_tenant` WRITE;
/*!40000 ALTER TABLE `sys_tenant` DISABLE KEYS */;
INSERT INTO `sys_tenant` VALUES (1,'000000','管理组','15888888888','XXX有限公司',NULL,NULL,'多租户通用后台管理管理系统',NULL,NULL,NULL,NULL,-1,'0','0',103,1,'2026-06-10 19:14:54',NULL,NULL);
/*!40000 ALTER TABLE `sys_tenant` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sys_tenant_package`
--

DROP TABLE IF EXISTS `sys_tenant_package`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sys_tenant_package` (
  `package_id` bigint NOT NULL COMMENT '租户套餐id',
  `package_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '套餐名称',
  `menu_ids` varchar(3000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '关联菜单id',
  `remark` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  `menu_check_strictly` tinyint(1) DEFAULT '1' 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代表存在 1代表删除）',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`package_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='租户套餐表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sys_tenant_package`
--

LOCK TABLES `sys_tenant_package` WRITE;
/*!40000 ALTER TABLE `sys_tenant_package` DISABLE KEYS */;
/*!40000 ALTER TABLE `sys_tenant_package` 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 COMMENT '用户ID',
  `tenant_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '000000' COMMENT '租户编号',
  `dept_id` bigint DEFAULT NULL COMMENT '部门ID',
  `user_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户账号',
  `nick_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户昵称',
  `user_type` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'sys_user' COMMENT '用户类型（sys_user系统用户）',
  `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` bigint DEFAULT NULL 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代表存在 1代表删除）',
  `login_ip` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '最后登录IP',
  `login_date` datetime DEFAULT NULL COMMENT '最后登录时间',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL 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 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,'000000',103,'admin','疯狂的狮子Li','sys_user','crazyLionLi@163.com','15888888888','1',NULL,'$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2','0','0','121.225.245.6','2026-06-29 13:47:07',103,1,'2026-06-10 19:14:54',-1,'2026-06-29 13:47:07','管理员'),(3,'000000',108,'test','本部门及以下 密码666666','sys_user','','','0',NULL,'$2a$10$b8yUzN0C71sbz.PhNOCgJe.Tu1yWC3RNrTyjSQ8p1W0.aaUXUJ.Ne','0','0','127.0.0.1','2026-06-10 19:14:54',103,1,'2026-06-10 19:14:54',3,'2026-06-10 19:14:54',NULL),(4,'000000',102,'test1','仅本人 密码666666','sys_user','','','0',NULL,'$2a$10$b8yUzN0C71sbz.PhNOCgJe.Tu1yWC3RNrTyjSQ8p1W0.aaUXUJ.Ne','0','0','127.0.0.1','2026-06-10 19:14:54',103,1,'2026-06-10 19:14:54',4,'2026-06-10 19:14:54',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);
/*!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),(3,3),(4,4);
/*!40000 ALTER TABLE `sys_user_role` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `test_demo`
--

DROP TABLE IF EXISTS `test_demo`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `test_demo` (
  `id` bigint NOT NULL COMMENT '主键',
  `tenant_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '000000' COMMENT '租户编号',
  `dept_id` bigint DEFAULT NULL COMMENT '部门id',
  `user_id` bigint DEFAULT NULL COMMENT '用户id',
  `order_num` int DEFAULT '0' COMMENT '排序号',
  `test_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'key键',
  `value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '值',
  `version` int DEFAULT '0' COMMENT '版本',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `create_by` bigint DEFAULT NULL COMMENT '创建人',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新人',
  `del_flag` int DEFAULT '0' COMMENT '删除标志',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='测试单表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `test_demo`
--

LOCK TABLES `test_demo` WRITE;
/*!40000 ALTER TABLE `test_demo` DISABLE KEYS */;
INSERT INTO `test_demo` VALUES (1,'000000',102,4,1,'测试数据权限','测试',0,103,'2026-06-10 19:14:54',1,NULL,NULL,0),(2,'000000',102,3,2,'子节点1','111',0,103,'2026-06-10 19:14:54',1,NULL,NULL,0),(3,'000000',102,3,3,'子节点2','222',0,103,'2026-06-10 19:14:54',1,NULL,NULL,0),(4,'000000',108,4,4,'测试数据','demo',0,103,'2026-06-10 19:14:54',1,NULL,NULL,0),(5,'000000',108,3,13,'子节点11','1111',0,103,'2026-06-10 19:14:54',1,NULL,NULL,0),(6,'000000',108,3,12,'子节点22','2222',0,103,'2026-06-10 19:14:54',1,NULL,NULL,0),(7,'000000',108,3,11,'子节点33','3333',0,103,'2026-06-10 19:14:54',1,NULL,NULL,0),(8,'000000',108,3,10,'子节点44','4444',0,103,'2026-06-10 19:14:54',1,NULL,NULL,0),(9,'000000',108,3,9,'子节点55','5555',0,103,'2026-06-10 19:14:54',1,NULL,NULL,0),(10,'000000',108,3,8,'子节点66','6666',0,103,'2026-06-10 19:14:54',1,NULL,NULL,0),(11,'000000',108,3,7,'子节点77','7777',0,103,'2026-06-10 19:14:54',1,NULL,NULL,0),(12,'000000',108,3,6,'子节点88','8888',0,103,'2026-06-10 19:14:54',1,NULL,NULL,0),(13,'000000',108,3,5,'子节点99','9999',0,103,'2026-06-10 19:14:54',1,NULL,NULL,0);
/*!40000 ALTER TABLE `test_demo` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `test_leave`
--

DROP TABLE IF EXISTS `test_leave`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `test_leave` (
  `id` bigint NOT NULL COMMENT 'id',
  `tenant_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '000000' COMMENT '租户编号',
  `apply_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '申请编号',
  `leave_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '请假类型',
  `start_date` datetime NOT NULL COMMENT '开始时间',
  `end_date` datetime NOT NULL COMMENT '结束时间',
  `leave_days` int NOT NULL COMMENT '请假天数',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '请假原因',
  `status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '状态',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='请假申请表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `test_leave`
--

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

--
-- Table structure for table `test_tree`
--

DROP TABLE IF EXISTS `test_tree`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `test_tree` (
  `id` bigint NOT NULL COMMENT '主键',
  `tenant_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '000000' COMMENT '租户编号',
  `parent_id` bigint DEFAULT '0' COMMENT '父id',
  `dept_id` bigint DEFAULT NULL COMMENT '部门id',
  `user_id` bigint DEFAULT NULL COMMENT '用户id',
  `tree_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '值',
  `version` int DEFAULT '0' COMMENT '版本',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `create_by` bigint DEFAULT NULL COMMENT '创建人',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新人',
  `del_flag` int DEFAULT '0' COMMENT '删除标志',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='测试树表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `test_tree`
--

LOCK TABLES `test_tree` WRITE;
/*!40000 ALTER TABLE `test_tree` DISABLE KEYS */;
INSERT INTO `test_tree` VALUES (1,'000000',0,102,4,'测试数据权限',0,103,'2026-06-10 19:14:54',1,NULL,NULL,0),(2,'000000',1,102,3,'子节点1',0,103,'2026-06-10 19:14:54',1,NULL,NULL,0),(3,'000000',2,102,3,'子节点2',0,103,'2026-06-10 19:14:54',1,NULL,NULL,0),(4,'000000',0,108,4,'测试树1',0,103,'2026-06-10 19:14:54',1,NULL,NULL,0),(5,'000000',4,108,3,'子节点11',0,103,'2026-06-10 19:14:54',1,NULL,NULL,0),(6,'000000',4,108,3,'子节点22',0,103,'2026-06-10 19:14:54',1,NULL,NULL,0),(7,'000000',4,108,3,'子节点33',0,103,'2026-06-10 19:14:54',1,NULL,NULL,0),(8,'000000',5,108,3,'子节点44',0,103,'2026-06-10 19:14:54',1,NULL,NULL,0),(9,'000000',6,108,3,'子节点55',0,103,'2026-06-10 19:14:54',1,NULL,NULL,0),(10,'000000',7,108,3,'子节点66',0,103,'2026-06-10 19:14:54',1,NULL,NULL,0),(11,'000000',7,108,3,'子节点77',0,103,'2026-06-10 19:14:54',1,NULL,NULL,0),(12,'000000',10,108,3,'子节点88',0,103,'2026-06-10 19:14:54',1,NULL,NULL,0),(13,'000000',10,108,3,'子节点99',0,103,'2026-06-10 19:14:54',1,NULL,NULL,0);
/*!40000 ALTER TABLE `test_tree` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `work_report`
--

DROP TABLE IF EXISTS `work_report`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `work_report` (
  `report_id` bigint NOT NULL AUTO_INCREMENT COMMENT '作业上报ID',
  `report_no` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '上报编号',
  `work_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '作业类型(字典: work_type)',
  `project_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '项目名称',
  `start_time` datetime NOT NULL COMMENT '施工开始时间',
  `end_time` datetime NOT NULL COMMENT '施工结束时间',
  `safety_officer` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '现场安全员',
  `contact_phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '联系电话',
  `work_images` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '现场施工图片(逗号分隔)',
  `permit_files` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '施工证件(逗号分隔)',
  `work_desc` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '施工说明',
  `audit_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '1' COMMENT '审核状态(0通过 1待审核 2不通过)',
  `audit_comment` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '审核意见',
  `audit_user` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '审核人',
  `audit_time` datetime DEFAULT NULL COMMENT '审核时间',
  `status` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '状态(0正常 1停用)',
  `del_flag` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '删除标志(0存在 1删除)',
  `create_dept` bigint DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`report_id`),
  UNIQUE KEY `uk_report_no` (`report_no`),
  KEY `idx_work_type` (`work_type`),
  KEY `idx_audit_status` (`audit_status`),
  KEY `idx_create_time` (`create_time`)
) ENGINE=InnoDB AUTO_INCREMENT=2065405046445527043 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='作业上报表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `work_report`
--

LOCK TABLES `work_report` WRITE;
/*!40000 ALTER TABLE `work_report` DISABLE KEYS */;
INSERT INTO `work_report` VALUES (2065405046445527042,'ZY202606129231d3','改造工程上报','test111','2026-06-01 00:00:00','2026-06-30 00:00:00','test111','13111111111','http://106.55.100.207:9000/rjzytest/2026/06/12/d35a593d6615402eb13643b9a67551d2.jpg,http://106.55.100.207:9000/rjzytest/2026/06/12/bb54249aff2f436a84e195f70ff8da34.jpeg','http://106.55.100.207:9000/rjzytest/2026/06/12/c4f01ea534304370a8c0b11c7c53d6aa.jpeg','test111','1',NULL,NULL,NULL,'0','0',103,1,'2026-06-12 20:05:11',1,'2026-06-12 20:05:11','test111');
/*!40000 ALTER TABLE `work_report` ENABLE KEYS */;
UNLOCK TABLES;
/*!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 2026-06-29 17:29:16

-- ============================================================
-- 风控品控移动端 巡检打卡 字段升级补丁 (v1.0.1)
-- 适用：已部署 1.0.0 的库增量升级(完整脚本已含新字段的可跳过)
-- 日期：2026-06-21
-- 特性: 幂等 — 重复执行不会因 Duplicate column 报错
-- ============================================================

-- 1. 巡检任务表：新增二维码内容字段(扫码打卡校验)
SET @col_exists := (
  SELECT COUNT(*) FROM information_schema.COLUMNS
  WHERE TABLE_SCHEMA = DATABASE()
    AND TABLE_NAME   = 'risk_inspection_task'
    AND COLUMN_NAME  = 'qr_code'
);
SET @sql := IF(@col_exists = 0,
  'ALTER TABLE `risk_inspection_task` ADD COLUMN `qr_code` varchar(200) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT ''巡检点二维码内容(扫码打卡校验用)'' AFTER `check_method`',
  'SELECT 1');
PREPARE stmt FROM @sql; EXECUTE stmt; DEALLOCATE PREPARE stmt;

-- 2. 巡检记录表：新增打卡结果字段(正常/异常)
SET @col_exists := (
  SELECT COUNT(*) FROM information_schema.COLUMNS
  WHERE TABLE_SCHEMA = DATABASE()
    AND TABLE_NAME   = 'risk_inspection_record'
    AND COLUMN_NAME  = 'result'
);
SET @sql := IF(@col_exists = 0,
  'ALTER TABLE `risk_inspection_record` ADD COLUMN `result` varchar(20) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT ''打卡结果(0正常 1异常)'' AFTER `record_status`',
  'SELECT 1');
PREPARE stmt FROM @sql; EXECUTE stmt; DEALLOCATE PREPARE stmt;
