/*
 Navicat Premium Data Transfer

 Source Server         : 111
 Source Server Type    : MySQL
 Source Server Version : 80012
 Source Host           : localhost:3306
 Source Schema         : anxin

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

 Date: 31/12/2025 18:00:06
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for act_evt_log
-- ----------------------------
DROP TABLE IF EXISTS `act_evt_log`;
CREATE TABLE `act_evt_log`  (
  `LOG_NR_` bigint(20) NOT NULL AUTO_INCREMENT,
  `TYPE_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `TIME_STAMP_` timestamp(3) NOT NULL,
  `USER_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `DATA_` longblob NULL,
  `LOCK_OWNER_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `LOCK_TIME_` timestamp(3) NULL DEFAULT NULL,
  `IS_PROCESSED_` tinyint(4) NULL DEFAULT 0,
  PRIMARY KEY (`LOG_NR_`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of act_evt_log
-- ----------------------------

-- ----------------------------
-- Table structure for act_ge_bytearray
-- ----------------------------
DROP TABLE IF EXISTS `act_ge_bytearray`;
CREATE TABLE `act_ge_bytearray`  (
  `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `REV_` int(11) NULL DEFAULT NULL,
  `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `DEPLOYMENT_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `BYTES_` longblob NULL,
  `GENERATED_` tinyint(4) NULL DEFAULT NULL,
  PRIMARY KEY (`ID_`) USING BTREE,
  INDEX `ACT_FK_BYTEARR_DEPL`(`DEPLOYMENT_ID_` ASC) USING BTREE,
  CONSTRAINT `ACT_FK_BYTEARR_DEPL` FOREIGN KEY (`DEPLOYMENT_ID_`) REFERENCES `act_re_deployment` (`id_`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of act_ge_bytearray
-- ----------------------------

-- ----------------------------
-- Table structure for act_ge_property
-- ----------------------------
DROP TABLE IF EXISTS `act_ge_property`;
CREATE TABLE `act_ge_property`  (
  `NAME_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `VALUE_` varchar(300) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `REV_` int(11) NULL DEFAULT NULL,
  PRIMARY KEY (`NAME_`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of act_ge_property
-- ----------------------------
INSERT INTO `act_ge_property` VALUES ('cfg.execution-related-entities-count', 'false', 1);
INSERT INTO `act_ge_property` VALUES ('next.dbid', '1', 1);
INSERT INTO `act_ge_property` VALUES ('schema.history', 'create(7.1.0-M6)', 1);
INSERT INTO `act_ge_property` VALUES ('schema.version', '7.1.0-M6', 1);

-- ----------------------------
-- Table structure for act_procdef_info
-- ----------------------------
DROP TABLE IF EXISTS `act_procdef_info`;
CREATE TABLE `act_procdef_info`  (
  `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `REV_` int(11) NULL DEFAULT NULL,
  `INFO_JSON_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  PRIMARY KEY (`ID_`) USING BTREE,
  UNIQUE INDEX `ACT_UNIQ_INFO_PROCDEF`(`PROC_DEF_ID_` ASC) USING BTREE,
  INDEX `ACT_IDX_INFO_PROCDEF`(`PROC_DEF_ID_` ASC) USING BTREE,
  INDEX `ACT_FK_INFO_JSON_BA`(`INFO_JSON_ID_` ASC) USING BTREE,
  CONSTRAINT `ACT_FK_INFO_JSON_BA` FOREIGN KEY (`INFO_JSON_ID_`) REFERENCES `act_ge_bytearray` (`id_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_INFO_PROCDEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `act_re_procdef` (`id_`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of act_procdef_info
-- ----------------------------

-- ----------------------------
-- Table structure for act_re_deployment
-- ----------------------------
DROP TABLE IF EXISTS `act_re_deployment`;
CREATE TABLE `act_re_deployment`  (
  `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `CATEGORY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  `DEPLOY_TIME_` timestamp(3) NULL DEFAULT NULL,
  `ENGINE_VERSION_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `VERSION_` int(11) NULL DEFAULT 1,
  `PROJECT_RELEASE_VERSION_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  PRIMARY KEY (`ID_`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of act_re_deployment
-- ----------------------------
INSERT INTO `act_re_deployment` VALUES ('00b26f63-e01e-11f0-a45a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 00:39:51.372', NULL, 186, NULL);
INSERT INTO `act_re_deployment` VALUES ('01132355-e0b1-11f0-b81f-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 18:12:08.017', NULL, 205, NULL);
INSERT INTO `act_re_deployment` VALUES ('020c51d1-df1e-11f0-b592-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-22 18:07:22.481', NULL, 123, NULL);
INSERT INTO `act_re_deployment` VALUES ('03b55595-e0c5-11f0-af9c-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 20:35:22.379', NULL, 208, NULL);
INSERT INTO `act_re_deployment` VALUES ('03d557a4-de6d-11f0-bd6a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 21:00:24.553', NULL, 93, NULL);
INSERT INTO `act_re_deployment` VALUES ('03db9f3c-dfb3-11f0-9733-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 11:54:00.520', NULL, 147, NULL);
INSERT INTO `act_re_deployment` VALUES ('04c2ce29-df18-11f0-a342-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-22 17:24:30.052', NULL, 113, NULL);
INSERT INTO `act_re_deployment` VALUES ('0536f396-de51-11f0-a4a0-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 17:40:00.963', NULL, 70, NULL);
INSERT INTO `act_re_deployment` VALUES ('057da5d7-e019-11f0-82e9-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 00:04:11.928', NULL, 177, NULL);
INSERT INTO `act_re_deployment` VALUES ('057e6690-e403-11f0-a616-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-28 23:36:47.658', NULL, 269, NULL);
INSERT INTO `act_re_deployment` VALUES ('061f81ea-e0a1-11f0-afcf-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 16:17:44.535', NULL, 198, NULL);
INSERT INTO `act_re_deployment` VALUES ('06deca2a-dfd4-11f0-b701-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 15:50:18.951', NULL, 155, NULL);
INSERT INTO `act_re_deployment` VALUES ('0782a3c1-e4b9-11f0-8ce9-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 21:19:39.445', NULL, 310, NULL);
INSERT INTO `act_re_deployment` VALUES ('088889d0-dfd1-11f0-ba9d-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 15:28:53.267', NULL, 153, NULL);
INSERT INTO `act_re_deployment` VALUES ('09222453-df52-11f0-a396-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 00:19:48.196', NULL, 126, NULL);
INSERT INTO `act_re_deployment` VALUES ('0a1aa4dc-df19-11f0-8175-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-22 17:31:48.505', NULL, 116, NULL);
INSERT INTO `act_re_deployment` VALUES ('0ab6bce4-e1ba-11f0-baec-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-26 01:49:20.829', NULL, 249, NULL);
INSERT INTO `act_re_deployment` VALUES ('0ada1334-e01e-11f0-a45a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 00:40:08.409', NULL, 187, NULL);
INSERT INTO `act_re_deployment` VALUES ('0b4d6be4-ddce-11f0-a853-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 02:02:27.105', NULL, 48, NULL);
INSERT INTO `act_re_deployment` VALUES ('0b934a24-e4de-11f0-9025-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-30 01:44:37.649', NULL, 344, NULL);
INSERT INTO `act_re_deployment` VALUES ('0cc3715c-ddcb-11f0-b7cd-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 01:41:01.068', NULL, 35, NULL);
INSERT INTO `act_re_deployment` VALUES ('0df9337f-ddc0-11f0-b8fc-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 00:22:18.631', NULL, 24, NULL);
INSERT INTO `act_re_deployment` VALUES ('0e7fc005-de6d-11f0-bd6a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 21:00:42.448', NULL, 94, NULL);
INSERT INTO `act_re_deployment` VALUES ('0eb90318-ddcf-11f0-a853-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 02:09:42.342', NULL, 52, NULL);
INSERT INTO `act_re_deployment` VALUES ('0eea2f21-e01c-11f0-a45a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 00:25:56.234', NULL, 184, NULL);
INSERT INTO `act_re_deployment` VALUES ('0f0a3e32-e0e4-11f0-9e27-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-25 00:17:35.788', NULL, 215, NULL);
INSERT INTO `act_re_deployment` VALUES ('0fcecae1-dda8-11f0-92d3-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-20 21:30:33.787', NULL, 14, NULL);
INSERT INTO `act_re_deployment` VALUES ('106c471f-e4cf-11f0-85ef-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 23:57:23.311', NULL, 323, NULL);
INSERT INTO `act_re_deployment` VALUES ('11ac1391-e403-11f0-a616-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-28 23:37:08.093', NULL, 270, NULL);
INSERT INTO `act_re_deployment` VALUES ('121aa34a-df18-11f0-a342-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-22 17:24:52.436', NULL, 114, NULL);
INSERT INTO `act_re_deployment` VALUES ('1304ad00-e408-11f0-a22e-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 00:12:57.835', NULL, 291, NULL);
INSERT INTO `act_re_deployment` VALUES ('14abb710-ddcc-11f0-b7cd-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 01:48:23.828', NULL, 39, NULL);
INSERT INTO `act_re_deployment` VALUES ('14c14b83-dfb2-11f0-a265-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 11:47:19.367', NULL, 146, NULL);
INSERT INTO `act_re_deployment` VALUES ('15aba623-e0ad-11f0-a462-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 17:44:04.586', NULL, 202, NULL);
INSERT INTO `act_re_deployment` VALUES ('16100103-dfd9-11f0-9287-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 16:26:31.917', NULL, 160, NULL);
INSERT INTO `act_re_deployment` VALUES ('16616e15-e01e-11f0-a45a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 00:40:27.751', NULL, 188, NULL);
INSERT INTO `act_re_deployment` VALUES ('1694142a-e01a-11f0-82e9-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 00:11:50.095', NULL, 180, NULL);
INSERT INTO `act_re_deployment` VALUES ('16e268bc-e4b7-11f0-8ce9-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 21:05:46.249', NULL, 305, NULL);
INSERT INTO `act_re_deployment` VALUES ('1709a525-e1ba-11f0-baec-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-26 01:49:41.509', NULL, 250, NULL);
INSERT INTO `act_re_deployment` VALUES ('1883fd56-de6d-11f0-bd6a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 21:00:59.254', NULL, 95, NULL);
INSERT INTO `act_re_deployment` VALUES ('18c5a346-e0c5-11f0-af9c-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 20:35:57.711', NULL, 209, NULL);
INSERT INTO `act_re_deployment` VALUES ('19255f48-e527-11f0-af78-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-30 10:27:33.629', NULL, 345, NULL);
INSERT INTO `act_re_deployment` VALUES ('19964281-e018-11f0-82e9-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 23:57:36.154', NULL, 171, NULL);
INSERT INTO `act_re_deployment` VALUES ('19ec3153-e0e4-11f0-9e27-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-25 00:17:54.043', NULL, 216, NULL);
INSERT INTO `act_re_deployment` VALUES ('1ae39951-e408-11f0-a22e-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 00:13:11.042', NULL, 292, NULL);
INSERT INTO `act_re_deployment` VALUES ('1b01129d-ddcb-11f0-b7cd-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 01:41:24.952', NULL, 36, NULL);
INSERT INTO `act_re_deployment` VALUES ('1b742dd4-e0b0-11f0-8dd8-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 18:05:42.779', NULL, 204, NULL);
INSERT INTO `act_re_deployment` VALUES ('1bf1be53-e4d5-11f0-8aad-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-30 00:40:39.638', NULL, 325, NULL);
INSERT INTO `act_re_deployment` VALUES ('1c60f993-de51-11f0-b6c2-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 17:40:39.824', NULL, 71, NULL);
INSERT INTO `act_re_deployment` VALUES ('1c74544d-e0df-11f0-b762-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 23:42:10.808', NULL, 213, NULL);
INSERT INTO `act_re_deployment` VALUES ('1ca76eda-e0e6-11f0-9e27-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-25 00:32:17.625', NULL, 223, NULL);
INSERT INTO `act_re_deployment` VALUES ('1d2d8546-e0aa-11f0-bb1a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 17:22:48.690', NULL, 201, NULL);
INSERT INTO `act_re_deployment` VALUES ('1ea323b6-e406-11f0-a616-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-28 23:58:58.338', NULL, 275, NULL);
INSERT INTO `act_re_deployment` VALUES ('1f8f2faf-e161-11f0-9bbf-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-25 15:12:50.592', NULL, 232, NULL);
INSERT INTO `act_re_deployment` VALUES ('1fd9c6d1-dfd1-11f0-ba9d-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 15:29:32.384', NULL, 154, NULL);
INSERT INTO `act_re_deployment` VALUES ('20c3897b-df18-11f0-a342-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-22 17:25:17.010', NULL, 115, NULL);
INSERT INTO `act_re_deployment` VALUES ('2114069a-de6c-11f0-bd6a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 20:54:04.120', NULL, 83, NULL);
INSERT INTO `act_re_deployment` VALUES ('214cdd10-ddc0-11f0-b8fc-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 00:22:51.055', NULL, 25, NULL);
INSERT INTO `act_re_deployment` VALUES ('22026b76-e01e-11f0-a45a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 00:40:47.264', NULL, 189, NULL);
INSERT INTO `act_re_deployment` VALUES ('220dda87-de6d-11f0-bd6a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 21:01:15.255', NULL, 96, NULL);
INSERT INTO `act_re_deployment` VALUES ('22926f9f-e021-11f0-9d21-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 01:02:16.700', NULL, 196, NULL);
INSERT INTO `act_re_deployment` VALUES ('230f4b1b-de50-11f0-b0d2-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 17:33:41.500', NULL, 67, NULL);
INSERT INTO `act_re_deployment` VALUES ('24de9834-e4d5-11f0-8aad-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-30 00:40:54.616', NULL, 326, NULL);
INSERT INTO `act_re_deployment` VALUES ('24dfeb32-df1f-11f0-b592-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-22 18:15:30.402', NULL, 124, NULL);
INSERT INTO `act_re_deployment` VALUES ('259d5b54-e0e4-11f0-9e27-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-25 00:18:13.665', NULL, 217, NULL);
INSERT INTO `act_re_deployment` VALUES ('2761dccb-e0e6-11f0-9e27-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-25 00:32:35.624', NULL, 224, NULL);
INSERT INTO `act_re_deployment` VALUES ('294e54ed-e4b8-11f0-8ce9-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 21:13:26.646', NULL, 306, NULL);
INSERT INTO `act_re_deployment` VALUES ('29f50b8e-ddcb-11f0-b7cd-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 01:41:50.044', NULL, 37, NULL);
INSERT INTO `act_re_deployment` VALUES ('2ab8f0f8-e408-11f0-b862-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 00:13:37.598', NULL, 293, NULL);
INSERT INTO `act_re_deployment` VALUES ('2c55a5eb-de6c-11f0-bd6a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 20:54:23.007', NULL, 84, NULL);
INSERT INTO `act_re_deployment` VALUES ('2cd913f7-e01e-11f0-a45a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 00:41:05.448', NULL, 190, NULL);
INSERT INTO `act_re_deployment` VALUES ('2dcc5391-ddc0-11f0-b8fc-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 00:23:12.023', NULL, 26, NULL);
INSERT INTO `act_re_deployment` VALUES ('2f0481c3-df1f-11f0-b592-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-22 18:15:47.423', NULL, 125, NULL);
INSERT INTO `act_re_deployment` VALUES ('2faa0d0a-e1bc-11f0-a98a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-26 02:04:41.782', NULL, 251, NULL);
INSERT INTO `act_re_deployment` VALUES ('3166f10e-e00a-11f0-abc6-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 22:18:03.153', NULL, 165, NULL);
INSERT INTO `act_re_deployment` VALUES ('318b6745-e0e4-11f0-9e27-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-25 00:18:33.678', NULL, 218, NULL);
INSERT INTO `act_re_deployment` VALUES ('31aac43c-e0e6-11f0-9e27-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-25 00:32:52.880', NULL, 225, NULL);
INSERT INTO `act_re_deployment` VALUES ('3276c60c-dfb3-11f0-8969-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 11:55:18.710', NULL, 148, NULL);
INSERT INTO `act_re_deployment` VALUES ('3334960b-dd03-11f0-a898-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-20 01:50:26.216', NULL, 7, NULL);
INSERT INTO `act_re_deployment` VALUES ('3393f008-de6d-11f0-bd6a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 21:01:44.651', NULL, 97, NULL);
INSERT INTO `act_re_deployment` VALUES ('351f4896-de39-11f0-ac36-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 14:49:33.410', NULL, 55, NULL);
INSERT INTO `act_re_deployment` VALUES ('3702f4b2-dda8-11f0-92d3-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-20 21:31:39.561', NULL, 15, NULL);
INSERT INTO `act_re_deployment` VALUES ('379899d5-e4d5-11f0-8aad-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-30 00:41:26.030', NULL, 327, NULL);
INSERT INTO `act_re_deployment` VALUES ('37b74667-e406-11f0-a616-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-28 23:59:40.412', NULL, 276, NULL);
INSERT INTO `act_re_deployment` VALUES ('38869478-e01e-11f0-a45a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 00:41:25.041', NULL, 191, NULL);
INSERT INTO `act_re_deployment` VALUES ('38e0506f-ddb1-11f0-be34-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-20 22:36:08.155', NULL, 20, NULL);
INSERT INTO `act_re_deployment` VALUES ('38e8c74b-e020-11f0-9d21-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 00:55:44.671', NULL, 192, NULL);
INSERT INTO `act_re_deployment` VALUES ('39d28509-df54-11f0-946e-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 00:35:28.863', NULL, 131, NULL);
INSERT INTO `act_re_deployment` VALUES ('3a4c562b-e4da-11f0-9025-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-30 01:17:18.042', NULL, 335, NULL);
INSERT INTO `act_re_deployment` VALUES ('3a67fcd8-de3d-11f0-ac36-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 15:18:20.269', NULL, 57, NULL);
INSERT INTO `act_re_deployment` VALUES ('3c2371d2-df57-11f0-b60b-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 00:57:01.247', NULL, 139, NULL);
INSERT INTO `act_re_deployment` VALUES ('3d814ed0-e401-11f0-8204-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-28 23:24:02.639', NULL, 260, NULL);
INSERT INTO `act_re_deployment` VALUES ('3daafca9-ddcf-11f0-a853-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 02:11:01.102', NULL, 53, NULL);
INSERT INTO `act_re_deployment` VALUES ('3dba3874-dd03-11f0-9b1a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-20 01:50:43.861', NULL, 8, NULL);
INSERT INTO `act_re_deployment` VALUES ('3e2b71c2-de5b-11f0-8f7d-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 18:53:11.478', NULL, 76, NULL);
INSERT INTO `act_re_deployment` VALUES ('3f5f74d9-e52b-11f0-af78-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-30 10:57:15.795', NULL, 346, NULL);
INSERT INTO `act_re_deployment` VALUES ('3fb76964-de50-11f0-a4a0-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 17:34:29.614', NULL, 68, NULL);
INSERT INTO `act_re_deployment` VALUES ('401b7cd9-de6d-11f0-bd6a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 21:02:05.678', NULL, 98, NULL);
INSERT INTO `act_re_deployment` VALUES ('42dd4cee-e4b8-11f0-8ce9-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 21:14:09.526', NULL, 307, NULL);
INSERT INTO `act_re_deployment` VALUES ('436354e5-ddce-11f0-a853-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 02:04:01.203', NULL, 49, NULL);
INSERT INTO `act_re_deployment` VALUES ('439b7e36-e555-11f0-a066-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-30 15:58:01.750', NULL, 348, NULL);
INSERT INTO `act_re_deployment` VALUES ('43efd4ba-e003-11f0-abc6-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 21:28:27.767', NULL, 161, NULL);
INSERT INTO `act_re_deployment` VALUES ('440c3cf2-e4c8-11f0-84a4-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 23:08:43.465', NULL, 319, NULL);
INSERT INTO `act_re_deployment` VALUES ('443071f3-e189-11f0-bad1-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-25 20:00:11.897', NULL, 237, NULL);
INSERT INTO `act_re_deployment` VALUES ('44471696-e0e4-11f0-9e27-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-25 00:19:05.108', NULL, 219, NULL);
INSERT INTO `act_re_deployment` VALUES ('452c2ef3-dcff-11f0-9b1a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-20 01:22:18.372', NULL, 5, NULL);
INSERT INTO `act_re_deployment` VALUES ('4682cfc8-e406-11f0-a616-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 00:00:05.233', NULL, 277, NULL);
INSERT INTO `act_re_deployment` VALUES ('475ac63c-e4da-11f0-9025-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-30 01:17:39.942', NULL, 336, NULL);
INSERT INTO `act_re_deployment` VALUES ('47925f1d-e0e6-11f0-9e27-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-25 00:33:29.630', NULL, 226, NULL);
INSERT INTO `act_re_deployment` VALUES ('48482ea6-dd99-11f0-b011-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-20 19:44:46.084', NULL, 12, NULL);
INSERT INTO `act_re_deployment` VALUES ('498457af-e00a-11f0-abc6-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 22:18:43.613', NULL, 166, NULL);
INSERT INTO `act_re_deployment` VALUES ('4a25868a-de6d-11f0-bd6a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 21:02:22.520', NULL, 99, NULL);
INSERT INTO `act_re_deployment` VALUES ('4a6426f0-e161-11f0-9bbf-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-25 15:14:02.445', NULL, 233, NULL);
INSERT INTO `act_re_deployment` VALUES ('4b2e3675-e0a9-11f0-bb1a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 17:16:56.355', NULL, 200, NULL);
INSERT INTO `act_re_deployment` VALUES ('4b6d81c1-ddcc-11f0-b7cd-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 01:49:55.696', NULL, 40, NULL);
INSERT INTO `act_re_deployment` VALUES ('4d366df3-e4c8-11f0-84a4-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 23:08:58.846', NULL, 320, NULL);
INSERT INTO `act_re_deployment` VALUES ('52a99232-e495-11f0-b161-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 17:04:03.645', NULL, 297, NULL);
INSERT INTO `act_re_deployment` VALUES ('52d82737-e496-11f0-9eca-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 17:11:13.440', NULL, 299, NULL);
INSERT INTO `act_re_deployment` VALUES ('5304280d-e4da-11f0-9025-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-30 01:17:59.519', NULL, 337, NULL);
INSERT INTO `act_re_deployment` VALUES ('53232e21-e401-11f0-8204-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-28 23:24:38.927', NULL, 261, NULL);
INSERT INTO `act_re_deployment` VALUES ('533ee443-dda8-11f0-92d3-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-20 21:32:26.930', NULL, 16, NULL);
INSERT INTO `act_re_deployment` VALUES ('53ab629a-e407-11f0-a22e-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 00:07:36.796', NULL, 285, NULL);
INSERT INTO `act_re_deployment` VALUES ('5652773e-de6a-11f0-9965-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 20:41:14.438', NULL, 78, NULL);
INSERT INTO `act_re_deployment` VALUES ('56676062-ddc0-11f0-b8fc-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 00:24:20.150', NULL, 27, NULL);
INSERT INTO `act_re_deployment` VALUES ('583783c9-df56-11f0-9225-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 00:50:38.864', NULL, 135, NULL);
INSERT INTO `act_re_deployment` VALUES ('5886cd08-dfd6-11f0-b0f1-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 16:06:54.959', NULL, 157, NULL);
INSERT INTO `act_re_deployment` VALUES ('59bb900f-dd03-11f0-b456-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-20 01:51:30.857', NULL, 9, NULL);
INSERT INTO `act_re_deployment` VALUES ('5a3ee208-e019-11f0-82e9-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 00:06:34.132', NULL, 178, NULL);
INSERT INTO `act_re_deployment` VALUES ('5a9486bb-de6d-11f0-bd6a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 21:02:50.093', NULL, 100, NULL);
INSERT INTO `act_re_deployment` VALUES ('5acb5937-ddcf-11f0-817d-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 02:11:49.973', NULL, 54, NULL);
INSERT INTO `act_re_deployment` VALUES ('5bb5e7b9-e406-11f0-a616-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 00:00:40.801', NULL, 278, NULL);
INSERT INTO `act_re_deployment` VALUES ('5caff1bc-e008-11f0-abc6-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 22:04:56.781', NULL, 163, NULL);
INSERT INTO `act_re_deployment` VALUES ('5e88aee5-e4d8-11f0-aba3-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-30 01:03:59.842', NULL, 329, NULL);
INSERT INTO `act_re_deployment` VALUES ('5eba1a63-e0c1-11f0-af9c-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 20:09:17.074', NULL, 206, NULL);
INSERT INTO `act_re_deployment` VALUES ('5f759fd4-ddad-11f0-b6f0-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-20 22:08:34.902', NULL, 18, NULL);
INSERT INTO `act_re_deployment` VALUES ('603dbf4f-e4b8-11f0-8ce9-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 21:14:58.816', NULL, 308, NULL);
INSERT INTO `act_re_deployment` VALUES ('60b30332-e401-11f0-8204-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-28 23:25:01.686', NULL, 262, NULL);
INSERT INTO `act_re_deployment` VALUES ('611121ec-ddbf-11f0-b8fc-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 00:17:28.541', NULL, 21, NULL);
INSERT INTO `act_re_deployment` VALUES ('611af8b1-e161-11f0-9bbf-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-25 15:14:40.565', NULL, 234, NULL);
INSERT INTO `act_re_deployment` VALUES ('61e4524a-df56-11f0-9225-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 00:50:55.095', NULL, 136, NULL);
INSERT INTO `act_re_deployment` VALUES ('625db30d-ddcc-11f0-a853-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 01:50:34.178', NULL, 41, NULL);
INSERT INTO `act_re_deployment` VALUES ('62ce93f3-ddc0-11f0-b8fc-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 00:24:40.961', NULL, 28, NULL);
INSERT INTO `act_re_deployment` VALUES ('64a22eea-e52b-11f0-af78-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-30 10:58:18.310', NULL, 347, NULL);
INSERT INTO `act_re_deployment` VALUES ('652633e4-df52-11f0-a396-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 00:22:22.573', NULL, 127, NULL);
INSERT INTO `act_re_deployment` VALUES ('652b0999-dfd6-11f0-b0f1-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 16:07:16.172', NULL, 158, NULL);
INSERT INTO `act_re_deployment` VALUES ('66eb76b1-dcf9-11f0-9f74-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-20 00:40:18.009', NULL, 4, NULL);
INSERT INTO `act_re_deployment` VALUES ('676ae24a-e406-11f0-a616-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 00:01:00.440', NULL, 279, NULL);
INSERT INTO `act_re_deployment` VALUES ('67d633d2-e01d-11f0-a45a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 00:35:34.913', NULL, 185, NULL);
INSERT INTO `act_re_deployment` VALUES ('67e77a59-e408-11f0-b862-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 00:15:20.246', NULL, 294, NULL);
INSERT INTO `act_re_deployment` VALUES ('68a0f8a2-e403-11f0-a616-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-28 23:39:33.982', NULL, 271, NULL);
INSERT INTO `act_re_deployment` VALUES ('69b7ee5c-e400-11f0-8204-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-28 23:18:07.316', NULL, 256, NULL);
INSERT INTO `act_re_deployment` VALUES ('6ac11641-de59-11f0-a615-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 18:40:07.288', NULL, 75, NULL);
INSERT INTO `act_re_deployment` VALUES ('6ad7182e-e4da-11f0-9025-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-30 01:18:39.488', NULL, 338, NULL);
INSERT INTO `act_re_deployment` VALUES ('6c3bbddd-e008-11f0-abc6-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 22:05:22.859', NULL, 164, NULL);
INSERT INTO `act_re_deployment` VALUES ('6d08d1a3-e401-11f0-8204-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-28 23:25:22.382', NULL, 263, NULL);
INSERT INTO `act_re_deployment` VALUES ('6d2b5386-e4d8-11f0-aba3-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-30 01:04:24.398', NULL, 330, NULL);
INSERT INTO `act_re_deployment` VALUES ('6d51ec77-e55d-11f0-a066-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-30 16:56:27.718', NULL, 349, NULL);
INSERT INTO `act_re_deployment` VALUES ('6df199c2-de82-11f0-b487-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 23:33:41.985', NULL, 104, NULL);
INSERT INTO `act_re_deployment` VALUES ('6ed6af0b-de6d-11f0-b912-847b574f58ac', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 21:03:24.077', NULL, 101, NULL);
INSERT INTO `act_re_deployment` VALUES ('6f062c6b-e3fa-11f0-8204-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-28 22:35:19.214', NULL, 255, NULL);
INSERT INTO `act_re_deployment` VALUES ('712a1bfe-dfcd-11f0-ba9d-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 15:03:10.806', NULL, 151, NULL);
INSERT INTO `act_re_deployment` VALUES ('733007c2-e161-11f0-9bbf-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-25 15:15:10.901', NULL, 235, NULL);
INSERT INTO `act_re_deployment` VALUES ('74823acd-e400-11f0-8204-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-28 23:18:25.430', NULL, 257, NULL);
INSERT INTO `act_re_deployment` VALUES ('7724fa72-e4b9-11f0-8ce9-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 21:22:46.741', NULL, 311, NULL);
INSERT INTO `act_re_deployment` VALUES ('784e5683-e403-11f0-a616-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-28 23:40:00.283', NULL, 272, NULL);
INSERT INTO `act_re_deployment` VALUES ('796024df-e4db-11f0-9025-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-30 01:26:13.374', NULL, 339, NULL);
INSERT INTO `act_re_deployment` VALUES ('7ab5d167-e4d8-11f0-aba3-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-30 01:04:47.120', NULL, 331, NULL);
INSERT INTO `act_re_deployment` VALUES ('7bbe47f2-e018-11f0-82e9-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 00:00:20.831', NULL, 172, NULL);
INSERT INTO `act_re_deployment` VALUES ('7c9e749a-dfd6-11f0-b0f1-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 16:07:55.518', NULL, 159, NULL);
INSERT INTO `act_re_deployment` VALUES ('7cba5218-e55d-11f0-a066-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-30 16:56:53.570', NULL, 350, NULL);
INSERT INTO `act_re_deployment` VALUES ('7d68aeb5-df52-11f0-a396-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 00:23:03.274', NULL, 128, NULL);
INSERT INTO `act_re_deployment` VALUES ('7f346440-e00a-11f0-abc6-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 22:20:13.685', NULL, 167, NULL);
INSERT INTO `act_re_deployment` VALUES ('801df0ae-de6e-11f0-bd56-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 21:11:02.561', NULL, 103, NULL);
INSERT INTO `act_re_deployment` VALUES ('804cd16b-e406-11f0-a616-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 00:01:42.187', NULL, 280, NULL);
INSERT INTO `act_re_deployment` VALUES ('80abe93e-e4c7-11f0-84a4-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 23:03:15.675', NULL, 315, NULL);
INSERT INTO `act_re_deployment` VALUES ('8131d6fd-e402-11f0-a616-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-28 23:33:05.694', NULL, 266, NULL);
INSERT INTO `act_re_deployment` VALUES ('8153b3df-de58-11f0-a6fc-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 18:33:35.661', NULL, 72, NULL);
INSERT INTO `act_re_deployment` VALUES ('82920dd4-e403-11f0-a616-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-28 23:40:17.506', NULL, 273, NULL);
INSERT INTO `act_re_deployment` VALUES ('82f1e772-e4cf-11f0-8aad-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-30 00:00:35.457', NULL, 324, NULL);
INSERT INTO `act_re_deployment` VALUES ('86d4a162-dcf7-11f0-837a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-20 00:26:52.555', NULL, 1, NULL);
INSERT INTO `act_re_deployment` VALUES ('87fca56b-de40-11f0-ac36-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 15:41:58.921', NULL, 60, NULL);
INSERT INTO `act_re_deployment` VALUES ('8966a426-e4c9-11f0-b56e-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 23:17:49.299', NULL, 322, NULL);
INSERT INTO `act_re_deployment` VALUES ('89b976b2-de6d-11f0-aac3-847b574f58ac', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 21:04:09.185', NULL, 102, NULL);
INSERT INTO `act_re_deployment` VALUES ('89d9d1cb-e1bc-11f0-a98a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-26 02:07:13.120', NULL, 252, NULL);
INSERT INTO `act_re_deployment` VALUES ('8cb19d5c-e0dd-11f0-b762-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 23:31:00.116', NULL, 212, NULL);
INSERT INTO `act_re_deployment` VALUES ('8e3a56dc-e406-11f0-a616-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 00:02:05.554', NULL, 281, NULL);
INSERT INTO `act_re_deployment` VALUES ('8f42e379-e55d-11f0-a066-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-30 16:57:24.662', NULL, 351, NULL);
INSERT INTO `act_re_deployment` VALUES ('8f90ca2b-e407-11f0-a22e-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 00:09:17.291', NULL, 286, NULL);
INSERT INTO `act_re_deployment` VALUES ('9041fe40-e4db-11f0-9025-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-30 01:26:51.764', NULL, 340, NULL);
INSERT INTO `act_re_deployment` VALUES ('92311a7c-de40-11f0-ac36-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 15:42:16.039', NULL, 61, NULL);
INSERT INTO `act_re_deployment` VALUES ('92b7faaa-ddc2-11f0-b7cd-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 00:40:20.333', NULL, 33, NULL);
INSERT INTO `act_re_deployment` VALUES ('92c9278d-df1c-11f0-b592-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-22 17:57:06.316', NULL, 119, NULL);
INSERT INTO `act_re_deployment` VALUES ('92db1b81-e1ad-11f0-bf4f-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-26 00:20:05.775', NULL, 241, NULL);
INSERT INTO `act_re_deployment` VALUES ('933387b3-e018-11f0-82e9-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 00:01:00.191', NULL, 173, NULL);
INSERT INTO `act_re_deployment` VALUES ('942715dc-e020-11f0-9d21-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 00:58:17.756', NULL, 193, NULL);
INSERT INTO `act_re_deployment` VALUES ('960762cd-de58-11f0-bfef-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 18:34:10.394', NULL, 73, NULL);
INSERT INTO `act_re_deployment` VALUES ('96d76e1c-e407-11f0-a22e-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 00:09:29.501', NULL, 287, NULL);
INSERT INTO `act_re_deployment` VALUES ('9808d690-df57-11f0-9b60-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 00:59:35.424', NULL, 140, NULL);
INSERT INTO `act_re_deployment` VALUES ('981e01da-e408-11f0-b862-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 00:16:41.132', NULL, 295, NULL);
INSERT INTO `act_re_deployment` VALUES ('99012660-e4b8-11f0-8ce9-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 21:16:34.048', NULL, 309, NULL);
INSERT INTO `act_re_deployment` VALUES ('9912aa83-e496-11f0-b369-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 17:13:11.270', NULL, 300, NULL);
INSERT INTO `act_re_deployment` VALUES ('991454ab-e005-11f0-abc6-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 21:45:09.608', NULL, 162, NULL);
INSERT INTO `act_re_deployment` VALUES ('998de66c-e1bc-11f0-a98a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-26 02:07:39.466', NULL, 253, NULL);
INSERT INTO `act_re_deployment` VALUES ('99b6e401-e00a-11f0-abc6-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 22:20:58.159', NULL, 168, NULL);
INSERT INTO `act_re_deployment` VALUES ('9aa6b2a8-e4d8-11f0-aba3-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-30 01:05:40.709', NULL, 332, NULL);
INSERT INTO `act_re_deployment` VALUES ('9aee95be-dd73-11f0-aa15-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-20 15:15:03.846', NULL, 11, NULL);
INSERT INTO `act_re_deployment` VALUES ('9bce527f-e4c7-11f0-84a4-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 23:04:01.202', NULL, 316, NULL);
INSERT INTO `act_re_deployment` VALUES ('9be8f0e4-e401-11f0-8204-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-28 23:26:41.026', NULL, 264, NULL);
INSERT INTO `act_re_deployment` VALUES ('9c41099d-e406-11f0-a616-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 00:02:29.084', NULL, 282, NULL);
INSERT INTO `act_re_deployment` VALUES ('9df4de0c-de6c-11f0-bd6a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 20:57:33.631', NULL, 85, NULL);
INSERT INTO `act_re_deployment` VALUES ('9e75c9ad-e020-11f0-9d21-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 00:58:35.049', NULL, 194, NULL);
INSERT INTO `act_re_deployment` VALUES ('9eb6c781-df58-11f0-9b60-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 01:06:56.129', NULL, 141, NULL);
INSERT INTO `act_re_deployment` VALUES ('9f3c3b0e-dcf8-11f0-b497-847b574f58ac', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-20 00:34:42.997', NULL, 2, NULL);
INSERT INTO `act_re_deployment` VALUES ('9f41de94-df5a-11f0-9b60-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 01:21:16.035', NULL, 144, NULL);
INSERT INTO `act_re_deployment` VALUES ('a1697d77-df53-11f0-a396-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 00:31:13.174', NULL, 130, NULL);
INSERT INTO `act_re_deployment` VALUES ('a16a59cd-de40-11f0-ac36-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 15:42:41.580', NULL, 62, NULL);
INSERT INTO `act_re_deployment` VALUES ('a1e7d9c1-dd00-11f0-b1ff-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-20 01:32:03.451', NULL, 6, NULL);
INSERT INTO `act_re_deployment` VALUES ('a2f42617-e0e4-11f0-9e27-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-25 00:21:43.947', NULL, 220, NULL);
INSERT INTO `act_re_deployment` VALUES ('a3ad4441-e0e1-11f0-9e27-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-25 00:00:16.663', NULL, 214, NULL);
INSERT INTO `act_re_deployment` VALUES ('a4f49732-df17-11f0-a342-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-22 17:21:49.310', NULL, 106, NULL);
INSERT INTO `act_re_deployment` VALUES ('a59cfa17-e0c6-11f0-af9c-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 20:47:03.508', NULL, 210, NULL);
INSERT INTO `act_re_deployment` VALUES ('a62795d3-e4b9-11f0-8ce9-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 21:24:05.612', NULL, 312, NULL);
INSERT INTO `act_re_deployment` VALUES ('a9452921-e494-11f0-b161-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 16:59:19.394', NULL, 296, NULL);
INSERT INTO `act_re_deployment` VALUES ('a9e5f73d-de6c-11f0-bd6a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 20:57:53.666', NULL, 86, NULL);
INSERT INTO `act_re_deployment` VALUES ('aa19212d-e1bc-11f0-a98a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-26 02:08:07.221', NULL, 254, NULL);
INSERT INTO `act_re_deployment` VALUES ('aa55bbce-e1b9-11f0-baec-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-26 01:46:39.133', NULL, 243, NULL);
INSERT INTO `act_re_deployment` VALUES ('ab7a56ee-de40-11f0-ac36-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 15:42:58.463', NULL, 63, NULL);
INSERT INTO `act_re_deployment` VALUES ('ab94b1b2-df58-11f0-9b60-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 01:07:17.714', NULL, 142, NULL);
INSERT INTO `act_re_deployment` VALUES ('abb35961-de6b-11f0-9965-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 20:50:47.194', NULL, 81, NULL);
INSERT INTO `act_re_deployment` VALUES ('ac13485d-e4ba-11f0-84a4-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 21:31:25.023', NULL, 314, NULL);
INSERT INTO `act_re_deployment` VALUES ('ac1b22c8-e0e4-11f0-9e27-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-25 00:21:59.305', NULL, 221, NULL);
INSERT INTO `act_re_deployment` VALUES ('acefc2f5-df5a-11f0-9b60-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 01:21:38.981', NULL, 145, NULL);
INSERT INTO `act_re_deployment` VALUES ('adbd6300-e4c7-11f0-84a4-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 23:04:31.290', NULL, 317, NULL);
INSERT INTO `act_re_deployment` VALUES ('ae0e53a5-e401-11f0-8204-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-28 23:27:11.469', NULL, 265, NULL);
INSERT INTO `act_re_deployment` VALUES ('ae1135c9-de3d-11f0-ac36-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 15:21:34.314', NULL, 58, NULL);
INSERT INTO `act_re_deployment` VALUES ('aff8ba54-e0ae-11f0-a462-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 17:55:32.959', NULL, 203, NULL);
INSERT INTO `act_re_deployment` VALUES ('b0250d68-e0c6-11f0-af9c-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 20:47:21.176', NULL, 211, NULL);
INSERT INTO `act_re_deployment` VALUES ('b0373fcd-e407-11f0-a22e-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 00:10:12.075', NULL, 288, NULL);
INSERT INTO `act_re_deployment` VALUES ('b178e65e-dda8-11f0-8703-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-20 21:35:05.015', NULL, 17, NULL);
INSERT INTO `act_re_deployment` VALUES ('b1d7c2c4-e496-11f0-857d-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 17:13:52.825', NULL, 301, NULL);
INSERT INTO `act_re_deployment` VALUES ('b2151c7e-e406-11f0-a616-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 00:03:05.710', NULL, 283, NULL);
INSERT INTO `act_re_deployment` VALUES ('b245692e-e01a-11f0-a45a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 00:16:11.314', NULL, 181, NULL);
INSERT INTO `act_re_deployment` VALUES ('b26d3270-e00e-11f0-82e9-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 22:50:17.601', NULL, 170, NULL);
INSERT INTO `act_re_deployment` VALUES ('b47280a3-df17-11f0-a342-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-22 17:22:15.305', NULL, 107, NULL);
INSERT INTO `act_re_deployment` VALUES ('b48d2b4e-de6c-11f0-bd6a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 20:58:11.538', NULL, 87, NULL);
INSERT INTO `act_re_deployment` VALUES ('b555ab7e-ddcd-11f0-a853-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 02:00:02.870', NULL, 42, NULL);
INSERT INTO `act_re_deployment` VALUES ('b585720f-de40-11f0-ac36-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 15:43:15.313', NULL, 64, NULL);
INSERT INTO `act_re_deployment` VALUES ('b66b4cef-e1b9-11f0-baec-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-26 01:46:59.407', NULL, 244, NULL);
INSERT INTO `act_re_deployment` VALUES ('b6d6d89a-de3d-11f0-ac36-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 15:21:49.035', NULL, 59, NULL);
INSERT INTO `act_re_deployment` VALUES ('b7aac665-dd06-11f0-9b1a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-20 02:15:36.936', NULL, 10, NULL);
INSERT INTO `act_re_deployment` VALUES ('b93bbb03-de4e-11f0-9a20-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 17:23:34.484', NULL, 66, NULL);
INSERT INTO `act_re_deployment` VALUES ('ba335e09-e4b4-11f0-8ce9-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 20:48:51.732', NULL, 302, NULL);
INSERT INTO `act_re_deployment` VALUES ('bc9fa3c3-df58-11f0-9b60-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 01:07:46.306', NULL, 143, NULL);
INSERT INTO `act_re_deployment` VALUES ('bd25125f-e01a-11f0-a45a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 00:16:29.546', NULL, 182, NULL);
INSERT INTO `act_re_deployment` VALUES ('bd77c14a-ddb0-11f0-8db7-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-20 22:32:41.114', NULL, 19, NULL);
INSERT INTO `act_re_deployment` VALUES ('bdfc5c16-df52-11f0-a396-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 00:24:51.612', NULL, 129, NULL);
INSERT INTO `act_re_deployment` VALUES ('beac1c8f-de6c-11f0-bd6a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 20:58:28.520', NULL, 88, NULL);
INSERT INTO `act_re_deployment` VALUES ('beb1be5f-e19d-11f0-801b-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-25 22:26:47.370', NULL, 239, NULL);
INSERT INTO `act_re_deployment` VALUES ('becc52d0-de40-11f0-ac36-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 15:43:30.877', NULL, 65, NULL);
INSERT INTO `act_re_deployment` VALUES ('c13ce2d4-df17-11f0-a342-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-22 17:22:36.764', NULL, 108, NULL);
INSERT INTO `act_re_deployment` VALUES ('c197f804-e4b9-11f0-8ce9-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 21:24:51.644', NULL, 313, NULL);
INSERT INTO `act_re_deployment` VALUES ('c1e4e1e4-e4c8-11f0-84a4-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 23:12:14.600', NULL, 321, NULL);
INSERT INTO `act_re_deployment` VALUES ('c2075d96-e00b-11f0-961e-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 22:29:15.229', NULL, 169, NULL);
INSERT INTO `act_re_deployment` VALUES ('c3223b6f-ddcd-11f0-a853-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 02:00:26.032', NULL, 43, NULL);
INSERT INTO `act_re_deployment` VALUES ('c3b331de-e407-11f0-a22e-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 00:10:44.760', NULL, 289, NULL);
INSERT INTO `act_re_deployment` VALUES ('c447ba2f-de6a-11f0-9965-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 20:44:18.930', NULL, 79, NULL);
INSERT INTO `act_re_deployment` VALUES ('c561dbeb-e160-11f0-9bbf-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-25 15:10:19.291', NULL, 228, NULL);
INSERT INTO `act_re_deployment` VALUES ('c5d563f6-de58-11f0-9ebf-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 18:35:30.594', NULL, 74, NULL);
INSERT INTO `act_re_deployment` VALUES ('c6281dc9-de6b-11f0-bd6a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 20:51:31.576', NULL, 82, NULL);
INSERT INTO `act_re_deployment` VALUES ('c6b405a1-df11-11f0-a342-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-22 16:39:48.927', NULL, 105, NULL);
INSERT INTO `act_re_deployment` VALUES ('c784e500-e1b9-11f0-baec-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-26 01:47:28.101', NULL, 245, NULL);
INSERT INTO `act_re_deployment` VALUES ('c8fe34fd-e1ad-11f0-baec-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-26 00:21:36.595', NULL, 242, NULL);
INSERT INTO `act_re_deployment` VALUES ('c989fb7b-df56-11f0-9225-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 00:53:48.986', NULL, 137, NULL);
INSERT INTO `act_re_deployment` VALUES ('caff540f-e407-11f0-a22e-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 00:10:57.002', NULL, 290, NULL);
INSERT INTO `act_re_deployment` VALUES ('cbc206b0-de6c-11f0-bd6a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 20:58:50.467', NULL, 89, NULL);
INSERT INTO `act_re_deployment` VALUES ('cbdd73ba-df54-11f0-946e-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 00:39:33.894', NULL, 132, NULL);
INSERT INTO `act_re_deployment` VALUES ('cd0631f5-e405-11f0-a616-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-28 23:56:41.411', NULL, 274, NULL);
INSERT INTO `act_re_deployment` VALUES ('cd287490-ddcd-11f0-a853-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 02:00:42.850', NULL, 44, NULL);
INSERT INTO `act_re_deployment` VALUES ('cd3217e2-dfcc-11f0-9e2d-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 14:58:35.728', NULL, 150, NULL);
INSERT INTO `act_re_deployment` VALUES ('cd3de49a-e55d-11f0-a066-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-30 16:59:08.659', NULL, 352, NULL);
INSERT INTO `act_re_deployment` VALUES ('cdc35e35-df17-11f0-a342-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-22 17:22:57.778', NULL, 109, NULL);
INSERT INTO `act_re_deployment` VALUES ('cf99e561-e4dd-11f0-9025-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-30 01:42:57.026', NULL, 341, NULL);
INSERT INTO `act_re_deployment` VALUES ('d31932db-e4b6-11f0-8ce9-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 21:03:52.516', NULL, 304, NULL);
INSERT INTO `act_re_deployment` VALUES ('d3865244-ddc0-11f0-b8fc-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 00:27:50.071', NULL, 29, NULL);
INSERT INTO `act_re_deployment` VALUES ('d3e1231e-e402-11f0-a616-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-28 23:35:24.421', NULL, 267, NULL);
INSERT INTO `act_re_deployment` VALUES ('d3eab901-e1b9-11f0-baec-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-26 01:47:48.897', NULL, 246, NULL);
INSERT INTO `act_re_deployment` VALUES ('d624b20e-df1d-11f0-b592-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-22 18:06:08.819', NULL, 120, NULL);
INSERT INTO `act_re_deployment` VALUES ('d6b31fa6-ddce-11f0-a853-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 02:08:08.342', NULL, 50, NULL);
INSERT INTO `act_re_deployment` VALUES ('d78352b4-e018-11f0-82e9-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 00:02:54.793', NULL, 174, NULL);
INSERT INTO `act_re_deployment` VALUES ('d8a680a1-ddcd-11f0-a853-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 02:01:02.131', NULL, 45, NULL);
INSERT INTO `act_re_deployment` VALUES ('d9e32886-df17-11f0-a342-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-22 17:23:18.115', NULL, 110, NULL);
INSERT INTO `act_re_deployment` VALUES ('db51ef24-de5d-11f0-b5e4-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 19:11:54.131', NULL, 77, NULL);
INSERT INTO `act_re_deployment` VALUES ('db77e6c2-e406-11f0-a5a5-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 00:04:15.133', NULL, 284, NULL);
INSERT INTO `act_re_deployment` VALUES ('dbfee4f0-de6a-11f0-9965-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 20:44:58.726', NULL, 80, NULL);
INSERT INTO `act_re_deployment` VALUES ('dd8f6904-e4d7-11f0-aba3-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-30 01:00:23.456', NULL, 328, NULL);
INSERT INTO `act_re_deployment` VALUES ('dda094ea-e4d9-11f0-9025-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-30 01:14:42.564', NULL, 334, NULL);
INSERT INTO `act_re_deployment` VALUES ('ddca652b-ddc5-11f0-b7cd-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 01:03:54.770', NULL, 34, NULL);
INSERT INTO `act_re_deployment` VALUES ('df2c1a3e-e020-11f0-9d21-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 01:00:23.620', NULL, 195, NULL);
INSERT INTO `act_re_deployment` VALUES ('dfb9a4bb-e55d-11f0-a066-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-30 16:59:39.660', NULL, 353, NULL);
INSERT INTO `act_re_deployment` VALUES ('e02768bf-df1d-11f0-b592-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-22 18:06:25.616', NULL, 121, NULL);
INSERT INTO `act_re_deployment` VALUES ('e0425a2c-e160-11f0-9bbf-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-25 15:11:04.388', NULL, 229, NULL);
INSERT INTO `act_re_deployment` VALUES ('e0dac4c9-e0a3-11f0-8774-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 16:38:10.503', NULL, 199, NULL);
INSERT INTO `act_re_deployment` VALUES ('e0f87a12-ddcd-11f0-a853-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 02:01:16.083', NULL, 46, NULL);
INSERT INTO `act_re_deployment` VALUES ('e1a4ca37-ddce-11f0-a853-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 02:08:26.710', NULL, 51, NULL);
INSERT INTO `act_re_deployment` VALUES ('e20beaae-e400-11f0-8204-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-28 23:21:29.194', NULL, 258, NULL);
INSERT INTO `act_re_deployment` VALUES ('e2d27d55-ddc0-11f0-b8fc-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 00:28:15.732', NULL, 30, NULL);
INSERT INTO `act_re_deployment` VALUES ('e3258895-e018-11f0-82e9-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 00:03:14.316', NULL, 175, NULL);
INSERT INTO `act_re_deployment` VALUES ('e3810974-e495-11f0-a5b1-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 17:08:06.648', NULL, 298, NULL);
INSERT INTO `act_re_deployment` VALUES ('e47a5707-df17-11f0-a342-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-22 17:23:35.890', NULL, 111, NULL);
INSERT INTO `act_re_deployment` VALUES ('e52c86a8-df55-11f0-9225-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 00:47:25.847', NULL, 134, NULL);
INSERT INTO `act_re_deployment` VALUES ('e55984b4-e169-11f0-8fd1-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-25 16:15:38.399', NULL, 236, NULL);
INSERT INTO `act_re_deployment` VALUES ('e687e639-e4d8-11f0-aba3-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-30 01:07:48.012', NULL, 333, NULL);
INSERT INTO `act_re_deployment` VALUES ('e6d954fd-ddbf-11f0-b8fc-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 00:21:12.991', NULL, 22, NULL);
INSERT INTO `act_re_deployment` VALUES ('e77d2d81-de6c-11f0-bd6a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 20:59:36.996', NULL, 90, NULL);
INSERT INTO `act_re_deployment` VALUES ('e7e2a1c2-e4dd-11f0-9025-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-30 01:43:37.777', NULL, 342, NULL);
INSERT INTO `act_re_deployment` VALUES ('eaef0ee6-ddc0-11f0-b8fc-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 00:28:29.343', NULL, 31, NULL);
INSERT INTO `act_re_deployment` VALUES ('eb45dead-dfb3-11f0-8969-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 12:00:28.774', NULL, 149, NULL);
INSERT INTO `act_re_deployment` VALUES ('eb55027d-e19c-11f0-80fc-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-25 22:20:52.766', NULL, 238, NULL);
INSERT INTO `act_re_deployment` VALUES ('ebc63192-dcf8-11f0-b56a-847b574f58ac', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-20 00:36:51.409', NULL, 3, NULL);
INSERT INTO `act_re_deployment` VALUES ('ec89abb2-e1b9-11f0-baec-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-26 01:48:30.204', NULL, 247, NULL);
INSERT INTO `act_re_deployment` VALUES ('ecd8f63f-e400-11f0-8204-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-28 23:21:47.320', NULL, 259, NULL);
INSERT INTO `act_re_deployment` VALUES ('ede49513-ddcd-11f0-a853-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 02:01:37.765', NULL, 47, NULL);
INSERT INTO `act_re_deployment` VALUES ('ee20be1c-df56-11f0-9225-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 00:54:50.373', NULL, 138, NULL);
INSERT INTO `act_re_deployment` VALUES ('ee49e0e0-df1d-11f0-b592-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-22 18:06:49.325', NULL, 122, NULL);
INSERT INTO `act_re_deployment` VALUES ('efbb046c-df1a-11f0-b592-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-22 17:45:23.250', NULL, 118, NULL);
INSERT INTO `act_re_deployment` VALUES ('efbbbb66-e018-11f0-82e9-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 00:03:35.434', NULL, 176, NULL);
INSERT INTO `act_re_deployment` VALUES ('efd5041d-e160-11f0-9bbf-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-25 15:11:30.523', NULL, 230, NULL);
INSERT INTO `act_re_deployment` VALUES ('efe2fd12-de6c-11f0-bd6a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 20:59:51.090', NULL, 91, NULL);
INSERT INTO `act_re_deployment` VALUES ('f0611e67-dfd5-11f0-b0f1-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 16:04:00.223', NULL, 156, NULL);
INSERT INTO `act_re_deployment` VALUES ('f108461a-e4b5-11f0-8ce9-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 20:57:33.244', NULL, 303, NULL);
INSERT INTO `act_re_deployment` VALUES ('f1b08677-df54-11f0-9225-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 00:40:37.351', NULL, 133, NULL);
INSERT INTO `act_re_deployment` VALUES ('f41bfdbf-ddcb-11f0-b7cd-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 01:47:29.199', NULL, 38, NULL);
INSERT INTO `act_re_deployment` VALUES ('f566c464-e0c4-11f0-af9c-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 20:34:58.365', NULL, 207, NULL);
INSERT INTO `act_re_deployment` VALUES ('f5daae7a-e15e-11f0-9bbf-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-25 14:57:21.550', NULL, 227, NULL);
INSERT INTO `act_re_deployment` VALUES ('f81d5807-de39-11f0-ac36-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 14:55:00.557', NULL, 56, NULL);
INSERT INTO `act_re_deployment` VALUES ('f8528e91-e4c7-11f0-84a4-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-29 23:06:36.420', NULL, 318, NULL);
INSERT INTO `act_re_deployment` VALUES ('f8f6693f-e027-11f0-bb93-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 01:51:13.359', NULL, 197, NULL);
INSERT INTO `act_re_deployment` VALUES ('f96f7c7e-e1a2-11f0-b547-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-25 23:04:13.386', NULL, 240, NULL);
INSERT INTO `act_re_deployment` VALUES ('f9867cc3-de6c-11f0-bd6a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 21:00:07.256', NULL, 92, NULL);
INSERT INTO `act_re_deployment` VALUES ('fa33c68f-e402-11f0-a616-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-28 23:36:28.708', NULL, 268, NULL);
INSERT INTO `act_re_deployment` VALUES ('faa25648-df17-11f0-a342-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-22 17:24:13.060', NULL, 112, NULL);
INSERT INTO `act_re_deployment` VALUES ('faa9dba0-e01b-11f0-a45a-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 00:25:22.258', NULL, 183, NULL);
INSERT INTO `act_re_deployment` VALUES ('fad959cd-df19-11f0-8175-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-22 17:38:32.411', NULL, 117, NULL);
INSERT INTO `act_re_deployment` VALUES ('fb638aee-e160-11f0-9bbf-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-25 15:11:49.910', NULL, 231, NULL);
INSERT INTO `act_re_deployment` VALUES ('fb840a95-de50-11f0-a4a0-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 17:39:44.688', NULL, 69, NULL);
INSERT INTO `act_re_deployment` VALUES ('fbb1ad57-ddc0-11f0-b8fc-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 00:28:57.460', NULL, 32, NULL);
INSERT INTO `act_re_deployment` VALUES ('fc3f5b29-e019-11f0-82e9-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-24 00:11:05.924', NULL, 179, NULL);
INSERT INTO `act_re_deployment` VALUES ('fc58b720-dda5-11f0-92d3-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-20 21:15:42.145', NULL, 13, NULL);
INSERT INTO `act_re_deployment` VALUES ('fc899663-e1b9-11f0-baec-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-26 01:48:57.046', NULL, 248, NULL);
INSERT INTO `act_re_deployment` VALUES ('fd745f59-e0e5-11f0-9e27-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-25 00:31:25.282', NULL, 222, NULL);
INSERT INTO `act_re_deployment` VALUES ('fe4d9d73-e4dd-11f0-9025-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-30 01:44:15.385', NULL, 343, NULL);
INSERT INTO `act_re_deployment` VALUES ('fea47cee-ddbf-11f0-b8fc-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-21 00:21:52.909', NULL, 23, NULL);
INSERT INTO `act_re_deployment` VALUES ('fef81cef-dfd0-11f0-ba9d-847b574f58a9', 'SpringAutoDeployment', NULL, NULL, '', '2025-12-23 15:28:37.225', NULL, 152, NULL);

-- ----------------------------
-- Table structure for act_re_model
-- ----------------------------
DROP TABLE IF EXISTS `act_re_model`;
CREATE TABLE `act_re_model`  (
  `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `REV_` int(11) NULL DEFAULT NULL,
  `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `CATEGORY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL,
  `LAST_UPDATE_TIME_` timestamp(3) NULL DEFAULT NULL,
  `VERSION_` int(11) NULL DEFAULT NULL,
  `META_INFO_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `DEPLOYMENT_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `EDITOR_SOURCE_VALUE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `EDITOR_SOURCE_EXTRA_VALUE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  PRIMARY KEY (`ID_`) USING BTREE,
  INDEX `ACT_FK_MODEL_SOURCE`(`EDITOR_SOURCE_VALUE_ID_` ASC) USING BTREE,
  INDEX `ACT_FK_MODEL_SOURCE_EXTRA`(`EDITOR_SOURCE_EXTRA_VALUE_ID_` ASC) USING BTREE,
  INDEX `ACT_FK_MODEL_DEPLOYMENT`(`DEPLOYMENT_ID_` ASC) USING BTREE,
  CONSTRAINT `ACT_FK_MODEL_DEPLOYMENT` FOREIGN KEY (`DEPLOYMENT_ID_`) REFERENCES `act_re_deployment` (`id_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_MODEL_SOURCE` FOREIGN KEY (`EDITOR_SOURCE_VALUE_ID_`) REFERENCES `act_ge_bytearray` (`id_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_MODEL_SOURCE_EXTRA` FOREIGN KEY (`EDITOR_SOURCE_EXTRA_VALUE_ID_`) REFERENCES `act_ge_bytearray` (`id_`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of act_re_model
-- ----------------------------

-- ----------------------------
-- Table structure for act_re_procdef
-- ----------------------------
DROP TABLE IF EXISTS `act_re_procdef`;
CREATE TABLE `act_re_procdef`  (
  `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `REV_` int(11) NULL DEFAULT NULL,
  `CATEGORY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `VERSION_` int(11) NOT NULL,
  `DEPLOYMENT_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `RESOURCE_NAME_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `DGRM_RESOURCE_NAME_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `DESCRIPTION_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `HAS_START_FORM_KEY_` tinyint(4) NULL DEFAULT NULL,
  `HAS_GRAPHICAL_NOTATION_` tinyint(4) NULL DEFAULT NULL,
  `SUSPENSION_STATE_` int(11) NULL DEFAULT NULL,
  `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  `ENGINE_VERSION_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `APP_VERSION_` int(11) NULL DEFAULT NULL,
  PRIMARY KEY (`ID_`) USING BTREE,
  UNIQUE INDEX `ACT_UNIQ_PROCDEF`(`KEY_` ASC, `VERSION_` ASC, `TENANT_ID_` ASC) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of act_re_procdef
-- ----------------------------

-- ----------------------------
-- Table structure for act_ru_deadletter_job
-- ----------------------------
DROP TABLE IF EXISTS `act_ru_deadletter_job`;
CREATE TABLE `act_ru_deadletter_job`  (
  `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `REV_` int(11) NULL DEFAULT NULL,
  `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `EXCLUSIVE_` tinyint(1) NULL DEFAULT NULL,
  `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `PROCESS_INSTANCE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `EXCEPTION_STACK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `EXCEPTION_MSG_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `DUEDATE_` timestamp(3) NULL DEFAULT NULL,
  `REPEAT_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `HANDLER_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `HANDLER_CFG_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  PRIMARY KEY (`ID_`) USING BTREE,
  INDEX `ACT_FK_DEADLETTER_JOB_EXECUTION`(`EXECUTION_ID_` ASC) USING BTREE,
  INDEX `ACT_FK_DEADLETTER_JOB_PROCESS_INSTANCE`(`PROCESS_INSTANCE_ID_` ASC) USING BTREE,
  INDEX `ACT_FK_DEADLETTER_JOB_PROC_DEF`(`PROC_DEF_ID_` ASC) USING BTREE,
  INDEX `ACT_FK_DEADLETTER_JOB_EXCEPTION`(`EXCEPTION_STACK_ID_` ASC) USING BTREE,
  CONSTRAINT `ACT_FK_DEADLETTER_JOB_EXCEPTION` FOREIGN KEY (`EXCEPTION_STACK_ID_`) REFERENCES `act_ge_bytearray` (`id_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_DEADLETTER_JOB_EXECUTION` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `act_ru_execution` (`id_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_DEADLETTER_JOB_PROCESS_INSTANCE` FOREIGN KEY (`PROCESS_INSTANCE_ID_`) REFERENCES `act_ru_execution` (`id_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_DEADLETTER_JOB_PROC_DEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `act_re_procdef` (`id_`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of act_ru_deadletter_job
-- ----------------------------

-- ----------------------------
-- Table structure for act_ru_event_subscr
-- ----------------------------
DROP TABLE IF EXISTS `act_ru_event_subscr`;
CREATE TABLE `act_ru_event_subscr`  (
  `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `REV_` int(11) NULL DEFAULT NULL,
  `EVENT_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `EVENT_NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `ACTIVITY_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `CONFIGURATION_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `CREATED_` timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  PRIMARY KEY (`ID_`) USING BTREE,
  INDEX `ACT_IDX_EVENT_SUBSCR_CONFIG_`(`CONFIGURATION_` ASC) USING BTREE,
  INDEX `ACT_FK_EVENT_EXEC`(`EXECUTION_ID_` ASC) USING BTREE,
  CONSTRAINT `ACT_FK_EVENT_EXEC` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `act_ru_execution` (`id_`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of act_ru_event_subscr
-- ----------------------------

-- ----------------------------
-- Table structure for act_ru_execution
-- ----------------------------
DROP TABLE IF EXISTS `act_ru_execution`;
CREATE TABLE `act_ru_execution`  (
  `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `REV_` int(11) NULL DEFAULT NULL,
  `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `BUSINESS_KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `PARENT_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `SUPER_EXEC_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `ROOT_PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `ACT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `IS_ACTIVE_` tinyint(4) NULL DEFAULT NULL,
  `IS_CONCURRENT_` tinyint(4) NULL DEFAULT NULL,
  `IS_SCOPE_` tinyint(4) NULL DEFAULT NULL,
  `IS_EVENT_SCOPE_` tinyint(4) NULL DEFAULT NULL,
  `IS_MI_ROOT_` tinyint(4) NULL DEFAULT NULL,
  `SUSPENSION_STATE_` int(11) NULL DEFAULT NULL,
  `CACHED_ENT_STATE_` int(11) NULL DEFAULT NULL,
  `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `START_TIME_` datetime(3) NULL DEFAULT NULL,
  `START_USER_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `LOCK_TIME_` timestamp(3) NULL DEFAULT NULL,
  `IS_COUNT_ENABLED_` tinyint(4) NULL DEFAULT NULL,
  `EVT_SUBSCR_COUNT_` int(11) NULL DEFAULT NULL,
  `TASK_COUNT_` int(11) NULL DEFAULT NULL,
  `JOB_COUNT_` int(11) NULL DEFAULT NULL,
  `TIMER_JOB_COUNT_` int(11) NULL DEFAULT NULL,
  `SUSP_JOB_COUNT_` int(11) NULL DEFAULT NULL,
  `DEADLETTER_JOB_COUNT_` int(11) NULL DEFAULT NULL,
  `VAR_COUNT_` int(11) NULL DEFAULT NULL,
  `ID_LINK_COUNT_` int(11) NULL DEFAULT NULL,
  `APP_VERSION_` int(11) NULL DEFAULT NULL,
  PRIMARY KEY (`ID_`) USING BTREE,
  INDEX `ACT_IDX_EXEC_BUSKEY`(`BUSINESS_KEY_` ASC) USING BTREE,
  INDEX `ACT_IDC_EXEC_ROOT`(`ROOT_PROC_INST_ID_` ASC) USING BTREE,
  INDEX `ACT_FK_EXE_PROCINST`(`PROC_INST_ID_` ASC) USING BTREE,
  INDEX `ACT_FK_EXE_PARENT`(`PARENT_ID_` ASC) USING BTREE,
  INDEX `ACT_FK_EXE_SUPER`(`SUPER_EXEC_` ASC) USING BTREE,
  INDEX `ACT_FK_EXE_PROCDEF`(`PROC_DEF_ID_` ASC) USING BTREE,
  CONSTRAINT `ACT_FK_EXE_PARENT` FOREIGN KEY (`PARENT_ID_`) REFERENCES `act_ru_execution` (`id_`) ON DELETE CASCADE ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_EXE_PROCDEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `act_re_procdef` (`id_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_EXE_PROCINST` FOREIGN KEY (`PROC_INST_ID_`) REFERENCES `act_ru_execution` (`id_`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `ACT_FK_EXE_SUPER` FOREIGN KEY (`SUPER_EXEC_`) REFERENCES `act_ru_execution` (`id_`) ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of act_ru_execution
-- ----------------------------

-- ----------------------------
-- Table structure for act_ru_identitylink
-- ----------------------------
DROP TABLE IF EXISTS `act_ru_identitylink`;
CREATE TABLE `act_ru_identitylink`  (
  `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `REV_` int(11) NULL DEFAULT NULL,
  `GROUP_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `USER_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  PRIMARY KEY (`ID_`) USING BTREE,
  INDEX `ACT_IDX_IDENT_LNK_USER`(`USER_ID_` ASC) USING BTREE,
  INDEX `ACT_IDX_IDENT_LNK_GROUP`(`GROUP_ID_` ASC) USING BTREE,
  INDEX `ACT_IDX_ATHRZ_PROCEDEF`(`PROC_DEF_ID_` ASC) USING BTREE,
  INDEX `ACT_FK_TSKASS_TASK`(`TASK_ID_` ASC) USING BTREE,
  INDEX `ACT_FK_IDL_PROCINST`(`PROC_INST_ID_` ASC) USING BTREE,
  CONSTRAINT `ACT_FK_ATHRZ_PROCEDEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `act_re_procdef` (`id_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_IDL_PROCINST` FOREIGN KEY (`PROC_INST_ID_`) REFERENCES `act_ru_execution` (`id_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_TSKASS_TASK` FOREIGN KEY (`TASK_ID_`) REFERENCES `act_ru_task` (`id_`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of act_ru_identitylink
-- ----------------------------

-- ----------------------------
-- Table structure for act_ru_integration
-- ----------------------------
DROP TABLE IF EXISTS `act_ru_integration`;
CREATE TABLE `act_ru_integration`  (
  `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `PROCESS_INSTANCE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `FLOW_NODE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `CREATED_DATE_` timestamp(3) NULL DEFAULT NULL,
  PRIMARY KEY (`ID_`) USING BTREE,
  INDEX `ACT_FK_INT_EXECUTION`(`EXECUTION_ID_` ASC) USING BTREE,
  INDEX `ACT_FK_INT_PROC_INST`(`PROCESS_INSTANCE_ID_` ASC) USING BTREE,
  INDEX `ACT_FK_INT_PROC_DEF`(`PROC_DEF_ID_` ASC) USING BTREE,
  CONSTRAINT `ACT_FK_INT_EXECUTION` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `act_ru_execution` (`id_`) ON DELETE CASCADE ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_INT_PROC_DEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `act_re_procdef` (`id_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_INT_PROC_INST` FOREIGN KEY (`PROCESS_INSTANCE_ID_`) REFERENCES `act_ru_execution` (`id_`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of act_ru_integration
-- ----------------------------

-- ----------------------------
-- Table structure for act_ru_job
-- ----------------------------
DROP TABLE IF EXISTS `act_ru_job`;
CREATE TABLE `act_ru_job`  (
  `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `REV_` int(11) NULL DEFAULT NULL,
  `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `LOCK_EXP_TIME_` timestamp(3) NULL DEFAULT NULL,
  `LOCK_OWNER_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `EXCLUSIVE_` tinyint(1) NULL DEFAULT NULL,
  `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `PROCESS_INSTANCE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `RETRIES_` int(11) NULL DEFAULT NULL,
  `EXCEPTION_STACK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `EXCEPTION_MSG_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `DUEDATE_` timestamp(3) NULL DEFAULT NULL,
  `REPEAT_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `HANDLER_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `HANDLER_CFG_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  PRIMARY KEY (`ID_`) USING BTREE,
  INDEX `ACT_FK_JOB_EXECUTION`(`EXECUTION_ID_` ASC) USING BTREE,
  INDEX `ACT_FK_JOB_PROCESS_INSTANCE`(`PROCESS_INSTANCE_ID_` ASC) USING BTREE,
  INDEX `ACT_FK_JOB_PROC_DEF`(`PROC_DEF_ID_` ASC) USING BTREE,
  INDEX `ACT_FK_JOB_EXCEPTION`(`EXCEPTION_STACK_ID_` ASC) USING BTREE,
  CONSTRAINT `ACT_FK_JOB_EXCEPTION` FOREIGN KEY (`EXCEPTION_STACK_ID_`) REFERENCES `act_ge_bytearray` (`id_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_JOB_EXECUTION` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `act_ru_execution` (`id_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_JOB_PROCESS_INSTANCE` FOREIGN KEY (`PROCESS_INSTANCE_ID_`) REFERENCES `act_ru_execution` (`id_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_JOB_PROC_DEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `act_re_procdef` (`id_`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of act_ru_job
-- ----------------------------

-- ----------------------------
-- Table structure for act_ru_suspended_job
-- ----------------------------
DROP TABLE IF EXISTS `act_ru_suspended_job`;
CREATE TABLE `act_ru_suspended_job`  (
  `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `REV_` int(11) NULL DEFAULT NULL,
  `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `EXCLUSIVE_` tinyint(1) NULL DEFAULT NULL,
  `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `PROCESS_INSTANCE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `RETRIES_` int(11) NULL DEFAULT NULL,
  `EXCEPTION_STACK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `EXCEPTION_MSG_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `DUEDATE_` timestamp(3) NULL DEFAULT NULL,
  `REPEAT_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `HANDLER_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `HANDLER_CFG_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  PRIMARY KEY (`ID_`) USING BTREE,
  INDEX `ACT_FK_SUSPENDED_JOB_EXECUTION`(`EXECUTION_ID_` ASC) USING BTREE,
  INDEX `ACT_FK_SUSPENDED_JOB_PROCESS_INSTANCE`(`PROCESS_INSTANCE_ID_` ASC) USING BTREE,
  INDEX `ACT_FK_SUSPENDED_JOB_PROC_DEF`(`PROC_DEF_ID_` ASC) USING BTREE,
  INDEX `ACT_FK_SUSPENDED_JOB_EXCEPTION`(`EXCEPTION_STACK_ID_` ASC) USING BTREE,
  CONSTRAINT `ACT_FK_SUSPENDED_JOB_EXCEPTION` FOREIGN KEY (`EXCEPTION_STACK_ID_`) REFERENCES `act_ge_bytearray` (`id_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_SUSPENDED_JOB_EXECUTION` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `act_ru_execution` (`id_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_SUSPENDED_JOB_PROCESS_INSTANCE` FOREIGN KEY (`PROCESS_INSTANCE_ID_`) REFERENCES `act_ru_execution` (`id_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_SUSPENDED_JOB_PROC_DEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `act_re_procdef` (`id_`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of act_ru_suspended_job
-- ----------------------------

-- ----------------------------
-- Table structure for act_ru_task
-- ----------------------------
DROP TABLE IF EXISTS `act_ru_task`;
CREATE TABLE `act_ru_task`  (
  `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `REV_` int(11) NULL DEFAULT NULL,
  `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `BUSINESS_KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `PARENT_TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `DESCRIPTION_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `TASK_DEF_KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `OWNER_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `ASSIGNEE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `DELEGATION_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `PRIORITY_` int(11) NULL DEFAULT NULL,
  `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL,
  `DUE_DATE_` datetime(3) NULL DEFAULT NULL,
  `CATEGORY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `SUSPENSION_STATE_` int(11) NULL DEFAULT NULL,
  `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  `FORM_KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `CLAIM_TIME_` datetime(3) NULL DEFAULT NULL,
  `APP_VERSION_` int(11) NULL DEFAULT NULL,
  PRIMARY KEY (`ID_`) USING BTREE,
  INDEX `ACT_IDX_TASK_CREATE`(`CREATE_TIME_` ASC) USING BTREE,
  INDEX `ACT_FK_TASK_EXE`(`EXECUTION_ID_` ASC) USING BTREE,
  INDEX `ACT_FK_TASK_PROCINST`(`PROC_INST_ID_` ASC) USING BTREE,
  INDEX `ACT_FK_TASK_PROCDEF`(`PROC_DEF_ID_` ASC) USING BTREE,
  CONSTRAINT `ACT_FK_TASK_EXE` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `act_ru_execution` (`id_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_TASK_PROCDEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `act_re_procdef` (`id_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_TASK_PROCINST` FOREIGN KEY (`PROC_INST_ID_`) REFERENCES `act_ru_execution` (`id_`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of act_ru_task
-- ----------------------------

-- ----------------------------
-- Table structure for act_ru_timer_job
-- ----------------------------
DROP TABLE IF EXISTS `act_ru_timer_job`;
CREATE TABLE `act_ru_timer_job`  (
  `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `REV_` int(11) NULL DEFAULT NULL,
  `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `LOCK_EXP_TIME_` timestamp(3) NULL DEFAULT NULL,
  `LOCK_OWNER_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `EXCLUSIVE_` tinyint(1) NULL DEFAULT NULL,
  `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `PROCESS_INSTANCE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `RETRIES_` int(11) NULL DEFAULT NULL,
  `EXCEPTION_STACK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `EXCEPTION_MSG_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `DUEDATE_` timestamp(3) NULL DEFAULT NULL,
  `REPEAT_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `HANDLER_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `HANDLER_CFG_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  PRIMARY KEY (`ID_`) USING BTREE,
  INDEX `ACT_FK_TIMER_JOB_EXECUTION`(`EXECUTION_ID_` ASC) USING BTREE,
  INDEX `ACT_FK_TIMER_JOB_PROCESS_INSTANCE`(`PROCESS_INSTANCE_ID_` ASC) USING BTREE,
  INDEX `ACT_FK_TIMER_JOB_PROC_DEF`(`PROC_DEF_ID_` ASC) USING BTREE,
  INDEX `ACT_FK_TIMER_JOB_EXCEPTION`(`EXCEPTION_STACK_ID_` ASC) USING BTREE,
  CONSTRAINT `ACT_FK_TIMER_JOB_EXCEPTION` FOREIGN KEY (`EXCEPTION_STACK_ID_`) REFERENCES `act_ge_bytearray` (`id_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_TIMER_JOB_EXECUTION` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `act_ru_execution` (`id_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_TIMER_JOB_PROCESS_INSTANCE` FOREIGN KEY (`PROCESS_INSTANCE_ID_`) REFERENCES `act_ru_execution` (`id_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_TIMER_JOB_PROC_DEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `act_re_procdef` (`id_`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of act_ru_timer_job
-- ----------------------------

-- ----------------------------
-- Table structure for act_ru_variable
-- ----------------------------
DROP TABLE IF EXISTS `act_ru_variable`;
CREATE TABLE `act_ru_variable`  (
  `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `REV_` int(11) NULL DEFAULT NULL,
  `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `BYTEARRAY_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `DOUBLE_` double NULL DEFAULT NULL,
  `LONG_` bigint(20) NULL DEFAULT NULL,
  `TEXT_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  `TEXT2_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  PRIMARY KEY (`ID_`) USING BTREE,
  INDEX `ACT_IDX_VARIABLE_TASK_ID`(`TASK_ID_` ASC) USING BTREE,
  INDEX `ACT_FK_VAR_EXE`(`EXECUTION_ID_` ASC) USING BTREE,
  INDEX `ACT_FK_VAR_PROCINST`(`PROC_INST_ID_` ASC) USING BTREE,
  INDEX `ACT_FK_VAR_BYTEARRAY`(`BYTEARRAY_ID_` ASC) USING BTREE,
  CONSTRAINT `ACT_FK_VAR_BYTEARRAY` FOREIGN KEY (`BYTEARRAY_ID_`) REFERENCES `act_ge_bytearray` (`id_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_VAR_EXE` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `act_ru_execution` (`id_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `ACT_FK_VAR_PROCINST` FOREIGN KEY (`PROC_INST_ID_`) REFERENCES `act_ru_execution` (`id_`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of act_ru_variable
-- ----------------------------

-- ----------------------------
-- Table structure for contract_employee_link
-- ----------------------------
DROP TABLE IF EXISTS `contract_employee_link`;
CREATE TABLE `contract_employee_link`  (
  `link_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '关联ID',
  `contract_id` bigint(20) NOT NULL COMMENT '合同ID',
  `employee_id` bigint(20) NOT NULL COMMENT '员工ID',
  `employee_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '员工姓名',
  `employee_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '员工编号',
  `link_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT 'LIBRARY' COMMENT '关联类型（LIBRARY-员工库关联）',
  `link_status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '1' COMMENT '关联状态（0取消 1有效）',
  `link_date` datetime NULL DEFAULT NULL COMMENT '关联时间',
  `unlink_date` datetime NULL DEFAULT NULL COMMENT '取消关联时间',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`link_id`) USING BTREE,
  UNIQUE INDEX `uk_contract_employee`(`contract_id` ASC, `employee_id` ASC) USING BTREE,
  INDEX `idx_contract_id`(`contract_id` ASC) USING BTREE,
  INDEX `idx_employee_id`(`employee_id` ASC) USING BTREE,
  INDEX `idx_link_status`(`link_status` ASC) USING BTREE,
  INDEX `idx_cel_contract_status`(`contract_id` ASC, `link_status` ASC) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '合同员工关联表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of contract_employee_link
-- ----------------------------

-- ----------------------------
-- Table structure for dc_audit_log
-- ----------------------------
DROP TABLE IF EXISTS `dc_audit_log`;
CREATE TABLE `dc_audit_log`  (
  `log_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '日志ID',
  `operation_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '操作类型',
  `operation_module` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '操作模块',
  `operation_description` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '操作描述',
  `user_id` bigint(20) NOT NULL COMMENT '用户ID',
  `user_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '用户名',
  `ip_address` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'IP地址',
  `user_agent` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '用户代理',
  `request_uri` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '请求URI',
  `request_method` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '请求方法',
  `request_params` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '请求参数',
  `response_result` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '响应结果',
  `status` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '状态',
  `error_msg` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '错误信息',
  `operation_time` datetime NOT NULL COMMENT '操作时间',
  `execution_time` bigint(20) NULL DEFAULT NULL COMMENT '执行时间(毫秒)',
  `business_id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '业务ID',
  `business_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '业务类型',
  `data_before` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '操作前数据',
  `data_after` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '操作后数据',
  `risk_level` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '风险级别',
  `session_id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '会话ID',
  `device_fingerprint` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '设备指纹',
  `geo_location` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '地理位置',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  PRIMARY KEY (`log_id`) USING BTREE,
  INDEX `idx_operation_type`(`operation_type` ASC) USING BTREE,
  INDEX `idx_user_id`(`user_id` ASC) USING BTREE,
  INDEX `idx_operation_time`(`operation_time` ASC) USING BTREE,
  INDEX `idx_ip_address`(`ip_address` ASC) USING BTREE,
  INDEX `idx_request_uri`(`request_uri` ASC) USING BTREE,
  INDEX `idx_business_id`(`business_id` ASC) USING BTREE,
  INDEX `idx_business_type`(`business_type` ASC) USING BTREE,
  INDEX `idx_session_id`(`session_id` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3734 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '审计日志表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Table structure for dc_bank_institution
-- ----------------------------
DROP TABLE IF EXISTS `dc_bank_institution`;
CREATE TABLE `dc_bank_institution`  (
  `bank_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '银行ID',
  `bank_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '银行编码',
  `bank_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '银行名称',
  `bank_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '银行类型(COMMERCIAL:商业银行,POLICY:政策性银行,COOPERATIVE:合作银行,FOREIGN:外资银行,CITY_COMMERCIAL:城市商业银行)',
  `contact_person` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '联系人',
  `contact_phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '联系电话(加密)',
  `contact_email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '联系邮箱(加密)',
  `bank_address` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '银行地址',
  `product_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '产品名称',
  `product_interest_rate` decimal(5, 4) NULL DEFAULT NULL COMMENT '产品利率',
  `product_term_months` int(11) NULL DEFAULT NULL COMMENT '产品期限(月)',
  `creator_account_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT 'SYSTEM' COMMENT '创建者账号类型(FINANCIAL_COMPANY:金融公司,SYSTEM:系统管理员)',
  `base_interest_rate` decimal(5, 4) NULL DEFAULT NULL COMMENT '基准利率',
  `min_loan_amount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '最低贷款金额(加密)',
  `max_loan_amount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '最高贷款金额(加密)',
  `min_loan_term_months` int(11) NULL DEFAULT NULL COMMENT '最短贷款期限(月)',
  `max_loan_term_months` int(11) NULL DEFAULT NULL COMMENT '最长贷款期限(月)',
  `risk_rating` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '风险评级(AAA,AA,A,BBB,BB,B)',
  `cooperation_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT 'ACTIVE' COMMENT '合作状态(ACTIVE:合作中,SUSPENDED:暂停,TERMINATED:终止)',
  `cooperation_start_date` date NULL DEFAULT NULL COMMENT '合作开始日期',
  `cooperation_end_date` date NULL DEFAULT NULL COMMENT '合作结束日期',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '0' COMMENT '银行状态(0:正常,1:停用)',
  `remarks` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注信息',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`bank_id`) USING BTREE,
  UNIQUE INDEX `uk_bank_code`(`bank_code` ASC) USING BTREE,
  INDEX `idx_bank_name`(`bank_name` ASC) USING BTREE,
  INDEX `idx_bank_type`(`bank_type` ASC) USING BTREE,
  INDEX `idx_cooperation_status`(`cooperation_status` ASC) USING BTREE,
  INDEX `idx_status`(`status` ASC) USING BTREE,
  INDEX `idx_product_name`(`product_name` ASC) USING BTREE,
  INDEX `idx_creator_account_type`(`creator_account_type` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '银行机构表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dc_bank_institution
-- ----------------------------
INSERT INTO `dc_bank_institution` VALUES (1, 'ICBC001', '中国工商银行', 'COMMERCIAL', '张经理', 'encrypted_phone_001', 'encrypted_email_001', '北京市西城区复兴门内大街55号', '短期经营贷', 0.0450, 6, 'SYSTEM', 0.0435, '50000', '1000000', 3, 60, 'AAA', 'ACTIVE', '2024-01-01', '2026-12-31', '0', '国有大型商业银行，资金实力雄厚', 'admin', '2025-12-25 00:00:00', '', '2025-12-25 00:00:00', '工商银行合作机构');
INSERT INTO `dc_bank_institution` VALUES (2, 'CCB002', '中国建设银行', 'COMMERCIAL', '李经理', 'encrypted_phone_002', 'encrypted_email_002', '北京市西城区金融大街25号', '灵活经营贷', 0.0500, 9, 'SYSTEM', 0.0440, 'encrypted_min_amount_002', 'encrypted_max_amount_002', 6, 60, 'AAA', 'ACTIVE', '2024-01-01', '2026-12-31', '0', '国有大型商业银行，建筑行业优势明显', 'admin', '2025-12-24 15:00:00', '', '2025-12-25 23:05:01', '建设银行合作机构');
INSERT INTO `dc_bank_institution` VALUES (3, 'ABC003', '中国农业银行', 'COMMERCIAL', '王经理', 'encrypted_phone_003', 'encrypted_email_003', '北京市东城区建国门内大街69号', '惠农经营贷', 0.0480, 8, 'SYSTEM', 0.0445, 'encrypted_min_amount_003', 'encrypted_max_amount_003', 6, 60, 'AAA', 'ACTIVE', '2024-01-01', '2026-12-31', '0', '国有大型商业银行，农村金融服务优势', 'admin', '2025-12-24 15:00:00', '', '2025-12-25 23:05:01', '农业银行合作机构');
INSERT INTO `dc_bank_institution` VALUES (4, 'BOC004', '中国银行', 'COMMERCIAL', '赵经理', '13112311231', 'ax@163.com', '北京市西城区复兴门内大街1号', '标准经营贷', 0.0520, 12, 'SYSTEM', 0.0450, '10000', '5000000', 6, 60, 'AAA', 'ACTIVE', '2024-01-01', '2026-12-31', '0', '国有大型商业银行，国际业务优势', 'admin', '2025-12-24 15:00:00', '', '2025-12-25 23:05:01', '中国银行合作机构');
INSERT INTO `dc_bank_institution` VALUES (5, 'CMB005', '招商银行', 'COMMERCIAL', '陈经理', 'encrypted_phone_005', 'encrypted_email_005', '深圳市福田区深南大街7088号', '快速经营贷', 0.0580, 6, 'SYSTEM', 0.0455, 'encrypted_min_amount_005', 'encrypted_max_amount_005', 3, 36, 'AA', 'ACTIVE', '2024-01-01', '2026-12-31', '0', '股份制商业银行，零售业务领先', 'admin', '2025-12-24 15:00:00', '', '2025-12-25 23:05:01', '招商银行合作机构');
INSERT INTO `dc_bank_institution` VALUES (6, 'ICBC002', '中国工商银行', 'COMMERCIAL', '张经理', 'encrypted_phone_001', 'encrypted_email_001', '北京市西城区复兴门内大街55号', '中期经营贷', 0.0550, 12, 'SYSTEM', 0.0435, '100000', '2000000', 6, 60, 'AAA', 'ACTIVE', '2024-01-01', '2026-12-31', '0', '国有大型商业银行，资金实力雄厚', 'admin', '2025-12-25 00:00:00', '', '2025-12-25 00:00:00', '工商银行合作机构-中期产品');
INSERT INTO `dc_bank_institution` VALUES (7, 'CCB003', '中国建设银行', 'COMMERCIAL', '李经理', 'encrypted_phone_002', 'encrypted_email_002', '北京市西城区金融大街25号', '长期经营贷', 0.0650, 24, 'SYSTEM', 0.0440, '200000', '3000000', 12, 60, 'AAA', 'ACTIVE', '2024-01-01', '2026-12-31', '0', '国有大型商业银行，建筑行业优势明显', 'admin', '2025-12-25 00:00:00', '', '2025-12-25 00:00:00', '建设银行合作机构-长期产品');
INSERT INTO `dc_bank_institution` VALUES (8, '12', '12', 'COMMERCIAL', '111', '13112311231', 'rx@163.com', NULL, '22', 0.0050, 12, 'FINANCIAL_COMPANY', 0.0500, '100', '5000000', 1, 60, 'AAA', 'ACTIVE', '2025-12-24', '2025-12-30', '0', NULL, 'finance_admin_a', '2025-12-25 23:32:53', '', '2025-12-25 23:39:06', NULL);

-- ----------------------------
-- Table structure for dc_business_report
-- ----------------------------
DROP TABLE IF EXISTS `dc_business_report`;
CREATE TABLE `dc_business_report`  (
  `report_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '报表ID',
  `report_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '报表名称',
  `report_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '报表类型(FINANCIAL:财务报表,RISK:风险报表,BUSINESS:业务报表,STATISTICAL:统计报表)',
  `report_category` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '报表分类(DAILY:日报,WEEKLY:周报,MONTHLY:月报,QUARTERLY:季报,YEARLY:年报)',
  `report_period` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '报表周期',
  `report_date` date NOT NULL COMMENT '报表日期',
  `report_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '报表数据(JSON格式)',
  `report_file_url` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '报表文件URL',
  `report_status` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT 'GENERATING' COMMENT '报表状态(GENERATING:生成中,COMPLETED:已完成,FAILED:失败)',
  `generated_by` bigint(20) NULL DEFAULT NULL COMMENT '生成人ID',
  `generated_time` datetime NULL DEFAULT NULL COMMENT '生成时间',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`report_id`) USING BTREE,
  INDEX `idx_report_type`(`report_type` ASC) USING BTREE,
  INDEX `idx_report_category`(`report_category` ASC) USING BTREE,
  INDEX `idx_report_date`(`report_date` ASC) USING BTREE,
  INDEX `idx_report_status`(`report_status` ASC) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '业务报表表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dc_business_report
-- ----------------------------

-- ----------------------------
-- Table structure for dc_contract
-- ----------------------------
DROP TABLE IF EXISTS `dc_contract`;
CREATE TABLE `dc_contract`  (
  `contract_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '合同ID',
  `contract_number` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '合同编号',
  `contract_title` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '合同标题',
  `contract_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT 'ONLINE' COMMENT '合同类型(ONLINE:线上合同,OFFLINE:线下合同)',
  `security_company_id` bigint(20) NOT NULL COMMENT '安保公司ID',
  `security_company_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '安保公司名称',
  `client_company_id` bigint(20) NOT NULL COMMENT '甲方单位ID',
  `client_company_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '甲方单位名称',
  `contract_amount` decimal(15, 2) NOT NULL COMMENT '合同金额',
  `service_start_date` date NOT NULL COMMENT '服务开始日期',
  `service_end_date` date NOT NULL COMMENT '服务结束日期',
  `contract_status` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT 'PENDING' COMMENT '合同状态(PENDING:待确认,CONFIRMED:已确认,COMPLETED:已完成,CANCELLED:已取消)',
  `contract_content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '合同内容',
  `contract_file_url` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '合同文件URL',
  `contract_file_hash` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '合同文件哈希值',
  `confirmed_by` bigint(20) NULL DEFAULT NULL COMMENT '确认人ID',
  `confirmed_time` datetime NULL DEFAULT NULL COMMENT '确认时间',
  `blockchain_tx_hash` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '区块链交易哈希',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`contract_id`) USING BTREE,
  UNIQUE INDEX `uk_contract_number`(`contract_number` ASC) USING BTREE,
  INDEX `idx_security_company`(`security_company_id` ASC) USING BTREE,
  INDEX `idx_client_company`(`client_company_id` ASC) USING BTREE,
  INDEX `idx_contract_status`(`contract_status` ASC) USING BTREE,
  INDEX `idx_create_time`(`create_time` ASC) USING BTREE,
  INDEX `idx_dc_contract_amount`(`contract_amount` ASC) USING BTREE,
  INDEX `idx_dc_contract_service_date`(`service_start_date` ASC, `service_end_date` ASC) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '合同管理表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dc_contract
-- ----------------------------

-- ----------------------------
-- Table structure for dc_contract_employee_link
-- ----------------------------
DROP TABLE IF EXISTS `dc_contract_employee_link`;
CREATE TABLE `dc_contract_employee_link`  (
  `link_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '关联ID',
  `contract_id` bigint(20) NOT NULL COMMENT '合同ID',
  `employee_id` bigint(20) NULL DEFAULT NULL COMMENT '员工ID',
  `library_id` bigint(20) NULL DEFAULT NULL COMMENT '员工库ID',
  `link_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT 'INDIVIDUAL' COMMENT '关联类型（INDIVIDUAL-单个员工，LIBRARY-员工库）',
  `assigned_role` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT 'GENERAL' COMMENT '分配角色',
  `link_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT 'ACTIVE' COMMENT '关联状态',
  `link_date` datetime NULL DEFAULT NULL COMMENT '关联时间',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`link_id`) USING BTREE,
  INDEX `idx_contract_id`(`contract_id` ASC) USING BTREE,
  INDEX `idx_employee_id`(`employee_id` ASC) USING BTREE,
  INDEX `idx_library_id`(`library_id` ASC) USING BTREE,
  INDEX `idx_link_status`(`link_status` ASC) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '合同员工关联表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dc_contract_employee_link
-- ----------------------------

-- ----------------------------
-- Table structure for dc_credit
-- ----------------------------
DROP TABLE IF EXISTS `dc_credit`;
CREATE TABLE `dc_credit`  (
  `credit_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '债权ID',
  `credit_number` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '债权编号',
  `contract_id` bigint(20) NOT NULL COMMENT '关联合同ID',
  `contract_number` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '合同编号',
  `creditor_id` bigint(20) NOT NULL COMMENT '债权人ID(安保公司)',
  `creditor_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '债权人名称',
  `debtor_id` bigint(20) NOT NULL COMMENT '债务人ID(甲方单位)',
  `debtor_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '债务人名称',
  `credit_amount` decimal(15, 2) NOT NULL COMMENT '债权金额',
  `description` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '债权描述',
  `issue_date` date NOT NULL COMMENT '发行日期',
  `maturity_date` date NOT NULL COMMENT '到期日期',
  `credit_status` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT 'VALID' COMMENT '债权状态(VALID:有效,FINANCED:已融资,SETTLED:已结清,EXPIRED:已过期)',
  `digital_signature` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '数字签名',
  `blockchain_tx_hash` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '区块链交易哈希',
  `blockchain_address` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '区块链地址',
  `verification_status` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT 'PENDING' COMMENT '验证状态(PENDING:待验证,VERIFIED:已验证,FAILED:验证失败)',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`credit_id`) USING BTREE,
  UNIQUE INDEX `uk_credit_number`(`credit_number` ASC) USING BTREE,
  INDEX `idx_contract_id`(`contract_id` ASC) USING BTREE,
  INDEX `idx_creditor_id`(`creditor_id` ASC) USING BTREE,
  INDEX `idx_debtor_id`(`debtor_id` ASC) USING BTREE,
  INDEX `idx_credit_status`(`credit_status` ASC) USING BTREE,
  INDEX `idx_maturity_date`(`maturity_date` ASC) USING BTREE,
  INDEX `idx_dc_credit_amount`(`credit_amount` ASC) USING BTREE,
  INDEX `idx_dc_credit_issue_date`(`issue_date` ASC) USING BTREE,
  CONSTRAINT `fk_credit_service_contract` FOREIGN KEY (`contract_id`) REFERENCES `dc_service_contract` (`contract_id`) ON DELETE RESTRICT ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 20 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '债权管理表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dc_credit
-- ----------------------------
INSERT INTO `dc_credit` VALUES (15, 'CR20251230987644', 13, 'HT20251222927', 48657, '111', 1508416, '1111', 185858.40, NULL, '2025-12-30', '2026-12-30', 'verified', '96cac0923023b6999db27d68f38270d9319831fc2dea11e8d3b1cf644ab9621e', NULL, NULL, 'PENDING', '', '2025-12-30 10:54:14', '', '2025-12-30 11:06:02', '111111');
INSERT INTO `dc_credit` VALUES (16, 'CR20251230833037', 9, 'HT20251221923', 25975887, '是是是', 1135773, '说我', 799999999.99, NULL, '2025-12-30', '2026-12-30', 'generated', '54bc3f25ee0113dcfc0c380d69f35c6c8864106392ed7d5af4b143a00f3510cc', NULL, NULL, 'PENDING', '', '2025-12-30 11:08:10', '', '2025-12-30 11:08:10', NULL);
INSERT INTO `dc_credit` VALUES (17, 'CR20251230911684', 17, 'HT20251230747', 1540162, '2323', 1987596753, '1111111', 985956.00, NULL, '2025-12-30', '2026-12-30', 'generated', 'e28e8a7c5c7b523fec128ae03ab93b651a4766d4151461a9ad40b3a4754ecec3', NULL, NULL, 'PENDING', '', '2025-12-30 11:10:01', '', '2025-12-30 11:10:01', '111111');
INSERT INTO `dc_credit` VALUES (18, 'CR20251230922877', 8, 'HT20251221091', 795805635, '安保公司C', 958851776, '客户公司A', 18656.80, NULL, '2025-12-30', '2026-12-30', 'verified', 'd8472462c4d6c598ece6da078fce7fab9d41c19d86d9af8fb969be467956f0a4', NULL, NULL, 'PENDING', '', '2025-12-30 11:10:58', 'admin', '2025-12-30 16:14:00', '1111');
INSERT INTO `dc_credit` VALUES (20, 'CR20251230531469', 3, 'HT20251221323', 795805635, '安保公司C', 958851776, '客户公司A', 35555555.20, '12222222222', '2025-12-30', '2026-12-30', 'verified', '514d1c889eb9cc953d0c8ca7718467e3294b7225aa194892e8a4f3175b77d347', NULL, NULL, 'PENDING', 'admin', '2025-12-30 16:02:15', 'admin', '2025-12-30 16:02:30', NULL);

-- ----------------------------
-- Table structure for dc_data_consistency_check
-- ----------------------------
DROP TABLE IF EXISTS `dc_data_consistency_check`;
CREATE TABLE `dc_data_consistency_check`  (
  `check_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '检查ID',
  `check_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '检查类型',
  `source_entity_id` bigint(20) NULL DEFAULT NULL COMMENT '源实体ID',
  `target_entity_id` bigint(20) NULL DEFAULT NULL COMMENT '目标实体ID',
  `check_result` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '检查结果',
  `inconsistency_details` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '不一致详情(加密)',
  `check_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '检查状态',
  `check_time` datetime NOT NULL COMMENT '检查时间',
  `checked_by` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '检查人',
  `resolved_time` datetime NULL DEFAULT NULL COMMENT '解决时间',
  `resolved_by` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '解决人',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  PRIMARY KEY (`check_id`) USING BTREE,
  INDEX `idx_check_type`(`check_type` ASC) USING BTREE,
  INDEX `idx_check_result`(`check_result` ASC) USING BTREE,
  INDEX `idx_check_status`(`check_status` ASC) USING BTREE,
  INDEX `idx_source_entity`(`source_entity_id` ASC) USING BTREE,
  INDEX `idx_target_entity`(`target_entity_id` ASC) USING BTREE,
  INDEX `idx_check_time`(`check_time` ASC) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '数据一致性检查记录表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dc_data_consistency_check
-- ----------------------------

-- ----------------------------
-- Table structure for dc_employee_info
-- ----------------------------
DROP TABLE IF EXISTS `dc_employee_info`;
CREATE TABLE `dc_employee_info`  (
  `employee_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '员工ID',
  `employee_number` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '员工工号',
  `employee_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '员工姓名(加密存储)',
  `id_card_number` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '身份证号(加密存储)',
  `position` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '岗位',
  `department` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '部门',
  `salary_unit` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '工资单位(支持多个单位，逗号分隔)',
  `hourly_salary` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '小时薪资(加密存储)',
  `daily_salary` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '日薪标准(加密存储)',
  `monthly_salary` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '月薪标准(加密存储)',
  `employee_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT 'ACTIVE' COMMENT '员工状态(ACTIVE:在职,INACTIVE:离职,ON_LEAVE:请假,TERMINATED:解雇)',
  `hire_date` date NULL DEFAULT NULL COMMENT '入职日期',
  `contact_phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '联系电话(加密存储)',
  `library_id` bigint(20) NOT NULL COMMENT '所属员工库ID',
  `is_temporary` tinyint(1) NULL DEFAULT 0 COMMENT '是否临时员工(0:否,1:是)',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `created_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '创建人',
  `updated_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '更新人',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`employee_id`) USING BTREE,
  UNIQUE INDEX `uk_employee_number`(`employee_number` ASC) USING BTREE COMMENT '员工工号唯一索引',
  INDEX `idx_library_id`(`library_id` ASC) USING BTREE COMMENT '员工库ID索引',
  INDEX `idx_employee_status`(`employee_status` ASC) USING BTREE COMMENT '员工状态索引',
  INDEX `idx_hire_date`(`hire_date` ASC) USING BTREE COMMENT '入职日期索引',
  INDEX `idx_is_temporary`(`is_temporary` ASC) USING BTREE COMMENT '临时员工标识索引',
  INDEX `idx_department`(`department` ASC) USING BTREE COMMENT '部门索引',
  INDEX `idx_position`(`position` ASC) USING BTREE COMMENT '岗位索引',
  INDEX `idx_create_time`(`create_time` ASC) USING BTREE COMMENT '创建时间索引',
  CONSTRAINT `fk_employee_library` FOREIGN KEY (`library_id`) REFERENCES `dc_employee_library` (`library_id`) ON DELETE RESTRICT ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 17 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '员工信息表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dc_employee_info
-- ----------------------------
INSERT INTO `dc_employee_info` VALUES (1, '1', 'ss', '1', '项目经理', '长沙分公司', '主要工作单位,兼职单位', NULL, '80', NULL, 'ACTIVE', '2025-12-03', '13712311231', 3, 0, '2025-12-23 00:15:43', '2025-12-23 16:11:20', NULL, 'admin', NULL);
INSERT INTO `dc_employee_info` VALUES (10, '2', 'aa', '3', '人力资源', '安保服务部', '咨询服务单位,劳务派遣单位', NULL, '80', NULL, 'ACTIVE', '2025-12-22', '13713114711', 3, 0, '2025-12-23 00:42:33', '2025-12-23 16:11:20', NULL, 'admin', NULL);
INSERT INTO `dc_employee_info` VALUES (12, '13', '22', '1', '人力资源', '若依科技', '兼职单位', NULL, '80', NULL, 'ACTIVE', '2025-12-24', '13412311231', 1, 1, '2025-12-23 15:55:11', '2025-12-23 16:11:20', 'admin', 'admin', NULL);
INSERT INTO `dc_employee_info` VALUES (13, '10004', '11', '1', '人力资源', '若依科技', '项目合作单位', NULL, '80', NULL, 'INACTIVE', '2025-12-24', '13112361231', 1, 0, '2025-12-23 16:10:46', '2025-12-23 16:13:51', 'admin', 'admin', NULL);
INSERT INTO `dc_employee_info` VALUES (15, '70001', '测试', '1', '普通员工', '金融机构部', '项目合作单位,主要工作单位,劳务派遣单位,咨询服务单位', NULL, NULL, '8220', 'ACTIVE', '2025-12-26', '13112311231', 7, 0, '2025-12-25 16:26:49', '2025-12-25 16:26:48', 'admin', NULL, NULL);
INSERT INTO `dc_employee_info` VALUES (16, '80001', '111', '231', '董事长', '若依科技', '兼职单位,主要工作单位,劳务派遣单位,项目合作单位', NULL, NULL, '8000', 'ACTIVE', '2025-12-16', '13713111231', 8, 0, '2025-12-28 22:51:21', '2025-12-28 22:51:20', 'admin', NULL, NULL);
INSERT INTO `dc_employee_info` VALUES (17, '80002', '232', '11', '董事长', '若依科技', '项目合作单位,咨询服务单位', '20', NULL, NULL, 'ACTIVE', '2025-12-10', '13612311231', 8, 0, '2025-12-29 00:17:41', '2025-12-29 00:17:41', 'admin', NULL, NULL);

-- ----------------------------
-- Table structure for dc_employee_library
-- ----------------------------
DROP TABLE IF EXISTS `dc_employee_library`;
CREATE TABLE `dc_employee_library`  (
  `library_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '员工库ID',
  `company_id` bigint(20) NULL DEFAULT NULL COMMENT '安保公司ID',
  `library_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '员工库名称',
  `description` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '描述',
  `total_employees` int(11) NULL DEFAULT 0 COMMENT '员工总数',
  `library_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT 'ACTIVE' COMMENT '员工库状态(ACTIVE:启用,INACTIVE:禁用,ARCHIVED:归档)',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `created_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '创建人',
  `updated_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '更新人',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`library_id`) USING BTREE,
  UNIQUE INDEX `uk_library_name`(`library_name` ASC) USING BTREE COMMENT '员工库名称唯一索引',
  INDEX `idx_company_id`(`company_id` ASC) USING BTREE COMMENT '安保公司ID索引',
  INDEX `idx_library_status`(`library_status` ASC) USING BTREE COMMENT '员工库状态索引',
  INDEX `idx_create_time`(`create_time` ASC) USING BTREE COMMENT '创建时间索引'
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '员工库管理表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dc_employee_library
-- ----------------------------
INSERT INTO `dc_employee_library` VALUES (1, NULL, '默认员工库', '系统默认员工库', 2, 'ACTIVE', '2025-12-22 21:52:43', '2025-12-23 16:10:46', 'admin', NULL, NULL);
INSERT INTO `dc_employee_library` VALUES (2, NULL, '项目A员工库', '项目A专用员工库', 0, 'ACTIVE', '2025-12-22 21:52:43', '2025-12-22 21:52:43', 'admin', NULL, NULL);
INSERT INTO `dc_employee_library` VALUES (3, NULL, '临时员工库', '临时员工专用库', 2, 'ACTIVE', '2025-12-22 21:52:43', '2025-12-23 15:06:13', 'admin', NULL, NULL);
INSERT INTO `dc_employee_library` VALUES (7, NULL, '测试员工库', '1', 1, 'ACTIVE', '2025-12-25 16:25:50', '2025-12-25 16:26:49', 'admin', NULL, NULL);
INSERT INTO `dc_employee_library` VALUES (8, NULL, '测试12', '111', 2, 'ACTIVE', '2025-12-28 22:50:39', '2025-12-29 00:17:42', 'admin', NULL, NULL);

-- ----------------------------
-- Table structure for dc_escrow_account
-- ----------------------------
DROP TABLE IF EXISTS `dc_escrow_account`;
CREATE TABLE `dc_escrow_account`  (
  `account_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '账户ID',
  `account_number` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '账户编号',
  `account_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '账户名称',
  `account_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '账户类型(CONTRACT:合同监管,FINANCING:融资监管)',
  `related_id` bigint(20) NOT NULL COMMENT '关联业务ID',
  `related_number` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '关联业务编号',
  `financial_institution_id` bigint(20) NOT NULL COMMENT '金融机构ID',
  `financial_institution_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '金融机构名称',
  `account_balance` decimal(15, 2) NOT NULL DEFAULT 0.00 COMMENT '账户余额',
  `frozen_amount` decimal(15, 2) NOT NULL DEFAULT 0.00 COMMENT '冻结金额',
  `available_amount` decimal(15, 2) NOT NULL DEFAULT 0.00 COMMENT '可用金额',
  `account_status` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT 'ACTIVE' COMMENT '账户状态(ACTIVE:活跃,FROZEN:冻结,CLOSED:关闭)',
  `blockchain_address` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '区块链地址',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`account_id`) USING BTREE,
  UNIQUE INDEX `uk_account_number`(`account_number` ASC) USING BTREE,
  INDEX `idx_account_type`(`account_type` ASC) USING BTREE,
  INDEX `idx_related_id`(`related_id` ASC) USING BTREE,
  INDEX `idx_financial_institution_id`(`financial_institution_id` ASC) USING BTREE,
  INDEX `idx_account_status`(`account_status` ASC) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '监管账户表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dc_escrow_account
-- ----------------------------

-- ----------------------------
-- Table structure for dc_financing
-- ----------------------------
DROP TABLE IF EXISTS `dc_financing`;
CREATE TABLE `dc_financing`  (
  `financing_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '融资ID',
  `application_number` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '申请编号',
  `credit_id` bigint(20) NOT NULL COMMENT '债权ID',
  `credit_number` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '债权编号',
  `applicant_id` bigint(20) NOT NULL COMMENT '申请人ID(安保公司)',
  `applicant_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '申请人名称',
  `financial_institution_id` bigint(20) NULL DEFAULT NULL COMMENT '金融机构ID',
  `financial_institution_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '金融机构名称',
  `requested_amount` decimal(15, 2) NOT NULL COMMENT '申请金额',
  `approved_amount` decimal(15, 2) NULL DEFAULT NULL COMMENT '批准金额',
  `interest_rate` decimal(5, 4) NULL DEFAULT NULL COMMENT '利率(%)',
  `financing_term` int(11) NULL DEFAULT NULL COMMENT '融资期限(天)',
  `financing_status` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT 'PENDING' COMMENT '融资状态(PENDING:待审批,APPROVED:审批通过,REJECTED:审批拒绝,DISBURSED:已放款,SETTLED:已结清)',
  `risk_level` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '风险等级(LOW:低风险,MEDIUM:中风险,HIGH:高风险)',
  `risk_score` decimal(5, 2) NULL DEFAULT NULL COMMENT '风险评分',
  `application_materials` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '申请材料',
  `approval_opinion` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '审批意见',
  `approved_by` bigint(20) NULL DEFAULT NULL COMMENT '审批人ID',
  `approved_time` datetime NULL DEFAULT NULL COMMENT '审批时间',
  `disbursement_time` datetime NULL DEFAULT NULL COMMENT '放款时间',
  `repayment_date` date NULL DEFAULT NULL COMMENT '还款日期',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`financing_id`) USING BTREE,
  UNIQUE INDEX `uk_application_number`(`application_number` ASC) USING BTREE,
  INDEX `idx_credit_id`(`credit_id` ASC) USING BTREE,
  INDEX `idx_applicant_id`(`applicant_id` ASC) USING BTREE,
  INDEX `idx_financial_institution_id`(`financial_institution_id` ASC) USING BTREE,
  INDEX `idx_financing_status`(`financing_status` ASC) USING BTREE,
  INDEX `idx_risk_level`(`risk_level` ASC) USING BTREE,
  INDEX `idx_dc_financing_amount`(`requested_amount` ASC, `approved_amount` ASC) USING BTREE,
  INDEX `idx_dc_financing_date`(`approved_time` ASC, `disbursement_time` ASC) USING BTREE,
  CONSTRAINT `fk_financing_credit` FOREIGN KEY (`credit_id`) REFERENCES `dc_credit` (`credit_id`) ON DELETE RESTRICT ON UPDATE CASCADE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '融资申请表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dc_financing
-- ----------------------------

-- ----------------------------
-- Table structure for dc_fund_flow
-- ----------------------------
DROP TABLE IF EXISTS `dc_fund_flow`;
CREATE TABLE `dc_fund_flow`  (
  `flow_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '流水ID',
  `flow_number` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '流水编号',
  `account_id` bigint(20) NOT NULL COMMENT '账户ID',
  `account_number` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '账户编号',
  `flow_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '流水类型(DEPOSIT:存入,WITHDRAW:提取,TRANSFER:转账,FREEZE:冻结,UNFREEZE:解冻)',
  `flow_direction` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '流水方向(IN:入账,OUT:出账)',
  `flow_amount` decimal(15, 2) NOT NULL COMMENT '流水金额',
  `balance_before` decimal(15, 2) NOT NULL COMMENT '变动前余额',
  `balance_after` decimal(15, 2) NOT NULL COMMENT '变动后余额',
  `related_payment_id` bigint(20) NULL DEFAULT NULL COMMENT '关联支付ID',
  `counterparty_id` bigint(20) NULL DEFAULT NULL COMMENT '对方账户ID',
  `counterparty_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '对方账户名称',
  `transaction_hash` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '交易哈希',
  `flow_description` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '流水描述',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`flow_id`) USING BTREE,
  UNIQUE INDEX `uk_flow_number`(`flow_number` ASC) USING BTREE,
  INDEX `idx_account_id`(`account_id` ASC) USING BTREE,
  INDEX `idx_flow_type`(`flow_type` ASC) USING BTREE,
  INDEX `idx_create_time`(`create_time` ASC) USING BTREE,
  INDEX `idx_related_payment_id`(`related_payment_id` ASC) USING BTREE,
  CONSTRAINT `fk_fund_flow_account` FOREIGN KEY (`account_id`) REFERENCES `dc_escrow_account` (`account_id`) ON DELETE RESTRICT ON UPDATE CASCADE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '资金流水表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dc_fund_flow
-- ----------------------------

-- ----------------------------
-- Table structure for dc_loan_audit_log
-- ----------------------------
DROP TABLE IF EXISTS `dc_loan_audit_log`;
CREATE TABLE `dc_loan_audit_log`  (
  `audit_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '审计ID',
  `service_period_id` bigint(20) NOT NULL COMMENT '服务周期ID',
  `link_id` bigint(20) NULL DEFAULT NULL COMMENT '贷款关联ID',
  `operation_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '操作类型',
  `operation_description` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '操作描述',
  `old_value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '变更前值',
  `new_value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '变更后值',
  `change_reason` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '变更原因',
  `ip_address` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'IP地址',
  `user_agent` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '用户代理',
  `operation_result` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'SUCCESS' COMMENT '操作结果(SUCCESS-成功,FAILED-失败)',
  `error_message` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '错误信息',
  `operation_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '操作时间',
  `operator` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '操作人',
  `operator_role` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '操作人角色',
  PRIMARY KEY (`audit_id`) USING BTREE,
  INDEX `idx_service_period_id`(`service_period_id` ASC) USING BTREE,
  INDEX `idx_link_id`(`link_id` ASC) USING BTREE,
  INDEX `idx_operation_type`(`operation_type` ASC) USING BTREE,
  INDEX `idx_operation_time`(`operation_time` ASC) USING BTREE,
  INDEX `idx_operator`(`operator` ASC) USING BTREE,
  INDEX `idx_audit_time_operator`(`operation_time` ASC, `operator` ASC) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '贷款审计日志表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dc_loan_audit_log
-- ----------------------------

-- ----------------------------
-- Table structure for dc_loan_consistency_validation
-- ----------------------------
DROP TABLE IF EXISTS `dc_loan_consistency_validation`;
CREATE TABLE `dc_loan_consistency_validation`  (
  `validation_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '验证记录ID',
  `loan_id` bigint(20) NOT NULL COMMENT '贷款ID',
  `credit_id` bigint(20) NULL DEFAULT NULL COMMENT '债权凭证ID',
  `service_period_id` bigint(20) NULL DEFAULT NULL COMMENT '服务周期ID',
  `validation_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '验证状态(PASS/FAIL/PENDING/ERROR/TIMEOUT)',
  `validation_result` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '验证结果详情',
  `failure_reason` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '失败原因',
  `validation_time` datetime NOT NULL COMMENT '验证时间',
  `validated_by` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '验证执行者',
  `validation_score` int(3) NULL DEFAULT NULL COMMENT '验证得分(0-100)',
  `rule_version` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '使用的规则版本',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`validation_id`) USING BTREE,
  INDEX `idx_loan_id`(`loan_id` ASC) USING BTREE,
  INDEX `idx_credit_id`(`credit_id` ASC) USING BTREE,
  INDEX `idx_service_period_id`(`service_period_id` ASC) USING BTREE,
  INDEX `idx_validation_status`(`validation_status` ASC) USING BTREE,
  INDEX `idx_validation_time`(`validation_time` ASC) USING BTREE,
  INDEX `idx_create_time`(`create_time` ASC) USING BTREE,
  INDEX `idx_loan_status_time`(`loan_id` ASC, `validation_status` ASC, `validation_time` ASC) USING BTREE,
  INDEX `idx_credit_status_time`(`credit_id` ASC, `validation_status` ASC, `validation_time` ASC) USING BTREE,
  INDEX `idx_status_score`(`validation_status` ASC, `validation_score` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '贷款一致性验证记录表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of dc_loan_consistency_validation
-- ----------------------------

-- ----------------------------
-- Table structure for dc_message_record
-- ----------------------------
DROP TABLE IF EXISTS `dc_message_record`;
CREATE TABLE `dc_message_record`  (
  `record_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '记录ID',
  `message_id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '消息ID',
  `template_id` bigint(20) NULL DEFAULT NULL COMMENT '模板ID',
  `template_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '模板编码',
  `message_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '消息类型(EMAIL:邮件,SMS:短信,SYSTEM:系统通知,PUSH:推送)',
  `message_category` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '消息分类(CONTRACT:合同,CREDIT:债权,FINANCING:融资,PAYMENT:支付,SYSTEM:系统)',
  `sender_id` bigint(20) NULL DEFAULT NULL COMMENT '发送人ID',
  `sender_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '发送人姓名',
  `recipient_id` bigint(20) NOT NULL COMMENT '接收人ID',
  `recipient_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '接收人姓名',
  `recipient_contact` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '接收人联系方式',
  `message_subject` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '消息主题',
  `message_content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '消息内容',
  `message_status` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT 'PENDING' COMMENT '消息状态(PENDING:待发送,SENDING:发送中,SENT:已发送,DELIVERED:已送达,FAILED:失败,READ:已读)',
  `send_time` datetime NULL DEFAULT NULL COMMENT '发送时间',
  `delivery_time` datetime NULL DEFAULT NULL COMMENT '送达时间',
  `read_time` datetime NULL DEFAULT NULL COMMENT '阅读时间',
  `failure_reason` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '失败原因',
  `retry_count` int(11) NULL DEFAULT 0 COMMENT '重试次数',
  `max_retry_count` int(11) NULL DEFAULT 3 COMMENT '最大重试次数',
  `business_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '业务类型',
  `business_id` bigint(20) NULL DEFAULT NULL COMMENT '业务ID',
  `business_number` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '业务编号',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`record_id`) USING BTREE,
  UNIQUE INDEX `uk_message_id`(`message_id` ASC) USING BTREE,
  INDEX `idx_template_id`(`template_id` ASC) USING BTREE,
  INDEX `idx_message_type`(`message_type` ASC) USING BTREE,
  INDEX `idx_recipient_id`(`recipient_id` ASC) USING BTREE,
  INDEX `idx_message_status`(`message_status` ASC) USING BTREE,
  INDEX `idx_send_time`(`send_time` ASC) USING BTREE,
  INDEX `idx_business_type`(`business_type` ASC) USING BTREE,
  INDEX `idx_dc_message_business`(`business_type` ASC, `business_id` ASC) USING BTREE,
  CONSTRAINT `fk_message_template` FOREIGN KEY (`template_id`) REFERENCES `dc_message_template` (`template_id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '消息发送记录表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dc_message_record
-- ----------------------------

-- ----------------------------
-- Table structure for dc_message_template
-- ----------------------------
DROP TABLE IF EXISTS `dc_message_template`;
CREATE TABLE `dc_message_template`  (
  `template_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '模板ID',
  `template_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '模板编码',
  `template_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '模板名称',
  `template_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '模板类型(EMAIL:邮件,SMS:短信,SYSTEM:系统通知,PUSH:推送)',
  `template_category` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '模板分类(CONTRACT:合同,CREDIT:债权,FINANCING:融资,PAYMENT:支付,SYSTEM:系统)',
  `template_subject` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '模板主题',
  `template_content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '模板内容',
  `template_variables` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '模板变量(JSON格式)',
  `template_status` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT 'ACTIVE' COMMENT '模板状态(ACTIVE:启用,INACTIVE:禁用)',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`template_id`) USING BTREE,
  UNIQUE INDEX `uk_template_code`(`template_code` ASC) USING BTREE,
  INDEX `idx_template_type`(`template_type` ASC) USING BTREE,
  INDEX `idx_template_category`(`template_category` ASC) USING BTREE,
  INDEX `idx_template_status`(`template_status` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '消息模板表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dc_message_template
-- ----------------------------
INSERT INTO `dc_message_template` VALUES (1, 'CONTRACT_CREATED', '合同创建通知', 'EMAIL', 'CONTRACT', '新合同创建通知', '尊敬的{{clientName}}，您有一份新的服务合同{{contractNumber}}需要确认，请及时登录系统查看。', '{\"clientName\":\"甲方单位名称\",\"contractNumber\":\"合同编号\",\"contractTitle\":\"合同标题\"}', 'ACTIVE', 'admin', '2025-12-20 17:12:11', '', NULL, '合同创建后通知甲方');
INSERT INTO `dc_message_template` VALUES (2, 'CONTRACT_CONFIRMED', '合同确认通知', 'EMAIL', 'CONTRACT', '合同确认成功通知', '尊敬的{{securityCompanyName}}，合同{{contractNumber}}已被甲方确认，可以开始提供服务。', '{\"securityCompanyName\":\"安保公司名称\",\"contractNumber\":\"合同编号\"}', 'ACTIVE', 'admin', '2025-12-20 17:12:11', '', NULL, '合同确认后通知安保公司');
INSERT INTO `dc_message_template` VALUES (3, 'CREDIT_GENERATED', '债权生成通知', 'EMAIL', 'CREDIT', '数字债权凭证生成通知', '您的债权凭证{{creditNumber}}已成功生成，债权金额：{{creditAmount}}元，可用于融资申请。', '{\"creditNumber\":\"债权编号\",\"creditAmount\":\"债权金额\"}', 'ACTIVE', 'admin', '2025-12-20 17:12:11', '', NULL, '债权生成后通知');
INSERT INTO `dc_message_template` VALUES (4, 'FINANCING_APPROVED', '融资审批通过通知', 'EMAIL', 'FINANCING', '融资申请审批通过', '恭喜！您的融资申请{{applicationNumber}}已审批通过，批准金额：{{approvedAmount}}元，请等待放款。', '{\"applicationNumber\":\"申请编号\",\"approvedAmount\":\"批准金额\"}', 'ACTIVE', 'admin', '2025-12-20 17:12:11', '', NULL, '融资审批通过通知');
INSERT INTO `dc_message_template` VALUES (5, 'FINANCING_REJECTED', '融资审批拒绝通知', 'EMAIL', 'FINANCING', '融资申请审批拒绝', '很遗憾，您的融资申请{{applicationNumber}}未通过审批，拒绝原因：{{rejectReason}}', '{\"applicationNumber\":\"申请编号\",\"rejectReason\":\"拒绝原因\"}', 'ACTIVE', 'admin', '2025-12-20 17:12:11', '', NULL, '融资审批拒绝通知');
INSERT INTO `dc_message_template` VALUES (6, 'PAYMENT_COMPLETED', '支付完成通知', 'EMAIL', 'PAYMENT', '支付完成通知', '您的支付{{paymentNumber}}已完成，支付金额：{{paymentAmount}}元，交易哈希：{{transactionHash}}', '{\"paymentNumber\":\"支付编号\",\"paymentAmount\":\"支付金额\",\"transactionHash\":\"交易哈希\"}', 'ACTIVE', 'admin', '2025-12-20 17:12:11', '', NULL, '支付完成通知');

-- ----------------------------
-- Table structure for dc_mfa_token
-- ----------------------------
DROP TABLE IF EXISTS `dc_mfa_token`;
CREATE TABLE `dc_mfa_token`  (
  `token_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '令牌ID',
  `user_id` bigint(20) NOT NULL COMMENT '用户ID',
  `username` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '用户名',
  `token_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '令牌类型',
  `token_value` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '令牌值',
  `token_status` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT 'ACTIVE' COMMENT '令牌状态',
  `generated_time` datetime NULL DEFAULT NULL COMMENT '生成时间',
  `expiry_time` datetime NOT NULL COMMENT '过期时间',
  `used_time` datetime NULL DEFAULT NULL COMMENT '使用时间',
  `verify_count` bigint(20) NOT NULL DEFAULT 0 COMMENT '验证次数',
  `max_verify_count` bigint(20) NOT NULL DEFAULT 3 COMMENT '最大验证次数',
  `device_info` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '设备信息',
  `ip_address` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'IP地址',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`token_id`) USING BTREE,
  INDEX `idx_user_id`(`user_id` ASC) USING BTREE,
  INDEX `idx_token_type`(`token_type` ASC) USING BTREE,
  INDEX `idx_token_status`(`token_status` ASC) USING BTREE,
  INDEX `idx_expiry_time`(`expiry_time` ASC) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '多因素认证令牌表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dc_mfa_token
-- ----------------------------

-- ----------------------------
-- Table structure for dc_payment
-- ----------------------------
DROP TABLE IF EXISTS `dc_payment`;
CREATE TABLE `dc_payment`  (
  `payment_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '支付ID',
  `payment_number` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '支付编号',
  `payment_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '支付类型(CONTRACT_PAYMENT:合同付款,FINANCING_DISBURSEMENT:融资放款,REPAYMENT:还款)',
  `related_id` bigint(20) NOT NULL COMMENT '关联业务ID(合同ID/融资ID)',
  `related_number` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '关联业务编号',
  `payer_id` bigint(20) NOT NULL COMMENT '付款方ID',
  `payer_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '付款方名称',
  `payee_id` bigint(20) NOT NULL COMMENT '收款方ID',
  `payee_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '收款方名称',
  `payment_amount` decimal(15, 2) NOT NULL COMMENT '支付金额',
  `payment_method` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '支付方式(BANK_TRANSFER:银行转账,DIGITAL_CURRENCY:数字货币)',
  `payment_status` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT 'PENDING' COMMENT '支付状态(PENDING:待支付,PROCESSING:处理中,COMPLETED:已完成,FAILED:失败,CANCELLED:已取消)',
  `escrow_account_id` bigint(20) NULL DEFAULT NULL COMMENT '监管账户ID',
  `transaction_hash` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '交易哈希',
  `blockchain_tx_hash` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '区块链交易哈希',
  `payment_time` datetime NULL DEFAULT NULL COMMENT '支付时间',
  `confirmation_time` datetime NULL DEFAULT NULL COMMENT '确认时间',
  `failure_reason` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '失败原因',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`payment_id`) USING BTREE,
  UNIQUE INDEX `uk_payment_number`(`payment_number` ASC) USING BTREE,
  INDEX `idx_payment_type`(`payment_type` ASC) USING BTREE,
  INDEX `idx_related_id`(`related_id` ASC) USING BTREE,
  INDEX `idx_payer_id`(`payer_id` ASC) USING BTREE,
  INDEX `idx_payee_id`(`payee_id` ASC) USING BTREE,
  INDEX `idx_payment_status`(`payment_status` ASC) USING BTREE,
  INDEX `idx_payment_time`(`payment_time` ASC) USING BTREE,
  INDEX `idx_dc_payment_amount`(`payment_amount` ASC) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '支付结算表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dc_payment
-- ----------------------------

-- ----------------------------
-- Table structure for dc_risk_assessment
-- ----------------------------
DROP TABLE IF EXISTS `dc_risk_assessment`;
CREATE TABLE `dc_risk_assessment`  (
  `assessment_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '评估ID',
  `assessment_number` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '评估编号',
  `business_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '业务类型(CONTRACT:合同,CREDIT:债权,FINANCING:融资)',
  `business_id` bigint(20) NOT NULL COMMENT '业务ID',
  `business_number` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '业务编号',
  `assessment_model` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '评估模型(BASIC:基础模型,ADVANCED:高级模型,AI:AI模型)',
  `risk_factors` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '风险因子(JSON格式)',
  `risk_score` decimal(5, 2) NOT NULL COMMENT '风险评分',
  `risk_level` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '风险等级(LOW:低风险,MEDIUM:中风险,HIGH:高风险)',
  `risk_description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '风险描述',
  `mitigation_measures` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '缓解措施',
  `assessor_id` bigint(20) NOT NULL COMMENT '评估人ID',
  `assessor_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '评估人姓名',
  `assessment_time` datetime NOT NULL COMMENT '评估时间',
  `valid_until` datetime NULL DEFAULT NULL COMMENT '有效期至',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`assessment_id`) USING BTREE,
  UNIQUE INDEX `uk_assessment_number`(`assessment_number` ASC) USING BTREE,
  INDEX `idx_business_type`(`business_type` ASC) USING BTREE,
  INDEX `idx_business_id`(`business_id` ASC) USING BTREE,
  INDEX `idx_risk_level`(`risk_level` ASC) USING BTREE,
  INDEX `idx_assessment_time`(`assessment_time` ASC) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '风险评估记录表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dc_risk_assessment
-- ----------------------------

-- ----------------------------
-- Table structure for dc_risk_event
-- ----------------------------
DROP TABLE IF EXISTS `dc_risk_event`;
CREATE TABLE `dc_risk_event`  (
  `event_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '风险事件ID',
  `event_number` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '事件编号',
  `event_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '事件类型',
  `risk_level` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '风险级别',
  `event_source` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '事件来源',
  `related_entity_id` bigint(20) NULL DEFAULT NULL COMMENT '关联实体ID',
  `entity_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '实体类型',
  `event_description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '事件描述(加密)',
  `anomaly_details` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '异常详情(加密)',
  `event_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '事件状态',
  `detected_time` datetime NOT NULL COMMENT '检测时间',
  `resolved_time` datetime NULL DEFAULT NULL COMMENT '解决时间',
  `handled_by` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '处理人',
  `resolution` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '解决方案',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`event_id`) USING BTREE,
  UNIQUE INDEX `uk_event_number`(`event_number` ASC) USING BTREE,
  INDEX `idx_event_type`(`event_type` ASC) USING BTREE,
  INDEX `idx_risk_level`(`risk_level` ASC) USING BTREE,
  INDEX `idx_event_status`(`event_status` ASC) USING BTREE,
  INDEX `idx_related_entity`(`related_entity_id` ASC, `entity_type` ASC) USING BTREE,
  INDEX `idx_detected_time`(`detected_time` ASC) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '风险事件表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dc_risk_event
-- ----------------------------

-- ----------------------------
-- Table structure for dc_risk_event_tracking
-- ----------------------------
DROP TABLE IF EXISTS `dc_risk_event_tracking`;
CREATE TABLE `dc_risk_event_tracking`  (
  `tracking_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '跟踪ID',
  `event_id` bigint(20) NOT NULL COMMENT '风险事件ID',
  `tracking_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '跟踪状态',
  `action_taken` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '采取的行动',
  `action_result` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '行动结果',
  `action_time` datetime NOT NULL COMMENT '行动时间',
  `action_by` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '行动人',
  `next_action` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '下一步行动',
  `next_action_time` datetime NULL DEFAULT NULL COMMENT '下一步行动时间',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  PRIMARY KEY (`tracking_id`) USING BTREE,
  INDEX `idx_event_id`(`event_id` ASC) USING BTREE,
  INDEX `idx_tracking_status`(`tracking_status` ASC) USING BTREE,
  INDEX `idx_action_time`(`action_time` ASC) USING BTREE,
  CONSTRAINT `fk_tracking_event_id` FOREIGN KEY (`event_id`) REFERENCES `dc_risk_event` (`event_id`) ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '风险事件跟踪表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dc_risk_event_tracking
-- ----------------------------

-- ----------------------------
-- Table structure for dc_scheduled_task
-- ----------------------------
DROP TABLE IF EXISTS `dc_scheduled_task`;
CREATE TABLE `dc_scheduled_task`  (
  `task_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '任务ID',
  `task_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '任务名称',
  `task_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '任务类型',
  `task_status` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT 'ACTIVE' COMMENT '任务状态',
  `cron_expression` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'Cron表达式',
  `target_object` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '目标对象',
  `target_method` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '目标方法',
  `method_params` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '方法参数',
  `next_execute_time` datetime NULL DEFAULT NULL COMMENT '下次执行时间',
  `last_execute_time` datetime NULL DEFAULT NULL COMMENT '上次执行时间',
  `execute_count` bigint(20) NOT NULL DEFAULT 0 COMMENT '执行次数',
  `failure_count` bigint(20) NOT NULL DEFAULT 0 COMMENT '失败次数',
  `max_retry_count` int(11) NOT NULL DEFAULT 3 COMMENT '最大重试次数',
  `description` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '描述',
  `enabled` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '1' COMMENT '是否启用',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`task_id`) USING BTREE,
  INDEX `idx_task_status`(`task_status` ASC) USING BTREE,
  INDEX `idx_enabled`(`enabled` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '定时任务表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dc_scheduled_task
-- ----------------------------
INSERT INTO `dc_scheduled_task` VALUES (1, '合同状态检查任务', 'CONTRACT_STATUS_CHECK', 'ACTIVE', '0 0 */2 * * ?', 'digitalCreditTask', 'checkContractStatus', '', NULL, NULL, 0, 0, 3, '定期检查合同状态，处理状态变更和异常情况', '1', '2025-12-20 00:40:11', '2025-12-20 00:40:11');

-- ----------------------------
-- Table structure for dc_service_contract
-- ----------------------------
DROP TABLE IF EXISTS `dc_service_contract`;
CREATE TABLE `dc_service_contract`  (
  `contract_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '合同ID',
  `contract_number` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '合同编号',
  `title` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '' COMMENT '合同标题',
  `security_company` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '安保公司名称',
  `client_company` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '甲方单位名称',
  `service_content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '服务内容(加密)',
  `contract_term` int(11) NULL DEFAULT NULL COMMENT '合同期限(月)',
  `contract_terms` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '合同条款(加密)',
  `contract_amount` decimal(15, 2) NOT NULL COMMENT '合同金额(加密)',
  `start_date` date NOT NULL COMMENT '服务开始日期',
  `end_date` date NOT NULL COMMENT '服务结束日期',
  `payment_due_date` date NOT NULL COMMENT '付款到期日',
  `contract_status` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT 'PENDING' COMMENT '合同状态(DRAFT:草稿,PENDING:待确认,CONFIRMED:已确认,COMPLETED:已完成,CANCELLED:已取消)',
  `contract_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '合同类型(ONLINE:线上创建,OFFLINE:线下签署)',
  `contract_source` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '合同来源(PLATFORM_CREATED:平台创建,UPLOADED:上传)',
  `attachment_id` bigint(20) NULL DEFAULT NULL COMMENT '关联的合同文件ID(线下合同)',
  `sign_date` datetime NULL DEFAULT NULL COMMENT '签署日期',
  `extracted_info` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '从上传文件提取的信息摘要',
  `blockchain_hash` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '区块链哈希',
  `data_hash` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '敏感数据哈希(用于完整性验证)',
  `encryption_key_id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '加密密钥ID',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`contract_id`) USING BTREE,
  UNIQUE INDEX `uk_contract_number`(`contract_number` ASC) USING BTREE,
  INDEX `idx_security_company`(`security_company` ASC) USING BTREE,
  INDEX `idx_client_company`(`client_company` ASC) USING BTREE,
  INDEX `idx_contract_status`(`contract_status` ASC) USING BTREE,
  INDEX `idx_contract_type`(`contract_type` ASC) USING BTREE,
  INDEX `idx_contract_source`(`contract_source` ASC) USING BTREE,
  INDEX `idx_create_time`(`create_time` ASC) USING BTREE,
  INDEX `idx_service_date`(`start_date` ASC, `end_date` ASC) USING BTREE,
  INDEX `idx_payment_due_date`(`payment_due_date` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 18 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '服务合同管理表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dc_service_contract
-- ----------------------------
INSERT INTO `dc_service_contract` VALUES (1, 'HT20251221085', '111111', '安保公司A', '客户公司A', '111111111', 12, NULL, 22222.00, '2025-12-08', '2026-12-08', '2027-01-01', 'CONFIRMED', 'ONLINE', 'PLATFORM_CREATED', NULL, NULL, NULL, NULL, '1206253763', NULL, 'admin', '2025-12-21 15:30:19', 'admin', '2025-12-21 19:02:39', '');
INSERT INTO `dc_service_contract` VALUES (2, 'HT20251221260', 'ssssss', '安保公司B', '客户公司A', '111111', 12, NULL, 22223.00, '2025-12-01', '2026-12-01', '2027-02-16', 'PENDING', 'ONLINE', 'PLATFORM_CREATED', NULL, NULL, NULL, NULL, '133122939', NULL, 'admin', '2025-12-21 18:19:41', '', '2025-12-21 19:02:39', '');
INSERT INTO `dc_service_contract` VALUES (3, 'HT20251221323', '111111', '安保公司C', '客户公司A', '11111111111', 12, NULL, 44444444.00, '2025-12-01', '2026-12-01', '2027-12-01', 'CONFIRMED', 'ONLINE', 'PLATFORM_CREATED', NULL, NULL, NULL, NULL, '-1812114651', NULL, 'admin', '2025-12-21 18:22:31', 'admin', '2025-12-21 19:33:56', '');
INSERT INTO `dc_service_contract` VALUES (4, 'HT20251221186', '111223', '安保公司B', '客户公司B', '11111111111111111', 12, NULL, 999999999.99, '2025-12-01', '2026-12-01', '2027-12-01', 'PENDING', 'ONLINE', 'PLATFORM_CREATED', NULL, NULL, NULL, NULL, '-854703561', NULL, 'admin', '2025-12-21 18:24:16', '', '2025-12-21 19:02:39', '');
INSERT INTO `dc_service_contract` VALUES (5, 'HT20251221912', '222222222', '安保公司B', '客户公司A', '111111111111', 12, NULL, 3432332.00, '2025-12-01', '2026-12-01', '2027-12-01', 'PENDING', 'ONLINE', 'PLATFORM_CREATED', NULL, NULL, NULL, NULL, '-1099623451', NULL, 'admin', '2025-12-21 18:27:00', '', '2025-12-21 19:02:39', '');
INSERT INTO `dc_service_contract` VALUES (6, 'HT20251221651', '11111', '安保公司C', '客户公司C', '111111', 12, NULL, 222222.00, '2025-12-03', '2026-12-03', '2027-12-01', 'PENDING', 'ONLINE', 'PLATFORM_CREATED', NULL, NULL, NULL, NULL, '-864988500', NULL, 'admin', '2025-12-21 18:29:24', '', '2025-12-21 19:02:39', '');
INSERT INTO `dc_service_contract` VALUES (7, 'HT20251221011', '22222', '安保公司B', '客户公司A', '1111111111111', 12, NULL, 3333333.00, '2025-12-01', '2026-12-01', '2027-12-20', 'CONFIRMED', 'ONLINE', 'PLATFORM_CREATED', NULL, NULL, NULL, NULL, '497310232', NULL, 'admin', '2025-12-21 18:40:57', 'admin', '2025-12-21 19:02:39', '');
INSERT INTO `dc_service_contract` VALUES (8, 'HT20251221091', '45464', '安保公司C', '客户公司A', '11111111111', 12, NULL, 23321.00, '2025-12-01', '2026-12-01', '2027-12-01', 'CONFIRMED', 'ONLINE', 'PLATFORM_CREATED', NULL, NULL, NULL, NULL, '163490638', NULL, 'admin', '2025-12-21 18:44:01', 'admin', '2025-12-21 19:02:39', '111');
INSERT INTO `dc_service_contract` VALUES (9, 'HT20251221923', '1111111', '是是是', '说我', '1111111', 12, '1111111111111111111', 999999999.99, '2025-12-22', '2025-12-24', '2025-12-31', 'CONFIRMED', 'ONLINE', 'PLATFORM_CREATED', NULL, NULL, NULL, NULL, '2063156129', NULL, 'admin', '2025-12-21 19:16:20', 'admin', '2025-12-21 19:16:32', '');
INSERT INTO `dc_service_contract` VALUES (10, 'HT20251221699', '11111', '安保公司B', '客户公司A', '22211', 12, '1111111111', 122434.00, '2025-12-22', '2026-12-22', '2027-01-21', 'CONFIRMED', 'ONLINE', 'PLATFORM_CREATED', NULL, NULL, NULL, NULL, '-1905083995', NULL, 'admin', '2025-12-21 19:32:32', 'admin', '2025-12-21 19:33:08', '');
INSERT INTO `dc_service_contract` VALUES (11, 'HT20251221659', '112321', '安保公司A', '客户公司A', '11111', 12, '1111111111', 484684864.00, '2025-12-22', '2026-12-22', '2027-03-01', 'CONFIRMED', 'ONLINE', 'PLATFORM_CREATED', NULL, NULL, NULL, NULL, '-1215896321', NULL, 'admin', '2025-12-21 22:30:55', 'admin', '2025-12-21 22:32:50', '');
INSERT INTO `dc_service_contract` VALUES (12, 'HT20251222393', '1111222333', '安保公司A', '客户公司A', 'qqqqq', 12, '1111111111', 1112333.00, '2025-12-23', '2026-12-23', '2027-01-22', 'PENDING', 'ONLINE', 'PLATFORM_CREATED', NULL, NULL, NULL, NULL, '-115280899', NULL, 'admin', '2025-12-22 16:47:36', 'admin', '2025-12-22 18:18:01', '');
INSERT INTO `dc_service_contract` VALUES (13, 'HT20251222927', '111111', '111', '1111', '111111', 12, '111111111111111', 232323.00, '2025-12-23', '2026-12-23', '2027-01-22', 'CONFIRMED', 'ONLINE', 'PLATFORM_CREATED', NULL, NULL, NULL, NULL, '643837470', NULL, 'security_admin_a', '2025-12-22 17:40:45', 'admin', '2025-12-22 18:21:33', '');
INSERT INTO `dc_service_contract` VALUES (15, 'HT20251225238', '测试合同标题', '测试2', '测试1', '111111', 12, '1111111111111111111111111111111', 11111111.00, '2025-12-29', '2026-12-29', '2027-01-28', 'CONFIRMED', 'ONLINE', 'PLATFORM_CREATED', NULL, NULL, NULL, NULL, '-1525700287', NULL, 'admin', '2025-12-25 16:25:00', 'admin', '2025-12-25 16:25:27', '');
INSERT INTO `dc_service_contract` VALUES (16, 'HT20251228621', '1232142323', '安保A', '甲方A', '111111', 36, 'j12321412311', 9999559.00, '2025-12-28', '2028-12-28', '2029-01-27', 'CONFIRMED', 'ONLINE', 'PLATFORM_CREATED', NULL, NULL, NULL, NULL, '-712277459', NULL, 'admin', '2025-12-28 22:49:31', 'admin', '2025-12-28 22:49:46', '');
INSERT INTO `dc_service_contract` VALUES (17, 'HT20251230747', '全文1111', '2323', '1111111', '2222223', 24, '11111111111', 1232445.00, '2025-12-31', '2027-12-31', '2028-01-30', 'CONFIRMED', 'ONLINE', 'PLATFORM_CREATED', NULL, NULL, NULL, NULL, '-1219352980', NULL, 'admin', '2025-12-30 10:37:29', 'admin', '2025-12-30 10:37:58', '');
INSERT INTO `dc_service_contract` VALUES (18, 'HT20251230933', '2231131322', '33333', '1111', '222222222', 36, '2222222222222', 12345678.00, '2026-01-05', '2029-01-05', '2029-02-04', 'PENDING', 'ONLINE', 'PLATFORM_CREATED', NULL, NULL, NULL, NULL, '-108392565', NULL, 'admin', '2025-12-30 10:38:25', '', '2025-12-30 10:38:25', '');

-- ----------------------------
-- Table structure for dc_service_period
-- ----------------------------
DROP TABLE IF EXISTS `dc_service_period`;
CREATE TABLE `dc_service_period`  (
  `service_period_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '服务周期ID',
  `period_number` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '周期编号',
  `contract_id` bigint(20) NOT NULL COMMENT '合同ID',
  `service_start_date` date NOT NULL COMMENT '服务开始日期',
  `service_end_date` date NOT NULL COMMENT '服务结束日期',
  `service_days` int(11) NULL DEFAULT 0 COMMENT '服务天数',
  `service_content` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '服务内容',
  `total_labor_cost` decimal(10, 2) NULL DEFAULT 0.00 COMMENT '总人工成本',
  `total_loan_amount` decimal(10, 2) NULL DEFAULT 0.00 COMMENT '总贷款金额',
  `loan_multiplier` decimal(5, 2) NULL DEFAULT NULL COMMENT '贷款倍数（为空或1时按人工成本计算）',
  `period_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT 'CREATED' COMMENT '周期状态',
  `employee_count` int(11) NULL DEFAULT 0 COMMENT '员工数量',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `created_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '创建者',
  `updated_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '更新者',
  PRIMARY KEY (`service_period_id`) USING BTREE,
  UNIQUE INDEX `uk_period_number`(`period_number` ASC) USING BTREE,
  INDEX `idx_contract_id`(`contract_id` ASC) USING BTREE,
  INDEX `idx_period_status`(`period_status` ASC) USING BTREE,
  INDEX `idx_date_range`(`service_start_date` ASC, `service_end_date` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 20 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '服务周期表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dc_service_period
-- ----------------------------
INSERT INTO `dc_service_period` VALUES (6, 'HT20251221659-SP-001', 11, '2025-12-02', '2025-12-25', 24, '', 2400.00, 2400.00, NULL, 'CREATED', 3, '2025-12-24 01:27:31', '2025-12-24 01:27:39', 'admin', '');
INSERT INTO `dc_service_period` VALUES (7, 'HT20251221651-SP-001', 6, '2025-12-01', '2027-12-15', 745, '', 1040.00, 1040.00, NULL, 'CREATED', 3, '2025-12-24 01:33:17', '2025-12-24 01:33:50', 'admin', '');
INSERT INTO `dc_service_period` VALUES (9, 'HT20251222393-SP-001', 12, '2025-12-16', '2025-12-31', 16, '', 800.00, 800.00, NULL, 'CREATED', 2, '2025-12-24 01:36:06', '2025-12-24 01:36:10', 'admin', '');
INSERT INTO `dc_service_period` VALUES (10, 'HT20251221011-SP-001', 7, '2025-12-02', '2025-12-31', 30, '', 24000.00, 24000.00, NULL, 'CREATED', 3, '2025-12-24 23:43:39', '2025-12-24 23:43:52', 'admin', '');
INSERT INTO `dc_service_period` VALUES (11, 'HT20251222393-SP-002', 12, '2025-12-01', '2025-12-31', 31, '', 87600.00, 105120.00, 1.20, 'CREATED', 3, '2025-12-25 00:42:08', '2025-12-25 00:42:19', 'admin', '');
INSERT INTO `dc_service_period` VALUES (12, 'HT20251225238-SP-001', 15, '2025-12-26', '2025-12-31', 6, '', 49320.00, 49320.00, NULL, 'CREATED', 1, '2025-12-25 16:27:12', '2025-12-25 16:27:23', 'admin', '');
INSERT INTO `dc_service_period` VALUES (13, 'HT20251222393-SP-003', 12, '2025-12-01', '2025-12-31', 31, '', 253800.00, 253800.00, NULL, 'CREATED', 4, '2025-12-25 20:04:41', '2025-12-25 20:06:46', 'admin', '');
INSERT INTO `dc_service_period` VALUES (14, 'HT20251222393-SP-004', 12, '2025-12-01', '2025-12-31', 31, '', 676800.00, 676800.00, NULL, 'CREATED', 4, '2025-12-25 23:07:51', '2025-12-25 23:08:03', 'admin', '');
INSERT INTO `dc_service_period` VALUES (15, 'HT20251221923-SP-001', 9, '2025-12-01', '2025-12-31', 31, '', 253800.00, 253800.00, NULL, 'CREATED', 4, '2025-12-26 00:05:57', '2025-12-26 00:09:04', 'admin', '');
INSERT INTO `dc_service_period` VALUES (16, 'HT20251221659-SP-002', 11, '2025-12-03', '2025-12-31', 29, '', 0.00, 0.00, NULL, 'CREATED', 0, '2025-12-26 00:09:13', NULL, 'admin', '');
INSERT INTO `dc_service_period` VALUES (17, 'HT20251225238-SP-002', 15, '2025-12-02', '2025-12-31', 30, '', 8460.00, 8460.00, NULL, 'CREATED', 4, '2025-12-26 00:22:37', '2025-12-26 01:17:50', 'admin', '');
INSERT INTO `dc_service_period` VALUES (18, 'HT20251222927-SP-001', 13, '2025-12-04', '2025-12-24', 21, '', 83800.00, 83800.00, NULL, 'CREATED', 3, '2025-12-26 01:25:16', '2025-12-26 01:53:08', 'admin', '');
INSERT INTO `dc_service_period` VALUES (19, 'HT20251222393-SP-005', 12, '2025-12-09', '2025-12-09', 1, '', 84600.00, 84600.00, NULL, 'CREATED', 4, '2025-12-28 22:38:49', '2025-12-28 22:38:57', 'admin', '');
INSERT INTO `dc_service_period` VALUES (20, 'HT20251228621-SP-001', 16, '2025-12-01', '2025-12-31', 31, '', 113728.00, 113728.00, NULL, 'CREATED', 6, '2025-12-28 22:53:29', '2025-12-29 00:23:06', 'admin', '');

-- ----------------------------
-- Table structure for dc_service_period_employee
-- ----------------------------
DROP TABLE IF EXISTS `dc_service_period_employee`;
CREATE TABLE `dc_service_period_employee`  (
  `assignment_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '分配ID',
  `service_period_id` bigint(20) NOT NULL COMMENT '服务周期ID',
  `employee_id` bigint(20) NOT NULL COMMENT '员工ID',
  `assigned_position` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '分配职位',
  `work_days` int(11) NULL DEFAULT 0 COMMENT '工作天数',
  `assigned_salary` decimal(10, 2) NULL DEFAULT 0.00 COMMENT '分配薪资',
  `total_cost` decimal(10, 2) NULL DEFAULT 0.00 COMMENT '总成本',
  `assignment_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT 'ASSIGNED' COMMENT '分配状态',
  `assignment_date` datetime NULL DEFAULT NULL COMMENT '分配时间',
  `assigned_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '分配人',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`assignment_id`) USING BTREE,
  UNIQUE INDEX `uk_period_employee`(`service_period_id` ASC, `employee_id` ASC) USING BTREE,
  INDEX `idx_service_period_id`(`service_period_id` ASC) USING BTREE,
  INDEX `idx_employee_id`(`employee_id` ASC) USING BTREE,
  INDEX `idx_assignment_status`(`assignment_status` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 126 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '服务周期员工分配表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dc_service_period_employee
-- ----------------------------
INSERT INTO `dc_service_period_employee` VALUES (26, 6, 12, '人力资源', 10, 80.00, 800.00, 'ASSIGNED', '2025-12-24 01:27:39', 'admin', '2025-12-24 01:27:39', NULL);
INSERT INTO `dc_service_period_employee` VALUES (27, 6, 10, '人力资源', 10, 80.00, 800.00, 'ASSIGNED', '2025-12-24 01:27:39', 'admin', '2025-12-24 01:27:39', NULL);
INSERT INTO `dc_service_period_employee` VALUES (28, 6, 1, '项目经理', 10, 80.00, 800.00, 'ASSIGNED', '2025-12-24 01:27:39', 'admin', '2025-12-24 01:27:39', NULL);
INSERT INTO `dc_service_period_employee` VALUES (29, 7, 12, '人力资源', 6, 80.00, 480.00, 'ASSIGNED', '2025-12-24 01:33:26', 'admin', '2025-12-24 01:33:26', NULL);
INSERT INTO `dc_service_period_employee` VALUES (30, 7, 10, '人力资源', 6, 80.00, 480.00, 'ASSIGNED', '2025-12-24 01:33:26', 'admin', '2025-12-24 01:33:26', NULL);
INSERT INTO `dc_service_period_employee` VALUES (31, 7, 1, '项目经理', 1, 80.00, 80.00, 'ASSIGNED', '2025-12-24 01:33:50', 'admin', '2025-12-24 01:33:50', NULL);
INSERT INTO `dc_service_period_employee` VALUES (32, 9, 10, '人力资源', 5, 80.00, 400.00, 'ASSIGNED', '2025-12-24 01:36:10', 'admin', '2025-12-24 01:36:10', NULL);
INSERT INTO `dc_service_period_employee` VALUES (33, 9, 1, '项目经理', 5, 80.00, 400.00, 'ASSIGNED', '2025-12-24 01:36:10', 'admin', '2025-12-24 01:36:10', NULL);
INSERT INTO `dc_service_period_employee` VALUES (34, 10, 12, '人力资源', 100, 80.00, 8000.00, 'ASSIGNED', '2025-12-24 23:43:52', 'admin', '2025-12-24 23:43:52', NULL);
INSERT INTO `dc_service_period_employee` VALUES (35, 10, 10, '人力资源', 100, 80.00, 8000.00, 'ASSIGNED', '2025-12-24 23:43:52', 'admin', '2025-12-24 23:43:52', NULL);
INSERT INTO `dc_service_period_employee` VALUES (36, 10, 1, '项目经理', 100, 80.00, 8000.00, 'ASSIGNED', '2025-12-24 23:43:52', 'admin', '2025-12-24 23:43:52', NULL);
INSERT INTO `dc_service_period_employee` VALUES (37, 11, 12, '人力资源', 365, 80.00, 29200.00, 'ASSIGNED', '2025-12-25 00:42:19', 'admin', '2025-12-25 00:42:19', NULL);
INSERT INTO `dc_service_period_employee` VALUES (38, 11, 10, '人力资源', 365, 80.00, 29200.00, 'ASSIGNED', '2025-12-25 00:42:19', 'admin', '2025-12-25 00:42:19', NULL);
INSERT INTO `dc_service_period_employee` VALUES (39, 11, 1, '项目经理', 365, 80.00, 29200.00, 'ASSIGNED', '2025-12-25 00:42:19', 'admin', '2025-12-25 00:42:19', NULL);
INSERT INTO `dc_service_period_employee` VALUES (40, 12, 15, '普通员工', 6, 8220.00, 49320.00, 'ASSIGNED', '2025-12-25 16:27:23', 'admin', '2025-12-25 16:27:23', NULL);
INSERT INTO `dc_service_period_employee` VALUES (41, 13, 15, '普通员工', 30, 8220.00, 246600.00, 'ASSIGNED', '2025-12-25 20:06:46', 'admin', '2025-12-25 20:06:46', NULL);
INSERT INTO `dc_service_period_employee` VALUES (42, 13, 12, '人力资源', 30, 80.00, 2400.00, 'ASSIGNED', '2025-12-25 20:06:46', 'admin', '2025-12-25 20:06:46', NULL);
INSERT INTO `dc_service_period_employee` VALUES (43, 13, 10, '人力资源', 30, 80.00, 2400.00, 'ASSIGNED', '2025-12-25 20:06:46', 'admin', '2025-12-25 20:06:46', NULL);
INSERT INTO `dc_service_period_employee` VALUES (44, 13, 1, '项目经理', 30, 80.00, 2400.00, 'ASSIGNED', '2025-12-25 20:06:46', 'admin', '2025-12-25 20:06:46', NULL);
INSERT INTO `dc_service_period_employee` VALUES (45, 14, 15, '普通员工', 80, 8220.00, 657600.00, 'ASSIGNED', '2025-12-25 23:08:03', 'admin', '2025-12-25 23:08:03', NULL);
INSERT INTO `dc_service_period_employee` VALUES (46, 14, 12, '人力资源', 80, 80.00, 6400.00, 'ASSIGNED', '2025-12-25 23:08:03', 'admin', '2025-12-25 23:08:03', NULL);
INSERT INTO `dc_service_period_employee` VALUES (47, 14, 10, '人力资源', 80, 80.00, 6400.00, 'ASSIGNED', '2025-12-25 23:08:03', 'admin', '2025-12-25 23:08:03', NULL);
INSERT INTO `dc_service_period_employee` VALUES (48, 14, 1, '项目经理', 80, 80.00, 6400.00, 'ASSIGNED', '2025-12-25 23:08:03', 'admin', '2025-12-25 23:08:03', NULL);
INSERT INTO `dc_service_period_employee` VALUES (49, 15, 15, '普通员工', 30, 8220.00, 246600.00, 'ASSIGNED', '2025-12-26 00:07:22', 'admin', '2025-12-26 00:07:22', NULL);
INSERT INTO `dc_service_period_employee` VALUES (50, 15, 12, '人力资源', 30, 80.00, 2400.00, 'ASSIGNED', '2025-12-26 00:07:22', 'admin', '2025-12-26 00:07:22', NULL);
INSERT INTO `dc_service_period_employee` VALUES (51, 15, 10, '人力资源', 30, 80.00, 2400.00, 'ASSIGNED', '2025-12-26 00:07:22', 'admin', '2025-12-26 00:07:22', NULL);
INSERT INTO `dc_service_period_employee` VALUES (52, 15, 1, '项目经理', 30, 80.00, 2400.00, 'ASSIGNED', '2025-12-26 00:07:22', 'admin', '2025-12-26 00:07:22', NULL);
INSERT INTO `dc_service_period_employee` VALUES (53, 17, 15, '普通员工', 1, 8220.00, 8220.00, 'ASSIGNED', '2025-12-26 01:17:49', 'admin', '2025-12-26 01:17:49', NULL);
INSERT INTO `dc_service_period_employee` VALUES (54, 17, 12, '人力资源', 1, 80.00, 80.00, 'ASSIGNED', '2025-12-26 01:17:49', 'admin', '2025-12-26 01:17:49', NULL);
INSERT INTO `dc_service_period_employee` VALUES (55, 17, 10, '人力资源', 1, 80.00, 80.00, 'ASSIGNED', '2025-12-26 01:17:50', 'admin', '2025-12-26 01:17:50', NULL);
INSERT INTO `dc_service_period_employee` VALUES (56, 17, 1, '项目经理', 1, 80.00, 80.00, 'ASSIGNED', '2025-12-26 01:17:50', 'admin', '2025-12-26 01:17:50', NULL);
INSERT INTO `dc_service_period_employee` VALUES (65, 18, 15, '普通员工', 10, 8220.00, 82200.00, 'ASSIGNED', '2025-12-26 01:50:02', 'admin', '2025-12-26 01:50:02', NULL);
INSERT INTO `dc_service_period_employee` VALUES (66, 18, 12, '人力资源', 10, 80.00, 800.00, 'ASSIGNED', '2025-12-26 01:50:02', 'admin', '2025-12-26 01:50:02', NULL);
INSERT INTO `dc_service_period_employee` VALUES (67, 18, 10, '人力资源', 10, 80.00, 800.00, 'ASSIGNED', '2025-12-26 01:50:02', 'admin', '2025-12-26 01:50:02', NULL);
INSERT INTO `dc_service_period_employee` VALUES (69, 19, 15, '普通员工', 10, 8220.00, 82200.00, 'ASSIGNED', '2025-12-28 22:38:56', 'admin', '2025-12-28 22:38:56', NULL);
INSERT INTO `dc_service_period_employee` VALUES (70, 19, 12, '人力资源', 10, 80.00, 800.00, 'ASSIGNED', '2025-12-28 22:38:56', 'admin', '2025-12-28 22:38:56', NULL);
INSERT INTO `dc_service_period_employee` VALUES (71, 19, 10, '人力资源', 10, 80.00, 800.00, 'ASSIGNED', '2025-12-28 22:38:56', 'admin', '2025-12-28 22:38:56', NULL);
INSERT INTO `dc_service_period_employee` VALUES (72, 19, 1, '项目经理', 10, 80.00, 800.00, 'ASSIGNED', '2025-12-28 22:38:57', 'admin', '2025-12-28 22:38:57', NULL);
INSERT INTO `dc_service_period_employee` VALUES (121, 20, 17, '董事长', 100, 160.00, 16000.00, 'ASSIGNED', '2025-12-29 00:18:20', 'admin', '2025-12-29 00:18:20', '2025-12-29 00:22:37');
INSERT INTO `dc_service_period_employee` VALUES (122, 20, 16, '董事长', 100, 363.64, 36364.00, 'ASSIGNED', '2025-12-29 00:18:20', 'admin', '2025-12-29 00:18:20', '2025-12-29 00:22:37');
INSERT INTO `dc_service_period_employee` VALUES (123, 20, 15, '普通员工', 100, 373.64, 37364.00, 'ASSIGNED', '2025-12-29 00:18:20', 'admin', '2025-12-29 00:18:20', '2025-12-29 00:22:37');
INSERT INTO `dc_service_period_employee` VALUES (124, 20, 12, '人力资源', 100, 80.00, 8000.00, 'ASSIGNED', '2025-12-29 00:18:20', 'admin', '2025-12-29 00:18:20', '2025-12-29 00:22:37');
INSERT INTO `dc_service_period_employee` VALUES (125, 20, 10, '人力资源', 100, 80.00, 8000.00, 'ASSIGNED', '2025-12-29 00:18:20', 'admin', '2025-12-29 00:18:20', '2025-12-29 00:22:36');
INSERT INTO `dc_service_period_employee` VALUES (126, 20, 1, '项目经理', 100, 80.00, 8000.00, 'ASSIGNED', '2025-12-29 00:18:20', 'admin', '2025-12-29 00:18:20', '2025-12-29 00:22:36');

-- ----------------------------
-- Table structure for dc_service_period_loan
-- ----------------------------
DROP TABLE IF EXISTS `dc_service_period_loan`;
CREATE TABLE `dc_service_period_loan`  (
  `link_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '关联ID',
  `service_period_id` bigint(20) NOT NULL COMMENT '服务周期ID',
  `loan_id` bigint(20) NULL DEFAULT NULL COMMENT '贷款ID',
  `loan_number` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '贷款编号',
  `loan_amount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '贷款金额(加密)',
  `interest_rate` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '利率(加密)',
  `loan_term_months` int(11) NULL DEFAULT NULL COMMENT '贷款期限(月)',
  `monthly_payment` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '月还款额(加密)',
  `loan_purpose` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '贷款用途',
  `loan_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT 'PENDING' COMMENT '贷款状态(PENDING:待审批,APPROVED:已批准,REJECTED:已拒绝,ACTIVE:生效中,COMPLETED:已完成,CANCELLED:已取消)',
  `loan_start_date` date NULL DEFAULT NULL COMMENT '贷款开始日期',
  `loan_end_date` date NULL DEFAULT NULL COMMENT '贷款结束日期',
  `bank_institution_id` bigint(20) NULL DEFAULT NULL COMMENT '银行机构ID',
  `bank_institution_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '银行机构名称',
  `contract_term_match` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '合同期限匹配度(PERFECT:完美匹配,GOOD:良好匹配,ACCEPTABLE:可接受,POOR:匹配度差)',
  `approval_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT 'PENDING' COMMENT '审批状态(PENDING:待审批,APPROVED:已批准,REJECTED:已拒绝)',
  `approval_time` datetime NULL DEFAULT NULL COMMENT '审批时间',
  `approved_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '审批人',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  `submit_comments` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '提交说明',
  `bank_selected_time` datetime NULL DEFAULT NULL COMMENT '银行选择时间',
  `bank_selection_history` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '银行选择变更历史',
  `quick_submit_enabled` tinyint(1) NULL DEFAULT 1 COMMENT '是否可一键提交',
  PRIMARY KEY (`link_id`) USING BTREE,
  UNIQUE INDEX `uk_loan_number`(`loan_number` ASC) USING BTREE,
  INDEX `idx_service_period_id`(`service_period_id` ASC) USING BTREE,
  INDEX `idx_loan_status`(`loan_status` ASC) USING BTREE,
  INDEX `idx_bank_institution_id`(`bank_institution_id` ASC) USING BTREE,
  INDEX `idx_approval_status`(`approval_status` ASC) USING BTREE,
  INDEX `idx_loan_date_range`(`loan_start_date` ASC, `loan_end_date` ASC) USING BTREE,
  INDEX `idx_bank_selected_time`(`bank_selected_time` ASC) USING BTREE,
  INDEX `idx_quick_submit_enabled`(`quick_submit_enabled` ASC) USING BTREE,
  CONSTRAINT `fk_service_period_loan_bank_institution` FOREIGN KEY (`bank_institution_id`) REFERENCES `dc_bank_institution` (`bank_id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `fk_service_period_loan_service_period` FOREIGN KEY (`service_period_id`) REFERENCES `dc_service_period` (`service_period_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 17 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '服务周期贷款关联表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dc_service_period_loan
-- ----------------------------
INSERT INTO `dc_service_period_loan` VALUES (4, 6, NULL, 'HT20251221659-SP-001-LOAN-001', '2400', '0.065', 24, '106.91', '服务周期人工成本融资', 'PENDING', '2025-12-24', '2027-12-24', 2, '建设银行', 'PERFECT', 'PENDING', NULL, NULL, '', '2025-12-24 20:33:50', '', '2025-12-25 16:21:50', NULL, '系统迁移：历史贷款申请', '2025-12-24 20:33:50', '{\"changes\":[{\"timestamp\":\"2025-12-24\",\"action\":\"INITIAL_SELECTION\",\"operator\":\"SYSTEM_MIGRATION\"}]}', 1);
INSERT INTO `dc_service_period_loan` VALUES (6, 9, NULL, 'HT20251222393-SP-001-LOAN-001', '800', '0.052', 12, '68.56', '服务周期人工成本融资', 'PENDING', '2025-12-24', '2026-12-24', 4, '中国银行', 'PERFECT', 'PENDING', NULL, NULL, '', '2025-12-24 20:59:18', '', '2025-12-24 21:25:45', NULL, '系统迁移：历史贷款申请', '2025-12-24 20:59:18', '{\"changes\":[{\"timestamp\":\"2025-12-24\",\"action\":\"INITIAL_SELECTION\",\"operator\":\"SYSTEM_MIGRATION\"}]}', 1);
INSERT INTO `dc_service_period_loan` VALUES (8, 7, NULL, 'HT20251221651-SP-001-LOAN-001', '1040', '0.05', 12, '117.98', '服务周期人工成本融资', 'SUBMITTED', '2025-12-24', '2026-12-24', 2, '建设银行', NULL, 'SUBMITTED', '2025-12-24 23:43:01', NULL, '', '2025-12-24 23:42:45', '', '2025-12-24 23:43:01', NULL, '1516546465', '2025-12-24 23:42:45', NULL, 1);
INSERT INTO `dc_service_period_loan` VALUES (9, 10, NULL, 'HT20251221011-SP-001-LOAN-001', '24000', '0.05', 12, '2722.53', '服务周期人工成本融资', 'SUBMITTED', '2025-12-24', '2026-12-24', 2, '建设银行', NULL, 'SUBMITTED', '2025-12-24 23:44:09', NULL, '', '2025-12-24 23:44:05', '', '2025-12-24 23:44:09', NULL, '77777777777', '2025-12-24 23:44:05', NULL, 1);
INSERT INTO `dc_service_period_loan` VALUES (10, 11, NULL, 'HT20251222393-SP-002-LOAN-001', '105120', '0.065', 24, '4682.7', '服务周期人工成本融资', 'SUBMITTED', '2025-12-25', '2027-12-25', 2, '建设银行', NULL, 'SUBMITTED', '2025-12-25 00:42:59', NULL, '', '2025-12-25 00:42:51', '', '2025-12-25 00:42:59', NULL, '11111111111111', '2025-12-25 00:42:51', NULL, 1);
INSERT INTO `dc_service_period_loan` VALUES (11, 12, NULL, 'HT20251225238-SP-001-LOAN-001', '49320', '0.05', 12, '5594.8', '服务周期人工成本融资', 'SUBMITTED', '2025-12-25', '2026-12-25', 2, '建设银行', NULL, 'SUBMITTED', '2025-12-25 16:28:25', NULL, '', '2025-12-25 16:28:16', '', '2025-12-25 16:28:25', NULL, '测试员工发工资，每月还款', '2025-12-25 16:28:16', NULL, 1);
INSERT INTO `dc_service_period_loan` VALUES (13, 13, NULL, 'HT20251222393-SP-003-LOAN-001', '253800', '0.052', 12, '21750.45', '服务周期人工成本融资', 'SUBMITTED', '2025-12-25', '2026-12-25', 4, '中国银行', NULL, 'SUBMITTED', '2025-12-25 20:07:56', NULL, '', '2025-12-25 20:07:36', '', '2025-12-25 20:07:56', NULL, '111111111111', '2025-12-25 20:07:36', NULL, 1);
INSERT INTO `dc_service_period_loan` VALUES (14, 14, NULL, 'HT20251222393-SP-004-LOAN-001', '676800', '0.05', 9, '76775.35', '服务周期人工成本融资', 'SUBMITTED', '2025-12-25', '2026-09-25', 2, '中国建设银行', NULL, 'SUBMITTED', '2025-12-25 23:10:11', NULL, '', '2025-12-25 23:10:07', '', '2025-12-25 23:10:11', NULL, '11111111111111111', '2025-12-25 23:10:07', NULL, 1);
INSERT INTO `dc_service_period_loan` VALUES (15, 15, NULL, 'HT20251221923-SP-001-LOAN-001', '253800', '0.052', 12, '21750.45', '服务周期人工成本融资', 'SUBMITTED', '2025-12-26', '2026-12-26', 4, '中国银行', NULL, 'SUBMITTED', '2025-12-26 00:07:42', NULL, '', '2025-12-26 00:07:38', '', '2025-12-26 00:07:42', NULL, '1231231231', '2025-12-26 00:07:38', NULL, 1);
INSERT INTO `dc_service_period_loan` VALUES (16, 19, NULL, 'HT20251222393-SP-005-LOAN-001', '84600', '0.052', 12, '7250.15', '服务周期人工成本融资', 'SUBMITTED', '2025-12-28', '2026-12-28', 4, '中国银行', NULL, 'SUBMITTED', '2025-12-28 22:39:12', NULL, '', '2025-12-28 22:39:05', '', '2025-12-28 22:39:12', NULL, '1111111111111111111111111111111111', '2025-12-28 22:39:05', NULL, 1);
INSERT INTO `dc_service_period_loan` VALUES (17, 20, NULL, 'HT20251228621-SP-001-LOAN-001', '2400', '0.055', 12, '206.01', '服务周期人工成本融资', 'SUBMITTED', '2025-12-28', '2026-12-28', 6, '中国工商银行', NULL, 'SUBMITTED', '2025-12-28 22:55:20', NULL, '', '2025-12-28 22:54:50', '', '2025-12-28 22:55:20', NULL, '214124142141', '2025-12-28 22:54:50', NULL, 1);

-- ----------------------------
-- Table structure for dc_smart_contract
-- ----------------------------
DROP TABLE IF EXISTS `dc_smart_contract`;
CREATE TABLE `dc_smart_contract`  (
  `contract_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '合约ID',
  `contract_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '合约名称',
  `contract_address` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '合约地址',
  `contract_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '合约类型(CREDIT_TOKEN:债权代币,ESCROW:监管合约,PAYMENT:支付合约)',
  `contract_version` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '合约版本',
  `contract_abi` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '合约ABI',
  `contract_bytecode` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '合约字节码',
  `deploy_tx_hash` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '部署交易哈希',
  `deploy_block_number` bigint(20) NULL DEFAULT NULL COMMENT '部署区块号',
  `contract_status` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT 'ACTIVE' COMMENT '合约状态(ACTIVE:活跃,PAUSED:暂停,DEPRECATED:废弃)',
  `owner_address` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '合约所有者地址',
  `network_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '网络ID',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`contract_id`) USING BTREE,
  UNIQUE INDEX `uk_contract_address`(`contract_address` ASC) USING BTREE,
  INDEX `idx_contract_type`(`contract_type` ASC) USING BTREE,
  INDEX `idx_contract_status`(`contract_status` ASC) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '智能合约管理表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dc_smart_contract
-- ----------------------------

-- ----------------------------
-- Table structure for dc_system_config
-- ----------------------------
DROP TABLE IF EXISTS `dc_system_config`;
CREATE TABLE `dc_system_config`  (
  `config_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '配置ID',
  `config_key` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '配置键',
  `config_value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '配置值',
  `config_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '配置类型(BLOCKCHAIN:区块链,PAYMENT:支付,NOTIFICATION:通知,SECURITY:安全)',
  `config_category` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '配置分类',
  `config_description` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '配置描述',
  `is_encrypted` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT 'N' COMMENT '是否加密(Y:是,N:否)',
  `is_system` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT 'N' COMMENT '是否系统配置(Y:是,N:否)',
  `config_status` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT 'ACTIVE' COMMENT '配置状态(ACTIVE:启用,INACTIVE:禁用)',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`config_id`) USING BTREE,
  UNIQUE INDEX `uk_config_key`(`config_key` ASC) USING BTREE,
  INDEX `idx_config_type`(`config_type` ASC) USING BTREE,
  INDEX `idx_config_category`(`config_category` ASC) USING BTREE,
  INDEX `idx_config_status`(`config_status` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 12 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '系统配置表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dc_system_config
-- ----------------------------
INSERT INTO `dc_system_config` VALUES (1, 'blockchain.network.mainnet.rpc_url', 'https://mainnet.infura.io/v3/your-project-id', 'BLOCKCHAIN', 'NETWORK', '主网RPC地址', 'Y', 'Y', 'ACTIVE', 'admin', '2025-12-20 17:12:11', '', NULL, '区块链主网连接配置');
INSERT INTO `dc_system_config` VALUES (2, 'blockchain.network.testnet.rpc_url', 'https://goerli.infura.io/v3/your-project-id', 'BLOCKCHAIN', 'NETWORK', '测试网RPC地址', 'Y', 'Y', 'ACTIVE', 'admin', '2025-12-20 17:12:11', '', NULL, '区块链测试网连接配置');
INSERT INTO `dc_system_config` VALUES (3, 'blockchain.gas.default_price', '20000000000', 'BLOCKCHAIN', 'GAS', '默认Gas价格(wei)', 'N', 'Y', 'ACTIVE', 'admin', '2025-12-20 17:12:11', '', NULL, '默认Gas价格配置');
INSERT INTO `dc_system_config` VALUES (4, 'blockchain.gas.default_limit', '300000', 'BLOCKCHAIN', 'GAS', '默认Gas限制', 'N', 'Y', 'ACTIVE', 'admin', '2025-12-20 17:12:11', '', NULL, '默认Gas限制配置');
INSERT INTO `dc_system_config` VALUES (5, 'payment.escrow.default_fee_rate', '0.001', 'PAYMENT', 'ESCROW', '监管账户默认费率', 'N', 'Y', 'ACTIVE', 'admin', '2025-12-20 17:12:11', '', NULL, '监管账户默认费率配置');
INSERT INTO `dc_system_config` VALUES (6, 'payment.transfer.min_amount', '1.00', 'PAYMENT', 'TRANSFER', '最小转账金额', 'N', 'Y', 'ACTIVE', 'admin', '2025-12-20 17:12:11', '', NULL, '最小转账金额限制');
INSERT INTO `dc_system_config` VALUES (7, 'payment.transfer.max_amount', '1000000.00', 'PAYMENT', 'TRANSFER', '最大转账金额', 'N', 'Y', 'ACTIVE', 'admin', '2025-12-20 17:12:11', '', NULL, '最大转账金额限制');
INSERT INTO `dc_system_config` VALUES (8, 'notification.email.smtp_host', 'smtp.example.com', 'NOTIFICATION', 'EMAIL', 'SMTP服务器地址', 'N', 'Y', 'ACTIVE', 'admin', '2025-12-20 17:12:11', '', NULL, '邮件SMTP服务器配置');
INSERT INTO `dc_system_config` VALUES (9, 'notification.email.smtp_port', '587', 'NOTIFICATION', 'EMAIL', 'SMTP服务器端口', 'N', 'Y', 'ACTIVE', 'admin', '2025-12-20 17:12:11', '', NULL, '邮件SMTP端口配置');
INSERT INTO `dc_system_config` VALUES (10, 'notification.sms.api_url', 'https://api.sms.example.com', 'NOTIFICATION', 'SMS', '短信API地址', 'Y', 'Y', 'ACTIVE', 'admin', '2025-12-20 17:12:11', '', NULL, '短信服务API配置');
INSERT INTO `dc_system_config` VALUES (11, 'security.mfa.token_expire_minutes', '5', 'SECURITY', 'MFA', 'MFA令牌过期时间(分钟)', 'N', 'Y', 'ACTIVE', 'admin', '2025-12-20 17:12:11', '', NULL, 'MFA令牌有效期配置');
INSERT INTO `dc_system_config` VALUES (12, 'security.audit.log_retention_days', '365', 'SECURITY', 'AUDIT', '审计日志保留天数', 'N', 'Y', 'ACTIVE', 'admin', '2025-12-20 17:12:11', '', NULL, '审计日志保留期配置');

-- ----------------------------
-- Table structure for dc_validation_log
-- ----------------------------
DROP TABLE IF EXISTS `dc_validation_log`;
CREATE TABLE `dc_validation_log`  (
  `log_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '日志ID',
  `validation_id` bigint(20) NULL DEFAULT NULL COMMENT '验证记录ID',
  `loan_id` bigint(20) NOT NULL COMMENT '贷款ID',
  `log_level` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '日志级别',
  `log_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '日志类型',
  `log_message` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '日志消息',
  `log_details` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '详细信息',
  `execution_step` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '执行步骤',
  `execution_duration` bigint(20) NULL DEFAULT NULL COMMENT '执行时长(毫秒)',
  `exception_info` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '异常信息',
  `log_time` datetime NOT NULL COMMENT '日志时间',
  `operator_user` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '操作用户',
  `client_ip` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '客户端IP',
  `user_agent` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '用户代理',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`log_id`) USING BTREE,
  INDEX `idx_validation_id`(`validation_id` ASC) USING BTREE,
  INDEX `idx_loan_id`(`loan_id` ASC) USING BTREE,
  INDEX `idx_log_level`(`log_level` ASC) USING BTREE,
  INDEX `idx_log_type`(`log_type` ASC) USING BTREE,
  INDEX `idx_log_time`(`log_time` ASC) USING BTREE,
  INDEX `idx_execution_step`(`execution_step` ASC) USING BTREE,
  INDEX `idx_operator_user`(`operator_user` ASC) USING BTREE,
  INDEX `idx_create_time`(`create_time` ASC) USING BTREE,
  INDEX `idx_loan_log_time`(`loan_id` ASC, `log_time` ASC) USING BTREE,
  INDEX `idx_validation_log_time`(`validation_id` ASC, `log_time` ASC) USING BTREE,
  INDEX `idx_level_type_time`(`log_level` ASC, `log_type` ASC, `log_time` ASC) USING BTREE,
  INDEX `idx_execution_duration`(`execution_duration` ASC) USING BTREE,
  INDEX `idx_log_time_level`(`log_time` ASC, `log_level` ASC) USING BTREE,
  INDEX `idx_log_time_type`(`log_time` ASC, `log_type` ASC) USING BTREE,
  INDEX `idx_operator_time`(`operator_user` ASC, `log_time` ASC) USING BTREE,
  INDEX `idx_exception_logs`(`exception_info`(100) ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 11 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '验证日志表 - 记录贷款一致性验证过程的详细日志信息，支持结构化存储和高效查询' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of dc_validation_log
-- ----------------------------
INSERT INTO `dc_validation_log` VALUES (1, 1, 1001, 'INFO', 'VALIDATION_START', '开始验证贷款一致性', '贷款ID: 1001, 验证记录ID: 1', 'START', NULL, NULL, '2025-12-31 17:20:00', 'system', '127.0.0.1', NULL, '2025-12-31 17:20:00', '2025-12-31 17:20:00');
INSERT INTO `dc_validation_log` VALUES (2, 1, 1001, 'DEBUG', 'VALIDATION_STEP', '检查债权凭证存在性', '债权凭证ID: 2001, 状态: 存在', 'CHECK_CREDIT', 150, NULL, '2025-12-31 17:20:00', 'system', '127.0.0.1', NULL, '2025-12-31 17:20:00', '2025-12-31 17:20:00');
INSERT INTO `dc_validation_log` VALUES (3, 1, 1001, 'DEBUG', 'VALIDATION_STEP', '检查服务周期关联性', '服务周期ID: 3001, 关联状态: 匹配', 'CHECK_SERVICE_PERIOD', 200, NULL, '2025-12-31 17:20:00', 'system', '127.0.0.1', NULL, '2025-12-31 17:20:00', '2025-12-31 17:20:00');
INSERT INTO `dc_validation_log` VALUES (4, 1, 1001, 'INFO', 'VALIDATION_SUCCESS', '验证通过', '所有验证规则均通过', 'SUCCESS', 500, NULL, '2025-12-31 17:20:00', 'system', '127.0.0.1', NULL, '2025-12-31 17:20:00', '2025-12-31 17:20:00');
INSERT INTO `dc_validation_log` VALUES (5, 2, 1002, 'INFO', 'VALIDATION_START', '开始验证贷款一致性', '贷款ID: 1002, 验证记录ID: 2', 'START', NULL, NULL, '2025-12-31 17:20:00', 'system', '127.0.0.1', NULL, '2025-12-31 17:20:00', '2025-12-31 17:20:00');
INSERT INTO `dc_validation_log` VALUES (6, 2, 1002, 'DEBUG', 'VALIDATION_STEP', '检查债权凭证存在性', '债权凭证ID: 2002, 状态: 不存在', 'CHECK_CREDIT', 100, NULL, '2025-12-31 17:20:00', 'system', '127.0.0.1', NULL, '2025-12-31 17:20:00', '2025-12-31 17:20:00');
INSERT INTO `dc_validation_log` VALUES (7, 2, 1002, 'WARN', 'VALIDATION_FAILURE', '验证失败', '失败原因: 债权凭证不存在', 'FAILURE', 300, NULL, '2025-12-31 17:20:00', 'system', '127.0.0.1', NULL, '2025-12-31 17:20:00', '2025-12-31 17:20:00');
INSERT INTO `dc_validation_log` VALUES (8, NULL, 1003, 'DEBUG', 'CACHE_OPERATION', '缓存验证结果', '操作类型: SET, 缓存键: validation:1003', 'CACHE_SET', 50, NULL, '2025-12-31 17:20:00', 'system', '127.0.0.1', NULL, '2025-12-31 17:20:00', '2025-12-31 17:20:00');
INSERT INTO `dc_validation_log` VALUES (9, 3, 1004, 'WARN', 'PERFORMANCE_WARNING', '性能警告: 验证执行时间超过阈值', '执行时长: 2500ms, 阈值: 2000ms', 'PERFORMANCE_WARNING', 2500, NULL, '2025-12-31 17:20:00', 'system', '127.0.0.1', NULL, '2025-12-31 17:20:00', '2025-12-31 17:20:00');
INSERT INTO `dc_validation_log` VALUES (10, 4, 1005, 'INFO', 'NOTIFICATION_SENT', '发送验证失败通知', '通知类型: EMAIL, 结果: 成功', 'NOTIFICATION', 300, NULL, '2025-12-31 17:20:00', 'system', '127.0.0.1', NULL, '2025-12-31 17:20:00', '2025-12-31 17:20:00');

-- ----------------------------
-- Table structure for dc_validation_rule
-- ----------------------------
DROP TABLE IF EXISTS `dc_validation_rule`;
CREATE TABLE `dc_validation_rule`  (
  `rule_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '规则ID',
  `rule_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '规则名称',
  `rule_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '规则类型',
  `rule_expression` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '规则表达式',
  `priority` int(11) NOT NULL COMMENT '优先级',
  `rule_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '规则状态(ACTIVE/INACTIVE/DRAFT/DEPRECATED)',
  `description` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '规则描述',
  `config_json` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '规则配置JSON',
  `created_by` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '创建人',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`rule_id`) USING BTREE,
  UNIQUE INDEX `uk_rule_name`(`rule_name` ASC) USING BTREE,
  INDEX `idx_rule_type`(`rule_type` ASC) USING BTREE,
  INDEX `idx_rule_status`(`rule_status` ASC) USING BTREE,
  INDEX `idx_priority`(`priority` ASC) USING BTREE,
  INDEX `idx_create_time`(`create_time` ASC) USING BTREE,
  INDEX `idx_type_status_priority`(`rule_type` ASC, `rule_status` ASC, `priority` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '验证规则配置表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of dc_validation_rule
-- ----------------------------
INSERT INTO `dc_validation_rule` VALUES (1, '债权凭证存在性验证', 'CREDIT_EXISTENCE', 'credit.creditId IS NOT NULL AND credit.creditStatus = \'ACTIVE\'', 1, 'ACTIVE', '验证债权凭证是否存在且状态为有效', '{\"timeout\": 5000, \"retryCount\": 3}', 'system', '2025-12-30 17:02:34', '2025-12-30 17:02:34');
INSERT INTO `dc_validation_rule` VALUES (2, '债权凭证有效性验证', 'CREDIT_VALIDITY', 'credit.maturityDate >= CURRENT_DATE AND credit.blockchainHash IS NOT NULL', 2, 'ACTIVE', '验证债权凭证是否在有效期内且具有区块链哈希', '{\"timeout\": 5000, \"retryCount\": 3}', 'system', '2025-12-30 17:02:34', '2025-12-30 17:02:34');
INSERT INTO `dc_validation_rule` VALUES (3, '合同匹配验证', 'CONTRACT_MATCH', 'credit.contractId = servicePeriod.contractId', 3, 'ACTIVE', '验证债权凭证关联的合同ID与服务周期的合同ID是否匹配', '{\"timeout\": 3000, \"retryCount\": 2}', 'system', '2025-12-30 17:02:34', '2025-12-30 17:02:34');
INSERT INTO `dc_validation_rule` VALUES (4, '金额一致性验证', 'AMOUNT_CONSISTENCY', 'ABS(credit.creditAmount - loan.loanAmount) <= 0.01', 4, 'ACTIVE', '验证债权金额与贷款金额是否一致(允许0.01的误差)', '{\"tolerance\": 0.01, \"timeout\": 3000}', 'system', '2025-12-30 17:02:34', '2025-12-30 17:02:34');
INSERT INTO `dc_validation_rule` VALUES (5, '日期一致性验证', 'DATE_CONSISTENCY', 'loan.loanStartDate >= servicePeriod.startDate AND loan.loanEndDate <= servicePeriod.endDate', 5, 'ACTIVE', '验证贷款日期是否在服务周期范围内', '{\"timeout\": 2000}', 'system', '2025-12-30 17:02:34', '2025-12-30 17:02:34');

-- ----------------------------
-- Table structure for dc_validation_statistics
-- ----------------------------
DROP TABLE IF EXISTS `dc_validation_statistics`;
CREATE TABLE `dc_validation_statistics`  (
  `statistics_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '统计ID',
  `statistics_date` date NOT NULL COMMENT '统计日期',
  `total_validations` int(11) NOT NULL DEFAULT 0 COMMENT '总验证次数',
  `passed_validations` int(11) NOT NULL DEFAULT 0 COMMENT '通过验证次数',
  `failed_validations` int(11) NOT NULL DEFAULT 0 COMMENT '失败验证次数',
  `pass_rate` decimal(5, 4) NULL DEFAULT NULL COMMENT '通过率',
  `avg_validation_time` bigint(20) NULL DEFAULT NULL COMMENT '平均验证时间(毫秒)',
  `cache_hit_rate` int(3) NULL DEFAULT NULL COMMENT '缓存命中率',
  `top_failure_reason` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '主要失败原因',
  `error_validations` int(11) NOT NULL DEFAULT 0 COMMENT '验证错误次数',
  `timeout_validations` int(11) NOT NULL DEFAULT 0 COMMENT '验证超时次数',
  `max_validation_time` bigint(20) NULL DEFAULT NULL COMMENT '最大验证时间(毫秒)',
  `min_validation_time` bigint(20) NULL DEFAULT NULL COMMENT '最小验证时间(毫秒)',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`statistics_id`) USING BTREE,
  UNIQUE INDEX `uk_statistics_date`(`statistics_date` ASC) USING BTREE,
  INDEX `idx_create_time`(`create_time` ASC) USING BTREE,
  INDEX `idx_date_range`(`statistics_date` ASC, `total_validations` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '验证统计信息表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of dc_validation_statistics
-- ----------------------------

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

-- ----------------------------
-- Records of gen_table
-- ----------------------------

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

-- ----------------------------
-- Records of gen_table_column
-- ----------------------------

-- ----------------------------
-- Table structure for qrtz_blob_triggers
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_blob_triggers`;
CREATE TABLE `qrtz_blob_triggers`  (
  `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '调度名称',
  `trigger_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'qrtz_triggers表trigger_name的外键',
  `trigger_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
  `blob_data` blob NULL COMMENT '存放持久化Trigger对象',
  PRIMARY KEY (`sched_name`, `trigger_name`, `trigger_group`) USING BTREE,
  CONSTRAINT `qrtz_blob_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = 'Blob类型的触发器表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of qrtz_blob_triggers
-- ----------------------------

-- ----------------------------
-- Table structure for qrtz_calendars
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_calendars`;
CREATE TABLE `qrtz_calendars`  (
  `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '调度名称',
  `calendar_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '日历名称',
  `calendar` blob NOT NULL COMMENT '存放持久化calendar对象',
  PRIMARY KEY (`sched_name`, `calendar_name`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '日历信息表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of qrtz_calendars
-- ----------------------------

-- ----------------------------
-- Table structure for qrtz_cron_triggers
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_cron_triggers`;
CREATE TABLE `qrtz_cron_triggers`  (
  `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '调度名称',
  `trigger_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'qrtz_triggers表trigger_name的外键',
  `trigger_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
  `cron_expression` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'cron表达式',
  `time_zone_id` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '时区',
  PRIMARY KEY (`sched_name`, `trigger_name`, `trigger_group`) USING BTREE,
  CONSTRAINT `qrtz_cron_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = 'Cron类型的触发器表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of qrtz_cron_triggers
-- ----------------------------

-- ----------------------------
-- Table structure for qrtz_fired_triggers
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_fired_triggers`;
CREATE TABLE `qrtz_fired_triggers`  (
  `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '调度名称',
  `entry_id` varchar(95) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '调度器实例id',
  `trigger_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'qrtz_triggers表trigger_name的外键',
  `trigger_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
  `instance_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '调度器实例名',
  `fired_time` bigint(13) NOT NULL COMMENT '触发的时间',
  `sched_time` bigint(13) NOT NULL COMMENT '定时器制定的时间',
  `priority` int(11) NOT NULL COMMENT '优先级',
  `state` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '状态',
  `job_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '任务名称',
  `job_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '任务组名',
  `is_nonconcurrent` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '是否并发',
  `requests_recovery` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '是否接受恢复执行',
  PRIMARY KEY (`sched_name`, `entry_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '已触发的触发器表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of qrtz_fired_triggers
-- ----------------------------

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

-- ----------------------------
-- Records of qrtz_job_details
-- ----------------------------

-- ----------------------------
-- Table structure for qrtz_locks
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_locks`;
CREATE TABLE `qrtz_locks`  (
  `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '调度名称',
  `lock_name` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '悲观锁名称',
  PRIMARY KEY (`sched_name`, `lock_name`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '存储的悲观锁信息表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of qrtz_locks
-- ----------------------------

-- ----------------------------
-- Table structure for qrtz_paused_trigger_grps
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_paused_trigger_grps`;
CREATE TABLE `qrtz_paused_trigger_grps`  (
  `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '调度名称',
  `trigger_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
  PRIMARY KEY (`sched_name`, `trigger_group`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '暂停的触发器表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of qrtz_paused_trigger_grps
-- ----------------------------

-- ----------------------------
-- Table structure for qrtz_scheduler_state
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_scheduler_state`;
CREATE TABLE `qrtz_scheduler_state`  (
  `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '调度名称',
  `instance_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '实例名称',
  `last_checkin_time` bigint(13) NOT NULL COMMENT '上次检查时间',
  `checkin_interval` bigint(13) NOT NULL COMMENT '检查间隔时间',
  PRIMARY KEY (`sched_name`, `instance_name`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '调度器状态表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of qrtz_scheduler_state
-- ----------------------------

-- ----------------------------
-- Table structure for qrtz_simple_triggers
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_simple_triggers`;
CREATE TABLE `qrtz_simple_triggers`  (
  `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '调度名称',
  `trigger_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'qrtz_triggers表trigger_name的外键',
  `trigger_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
  `repeat_count` bigint(7) NOT NULL COMMENT '重复的次数统计',
  `repeat_interval` bigint(12) NOT NULL COMMENT '重复的间隔时间',
  `times_triggered` bigint(10) NOT NULL COMMENT '已经触发的次数',
  PRIMARY KEY (`sched_name`, `trigger_name`, `trigger_group`) USING BTREE,
  CONSTRAINT `qrtz_simple_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '简单触发器的信息表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of qrtz_simple_triggers
-- ----------------------------

-- ----------------------------
-- Table structure for qrtz_simprop_triggers
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_simprop_triggers`;
CREATE TABLE `qrtz_simprop_triggers`  (
  `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '调度名称',
  `trigger_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'qrtz_triggers表trigger_name的外键',
  `trigger_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
  `str_prop_1` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'String类型的trigger的第一个参数',
  `str_prop_2` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'String类型的trigger的第二个参数',
  `str_prop_3` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'String类型的trigger的第三个参数',
  `int_prop_1` int(11) NULL DEFAULT NULL COMMENT 'int类型的trigger的第一个参数',
  `int_prop_2` int(11) NULL DEFAULT NULL COMMENT 'int类型的trigger的第二个参数',
  `long_prop_1` bigint(20) NULL DEFAULT NULL COMMENT 'long类型的trigger的第一个参数',
  `long_prop_2` bigint(20) NULL DEFAULT NULL COMMENT 'long类型的trigger的第二个参数',
  `dec_prop_1` decimal(13, 4) NULL DEFAULT NULL COMMENT 'decimal类型的trigger的第一个参数',
  `dec_prop_2` decimal(13, 4) NULL DEFAULT NULL COMMENT 'decimal类型的trigger的第二个参数',
  `bool_prop_1` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'Boolean类型的trigger的第一个参数',
  `bool_prop_2` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'Boolean类型的trigger的第二个参数',
  PRIMARY KEY (`sched_name`, `trigger_name`, `trigger_group`) USING BTREE,
  CONSTRAINT `qrtz_simprop_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '同步机制的行锁表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of qrtz_simprop_triggers
-- ----------------------------

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

-- ----------------------------
-- Records of qrtz_triggers
-- ----------------------------

-- ----------------------------
-- Table structure for sys_config
-- ----------------------------
DROP TABLE IF EXISTS `sys_config`;
CREATE TABLE `sys_config`  (
  `config_id` int(5) NOT NULL AUTO_INCREMENT COMMENT '参数主键',
  `config_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '参数名称',
  `config_key` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '参数键名',
  `config_value` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '参数键值',
  `config_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT 'N' COMMENT '系统内置（Y是 N否）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`config_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 16 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '参数配置表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_config
-- ----------------------------
INSERT INTO `sys_config` VALUES (1, '主框架页-默认皮肤样式名称', 'sys.index.skinName', 'skin-blue', 'Y', 'admin', '2025-12-16 21:48:01', '', NULL, '蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow');
INSERT INTO `sys_config` VALUES (2, '用户管理-账号初始密码', 'sys.user.initPassword', '123456', 'Y', 'admin', '2025-12-16 21:48:01', '', NULL, '初始化密码 123456');
INSERT INTO `sys_config` VALUES (3, '主框架页-侧边栏主题', 'sys.index.sideTheme', 'theme-dark', 'Y', 'admin', '2025-12-16 21:48:01', '', NULL, '深色主题theme-dark，浅色主题theme-light');
INSERT INTO `sys_config` VALUES (4, '账号自助-验证码开关', 'sys.account.captchaEnabled', 'false', 'N', 'admin', '2025-12-16 21:48:01', '', NULL, '是否开启验证码功能（true开启，false关闭）');
INSERT INTO `sys_config` VALUES (5, '账号自助-是否开启用户注册功能', 'sys.account.registerUser', 'false', 'Y', 'admin', '2025-12-16 21:48:01', '', NULL, '是否开启注册用户功能（true开启，false关闭）');
INSERT INTO `sys_config` VALUES (6, '用户登录-黑名单列表', 'sys.login.blackIPList', '', 'Y', 'admin', '2025-12-16 21:48:01', '', NULL, '设置登录IP黑名单限制，多个匹配项以;分隔，支持匹配（*通配、网段）');
INSERT INTO `sys_config` VALUES (7, '用户管理-初始密码修改策略', 'sys.account.initPasswordModify', '1', 'Y', 'admin', '2025-12-16 21:48:01', '', NULL, '0：初始密码修改策略关闭，没有任何提示，1：提醒用户，如果未修改初始密码，则在登录时就会提醒修改密码对话框');
INSERT INTO `sys_config` VALUES (8, '用户管理-账号密码更新周期', 'sys.account.passwordValidateDays', '0', 'Y', 'admin', '2025-12-16 21:48:01', '', NULL, '密码更新周期（填写数字，数据初始化值为0不限制，若修改必须为大于0小于365的正整数），如果超过这个周期登录系统时，则在登录时就会提醒修改密码对话框');
INSERT INTO `sys_config` VALUES (9, '贷款申请默认期限', 'loan.default.term.months', '12', 'Y', 'admin', '2025-12-24 14:56:22', '', NULL, '贷款申请默认期限(月)');
INSERT INTO `sys_config` VALUES (10, '贷款金额上限', 'loan.max.amount', '5000000', 'Y', 'admin', '2025-12-24 14:56:22', '', NULL, '单笔贷款金额上限');
INSERT INTO `sys_config` VALUES (11, '贷款金额下限', 'loan.min.amount', '10000', 'Y', 'admin', '2025-12-24 14:56:22', '', NULL, '单笔贷款金额下限');
INSERT INTO `sys_config` VALUES (12, '风险评估有效期', 'risk.assessment.validity.days', '90', 'Y', 'admin', '2025-12-24 14:56:22', '', NULL, '风险评估报告有效期(天)');
INSERT INTO `sys_config` VALUES (13, '逾期宽限期', 'overdue.grace.period.days', '3', 'Y', 'admin', '2025-12-24 14:56:22', '', NULL, '还款逾期宽限期(天)');
INSERT INTO `sys_config` VALUES (14, '自动审批金额阈值', 'auto.approval.threshold', '100000', 'Y', 'admin', '2025-12-24 14:56:22', '', NULL, '自动审批金额阈值');
INSERT INTO `sys_config` VALUES (15, '银行匹配最大数量', 'bank.match.max.count', '5', 'Y', 'admin', '2025-12-24 14:56:22', '', NULL, '银行匹配推荐最大数量');
INSERT INTO `sys_config` VALUES (16, '贷款申请有效期', 'loan.application.validity.days', '30', 'Y', 'admin', '2025-12-24 14:56:22', '', NULL, '贷款申请有效期(天)');

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

-- ----------------------------
-- Records of sys_dept
-- ----------------------------
INSERT INTO `sys_dept` VALUES (100, 0, '0', '若依科技', 0, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2025-12-16 21:48:00', '', NULL);
INSERT INTO `sys_dept` VALUES (101, 100, '0,100', '深圳总公司', 1, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2025-12-16 21:48:00', '', NULL);
INSERT INTO `sys_dept` VALUES (102, 100, '0,100', '长沙分公司', 2, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2025-12-16 21:48:00', '', NULL);
INSERT INTO `sys_dept` VALUES (103, 101, '0,100,101', '研发部门', 1, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2025-12-16 21:48:00', '', NULL);
INSERT INTO `sys_dept` VALUES (104, 101, '0,100,101', '市场部门', 2, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2025-12-16 21:48:00', '', NULL);
INSERT INTO `sys_dept` VALUES (105, 101, '0,100,101', '测试部门', 3, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2025-12-16 21:48:00', '', NULL);
INSERT INTO `sys_dept` VALUES (106, 101, '0,100,101', '财务部门', 4, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2025-12-16 21:48:00', '', NULL);
INSERT INTO `sys_dept` VALUES (107, 101, '0,100,101', '运维部门', 5, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2025-12-16 21:48:00', '', NULL);
INSERT INTO `sys_dept` VALUES (108, 102, '0,100,102', '市场部门', 1, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2025-12-16 21:48:00', '', NULL);
INSERT INTO `sys_dept` VALUES (109, 102, '0,100,102', '财务部门', 2, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2025-12-16 21:48:00', '', NULL);
INSERT INTO `sys_dept` VALUES (200, 100, '0,100', '安保服务部', 6, '安保负责人', '13800000001', 'security@anxin.com', '0', '0', 'admin', '2025-12-20 01:13:26', '', NULL);
INSERT INTO `sys_dept` VALUES (201, 200, '0,100,200', '安保公司A', 1, '张经理', '13800000002', 'securitya@anxin.com', '0', '0', 'admin', '2025-12-20 01:13:26', '', NULL);
INSERT INTO `sys_dept` VALUES (202, 200, '0,100,200', '安保公司B', 2, '李经理', '13800000003', 'securityb@anxin.com', '0', '0', 'admin', '2025-12-20 01:13:26', '', NULL);
INSERT INTO `sys_dept` VALUES (210, 100, '0,100', '甲方客户部', 7, '客户负责人', '13800000011', 'client@anxin.com', '0', '0', 'admin', '2025-12-20 01:13:26', '', NULL);
INSERT INTO `sys_dept` VALUES (211, 210, '0,100,210', '甲方单位A', 1, '王总', '13800000012', 'clienta@anxin.com', '0', '0', 'admin', '2025-12-20 01:13:26', '', NULL);
INSERT INTO `sys_dept` VALUES (212, 210, '0,100,210', '甲方单位B', 2, '刘总', '13800000013', 'clientb@anxin.com', '0', '0', 'admin', '2025-12-20 01:13:26', '', NULL);
INSERT INTO `sys_dept` VALUES (220, 100, '0,100', '金融机构部', 8, '金融负责人', '13800000021', 'finance@anxin.com', '0', '0', 'admin', '2025-12-20 01:13:26', '', NULL);
INSERT INTO `sys_dept` VALUES (221, 220, '0,100,220', '银行A', 1, '行长', '13800000022', 'banka@anxin.com', '0', '0', 'admin', '2025-12-20 01:13:26', '', NULL);
INSERT INTO `sys_dept` VALUES (222, 220, '0,100,220', '银行B', 2, '副行长', '13800000023', 'bankb@anxin.com', '0', '0', 'admin', '2025-12-20 01:13:26', '', NULL);

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

-- ----------------------------
-- Records of sys_dict_data
-- ----------------------------
INSERT INTO `sys_dict_data` VALUES (1, 1, '男', '0', 'sys_user_sex', '', '', 'Y', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '性别男');
INSERT INTO `sys_dict_data` VALUES (2, 2, '女', '1', 'sys_user_sex', '', '', 'N', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '性别女');
INSERT INTO `sys_dict_data` VALUES (3, 3, '未知', '2', 'sys_user_sex', '', '', 'N', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '性别未知');
INSERT INTO `sys_dict_data` VALUES (4, 1, '显示', '0', 'sys_show_hide', '', 'primary', 'Y', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '显示菜单');
INSERT INTO `sys_dict_data` VALUES (5, 2, '隐藏', '1', 'sys_show_hide', '', 'danger', 'N', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '隐藏菜单');
INSERT INTO `sys_dict_data` VALUES (6, 1, '正常', '0', 'sys_normal_disable', '', 'primary', 'Y', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '正常状态');
INSERT INTO `sys_dict_data` VALUES (7, 2, '停用', '1', 'sys_normal_disable', '', 'danger', 'N', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '停用状态');
INSERT INTO `sys_dict_data` VALUES (8, 1, '正常', '0', 'sys_job_status', '', 'primary', 'Y', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '正常状态');
INSERT INTO `sys_dict_data` VALUES (9, 2, '暂停', '1', 'sys_job_status', '', 'danger', 'N', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '停用状态');
INSERT INTO `sys_dict_data` VALUES (10, 1, '默认', 'DEFAULT', 'sys_job_group', '', '', 'Y', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '默认分组');
INSERT INTO `sys_dict_data` VALUES (11, 2, '系统', 'SYSTEM', 'sys_job_group', '', '', 'N', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '系统分组');
INSERT INTO `sys_dict_data` VALUES (12, 1, '是', 'Y', 'sys_yes_no', '', 'primary', 'Y', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '系统默认是');
INSERT INTO `sys_dict_data` VALUES (13, 2, '否', 'N', 'sys_yes_no', '', 'danger', 'N', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '系统默认否');
INSERT INTO `sys_dict_data` VALUES (14, 1, '通知', '1', 'sys_notice_type', '', 'warning', 'Y', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '通知');
INSERT INTO `sys_dict_data` VALUES (15, 2, '公告', '2', 'sys_notice_type', '', 'success', 'N', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '公告');
INSERT INTO `sys_dict_data` VALUES (16, 1, '正常', '0', 'sys_notice_status', '', 'primary', 'Y', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '正常状态');
INSERT INTO `sys_dict_data` VALUES (17, 2, '关闭', '1', 'sys_notice_status', '', 'danger', 'N', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '关闭状态');
INSERT INTO `sys_dict_data` VALUES (18, 99, '其他', '0', 'sys_oper_type', '', 'info', 'N', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '其他操作');
INSERT INTO `sys_dict_data` VALUES (19, 1, '新增', '1', 'sys_oper_type', '', 'info', 'N', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '新增操作');
INSERT INTO `sys_dict_data` VALUES (20, 2, '修改', '2', 'sys_oper_type', '', 'info', 'N', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '修改操作');
INSERT INTO `sys_dict_data` VALUES (21, 3, '删除', '3', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '删除操作');
INSERT INTO `sys_dict_data` VALUES (22, 4, '授权', '4', 'sys_oper_type', '', 'primary', 'N', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '授权操作');
INSERT INTO `sys_dict_data` VALUES (23, 5, '导出', '5', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '导出操作');
INSERT INTO `sys_dict_data` VALUES (24, 6, '导入', '6', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '导入操作');
INSERT INTO `sys_dict_data` VALUES (25, 7, '强退', '7', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '强退操作');
INSERT INTO `sys_dict_data` VALUES (26, 8, '生成代码', '8', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '生成操作');
INSERT INTO `sys_dict_data` VALUES (27, 9, '清空数据', '9', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '清空操作');
INSERT INTO `sys_dict_data` VALUES (28, 1, '成功', '0', 'sys_common_status', '', 'primary', 'N', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '正常状态');
INSERT INTO `sys_dict_data` VALUES (29, 2, '失败', '1', 'sys_common_status', '', 'danger', 'N', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '停用状态');
INSERT INTO `sys_dict_data` VALUES (100, 1, '技术咨询', 'TECH_CONSULTING', 'dc_service_type', '', 'primary', 'Y', '0', 'admin', '2025-12-21 15:00:00', '', NULL, '技术咨询服务');
INSERT INTO `sys_dict_data` VALUES (101, 2, '财务审计', 'FINANCIAL_AUDIT', 'dc_service_type', '', 'success', 'N', '0', 'admin', '2025-12-21 15:00:00', '', NULL, '财务审计服务');
INSERT INTO `sys_dict_data` VALUES (102, 3, '法律咨询', 'LEGAL_CONSULTING', 'dc_service_type', '', 'info', 'N', '0', 'admin', '2025-12-21 15:00:00', '', NULL, '法律咨询服务');
INSERT INTO `sys_dict_data` VALUES (103, 4, '管理咨询', 'MANAGEMENT_CONSULTING', 'dc_service_type', '', 'warning', 'N', '0', 'admin', '2025-12-21 15:00:00', '', NULL, '管理咨询服务');
INSERT INTO `sys_dict_data` VALUES (104, 5, '软件开发', 'SOFTWARE_DEVELOPMENT', 'dc_service_type', '', 'primary', 'N', '0', 'admin', '2025-12-21 15:00:00', '', NULL, '软件开发服务');
INSERT INTO `sys_dict_data` VALUES (105, 6, '系统集成', 'SYSTEM_INTEGRATION', 'dc_service_type', '', 'success', 'N', '0', 'admin', '2025-12-21 15:00:00', '', NULL, '系统集成服务');
INSERT INTO `sys_dict_data` VALUES (106, 7, '数据分析', 'DATA_ANALYSIS', 'dc_service_type', '', 'info', 'N', '0', 'admin', '2025-12-21 15:00:00', '', NULL, '数据分析服务');
INSERT INTO `sys_dict_data` VALUES (107, 8, '培训服务', 'TRAINING_SERVICE', 'dc_service_type', '', 'warning', 'N', '0', 'admin', '2025-12-21 15:00:00', '', NULL, '培训服务');
INSERT INTO `sys_dict_data` VALUES (108, 9, '运维服务', 'MAINTENANCE_SERVICE', 'dc_service_type', '', 'primary', 'N', '0', 'admin', '2025-12-21 15:00:00', '', NULL, '运维服务');
INSERT INTO `sys_dict_data` VALUES (109, 10, '其他服务', 'OTHER_SERVICE', 'dc_service_type', '', 'info', 'N', '0', 'admin', '2025-12-21 15:00:00', '', NULL, '其他类型服务');
INSERT INTO `sys_dict_data` VALUES (200, 1, '线上合同', 'ONLINE', 'dc_contract_type', '', 'primary', 'Y', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '在平台上创建的合同');
INSERT INTO `sys_dict_data` VALUES (201, 2, '线下合同', 'OFFLINE', 'dc_contract_type', '', 'info', 'N', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '线下签署后上传的合同');
INSERT INTO `sys_dict_data` VALUES (202, 1, '待确认', 'PENDING', 'dc_contract_status', '', 'warning', 'Y', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '等待甲方确认');
INSERT INTO `sys_dict_data` VALUES (203, 2, '已确认', 'CONFIRMED', 'dc_contract_status', '', 'success', 'N', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '甲方已确认');
INSERT INTO `sys_dict_data` VALUES (204, 3, '已完成', 'COMPLETED', 'dc_contract_status', '', 'primary', 'N', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '服务已完成');
INSERT INTO `sys_dict_data` VALUES (205, 4, '已取消', 'CANCELLED', 'dc_contract_status', '', 'danger', 'N', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '合同已取消');
INSERT INTO `sys_dict_data` VALUES (206, 1, '有效', 'VALID', 'dc_credit_status', '', 'success', 'Y', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '债权有效');
INSERT INTO `sys_dict_data` VALUES (207, 2, '已融资', 'FINANCED', 'dc_credit_status', '', 'primary', 'N', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '已申请融资');
INSERT INTO `sys_dict_data` VALUES (208, 3, '已结清', 'SETTLED', 'dc_credit_status', '', 'info', 'N', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '债权已结清');
INSERT INTO `sys_dict_data` VALUES (209, 4, '已过期', 'EXPIRED', 'dc_credit_status', '', 'danger', 'N', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '债权已过期');
INSERT INTO `sys_dict_data` VALUES (210, 1, '待审批', 'PENDING', 'dc_financing_status', '', 'warning', 'Y', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '等待审批');
INSERT INTO `sys_dict_data` VALUES (211, 2, '审批通过', 'APPROVED', 'dc_financing_status', '', 'success', 'N', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '审批通过');
INSERT INTO `sys_dict_data` VALUES (212, 3, '审批拒绝', 'REJECTED', 'dc_financing_status', '', 'danger', 'N', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '审批拒绝');
INSERT INTO `sys_dict_data` VALUES (213, 4, '已放款', 'DISBURSED', 'dc_financing_status', '', 'primary', 'N', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '已放款');
INSERT INTO `sys_dict_data` VALUES (214, 5, '已结清', 'SETTLED', 'dc_financing_status', '', 'info', 'N', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '已结清');
INSERT INTO `sys_dict_data` VALUES (215, 1, '合同付款', 'CONTRACT_PAYMENT', 'dc_payment_type', '', 'primary', 'Y', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '合同服务费付款');
INSERT INTO `sys_dict_data` VALUES (216, 2, '融资放款', 'FINANCING_DISBURSEMENT', 'dc_payment_type', '', 'success', 'N', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '融资放款');
INSERT INTO `sys_dict_data` VALUES (217, 3, '融资还款', 'REPAYMENT', 'dc_payment_type', '', 'info', 'N', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '融资还款');
INSERT INTO `sys_dict_data` VALUES (218, 1, '待支付', 'PENDING', 'dc_payment_status', '', 'warning', 'Y', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '等待支付');
INSERT INTO `sys_dict_data` VALUES (219, 2, '处理中', 'PROCESSING', 'dc_payment_status', '', 'primary', 'N', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '支付处理中');
INSERT INTO `sys_dict_data` VALUES (220, 3, '已完成', 'COMPLETED', 'dc_payment_status', '', 'success', 'N', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '支付完成');
INSERT INTO `sys_dict_data` VALUES (221, 4, '失败', 'FAILED', 'dc_payment_status', '', 'danger', 'N', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '支付失败');
INSERT INTO `sys_dict_data` VALUES (222, 5, '已取消', 'CANCELLED', 'dc_payment_status', '', 'info', 'N', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '支付取消');
INSERT INTO `sys_dict_data` VALUES (223, 1, '低风险', 'LOW', 'dc_risk_level', '', 'success', 'Y', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '低风险');
INSERT INTO `sys_dict_data` VALUES (224, 2, '中风险', 'MEDIUM', 'dc_risk_level', '', 'warning', 'N', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '中风险');
INSERT INTO `sys_dict_data` VALUES (225, 3, '高风险', 'HIGH', 'dc_risk_level', '', 'danger', 'N', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '高风险');
INSERT INTO `sys_dict_data` VALUES (226, 1, '合同上链', 'CONTRACT', 'dc_blockchain_tx_type', '', 'primary', 'Y', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '合同数据上链');
INSERT INTO `sys_dict_data` VALUES (227, 2, '债权上链', 'CREDIT', 'dc_blockchain_tx_type', '', 'success', 'N', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '债权数据上链');
INSERT INTO `sys_dict_data` VALUES (228, 3, '支付上链', 'PAYMENT', 'dc_blockchain_tx_type', '', 'info', 'N', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '支付数据上链');
INSERT INTO `sys_dict_data` VALUES (229, 4, '智能合约', 'SMART_CONTRACT', 'dc_blockchain_tx_type', '', 'warning', 'N', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '智能合约交易');
INSERT INTO `sys_dict_data` VALUES (230, 1, '债权代币', 'CREDIT_TOKEN', 'dc_smart_contract_type', '', 'primary', 'Y', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '债权代币合约');
INSERT INTO `sys_dict_data` VALUES (231, 2, '监管合约', 'ESCROW', 'dc_smart_contract_type', '', 'success', 'N', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '资金监管合约');
INSERT INTO `sys_dict_data` VALUES (232, 3, '支付合约', 'PAYMENT', 'dc_smart_contract_type', '', 'info', 'N', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '支付处理合约');
INSERT INTO `sys_dict_data` VALUES (233, 1, '邮件', 'EMAIL', 'dc_message_type', '', 'primary', 'Y', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '邮件通知');
INSERT INTO `sys_dict_data` VALUES (234, 2, '短信', 'SMS', 'dc_message_type', '', 'success', 'N', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '短信通知');
INSERT INTO `sys_dict_data` VALUES (235, 3, '系统通知', 'SYSTEM', 'dc_message_type', '', 'info', 'N', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '系统内通知');
INSERT INTO `sys_dict_data` VALUES (236, 4, '推送通知', 'PUSH', 'dc_message_type', '', 'warning', 'N', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '推送通知');
INSERT INTO `sys_dict_data` VALUES (237, 1, '财务报表', 'FINANCIAL', 'dc_report_type', '', 'primary', 'Y', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '财务相关报表');
INSERT INTO `sys_dict_data` VALUES (238, 2, '风险报表', 'RISK', 'dc_report_type', '', 'danger', 'N', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '风险分析报表');
INSERT INTO `sys_dict_data` VALUES (239, 3, '业务报表', 'BUSINESS', 'dc_report_type', '', 'success', 'N', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '业务统计报表');
INSERT INTO `sys_dict_data` VALUES (240, 4, '统计报表', 'STATISTICAL', 'dc_report_type', '', 'info', 'N', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '数据统计报表');
INSERT INTO `sys_dict_data` VALUES (241, 1, '金额不一致', 'AMOUNT_INCONSISTENCY', 'risk_event_type', '', 'danger', 'N', '0', 'admin', '2025-12-22 21:48:14', '', NULL, '合同金额与确认单金额不一致');
INSERT INTO `sys_dict_data` VALUES (242, 2, '主体信息不匹配', 'PARTY_MISMATCH', 'risk_event_type', '', 'danger', 'N', '0', 'admin', '2025-12-22 21:48:14', '', NULL, '开票方与收票方主体信息不匹配');
INSERT INTO `sys_dict_data` VALUES (243, 3, '期限不一致', 'PERIOD_INCONSISTENCY', 'risk_event_type', '', 'warning', 'N', '0', 'admin', '2025-12-22 21:48:14', '', NULL, '服务期限与实际周期不一致');
INSERT INTO `sys_dict_data` VALUES (244, 4, '数据异常', 'DATA_ANOMALY', 'risk_event_type', '', 'info', 'N', '0', 'admin', '2025-12-22 21:48:14', '', NULL, '系统检测到的数据异常');
INSERT INTO `sys_dict_data` VALUES (245, 1, '高风险', 'HIGH', 'risk_level', '', 'danger', 'N', '0', 'admin', '2025-12-22 21:48:14', '', NULL, '高风险事件');
INSERT INTO `sys_dict_data` VALUES (246, 2, '中风险', 'MEDIUM', 'risk_level', '', 'warning', 'N', '0', 'admin', '2025-12-22 21:48:14', '', NULL, '中风险事件');
INSERT INTO `sys_dict_data` VALUES (247, 3, '低风险', 'LOW', 'risk_level', '', 'info', 'N', '0', 'admin', '2025-12-22 21:48:14', '', NULL, '低风险事件');
INSERT INTO `sys_dict_data` VALUES (248, 1, '开放', 'OPEN', 'risk_event_status', '', 'danger', 'N', '0', 'admin', '2025-12-22 21:48:14', '', NULL, '风险事件已创建，等待处理');
INSERT INTO `sys_dict_data` VALUES (249, 2, '处理中', 'IN_PROGRESS', 'risk_event_status', '', 'warning', 'N', '0', 'admin', '2025-12-22 21:48:14', '', NULL, '风险事件正在处理中');
INSERT INTO `sys_dict_data` VALUES (250, 3, '已解决', 'RESOLVED', 'risk_event_status', '', 'success', 'N', '0', 'admin', '2025-12-22 21:48:14', '', NULL, '风险事件已解决');
INSERT INTO `sys_dict_data` VALUES (251, 4, '已关闭', 'CLOSED', 'risk_event_status', '', 'info', 'N', '0', 'admin', '2025-12-22 21:48:14', '', NULL, '风险事件已关闭');
INSERT INTO `sys_dict_data` VALUES (252, 1, '合同金额检查', 'CONTRACT_AMOUNT', 'consistency_check_type', '', 'primary', 'N', '0', 'admin', '2025-12-22 21:48:14', '', NULL, '合同金额与服务确认单金额一致性检查');
INSERT INTO `sys_dict_data` VALUES (253, 2, '发票金额检查', 'INVOICE_AMOUNT', 'consistency_check_type', '', 'primary', 'N', '0', 'admin', '2025-12-22 21:48:14', '', NULL, '服务确认单与发票金额一致性检查');
INSERT INTO `sys_dict_data` VALUES (254, 3, '主体信息检查', 'PARTY_INFO', 'consistency_check_type', '', 'primary', 'N', '0', 'admin', '2025-12-22 21:48:14', '', NULL, '开票方与收票方主体信息验证');
INSERT INTO `sys_dict_data` VALUES (255, 4, '服务期限检查', 'SERVICE_PERIOD', 'consistency_check_type', '', 'primary', 'N', '0', 'admin', '2025-12-22 21:48:14', '', NULL, '服务期限与实际周期一致性检查');
INSERT INTO `sys_dict_data` VALUES (258, 2, '已完成', 'COMPLETED', 'service_period_status', '', 'success', 'N', '0', 'admin', '2025-12-23 21:15:35', '', NULL, '服务周期已完成');
INSERT INTO `sys_dict_data` VALUES (259, 3, '已取消', 'CANCELLED', 'service_period_status', '', 'danger', 'N', '0', 'admin', '2025-12-23 21:15:35', '', NULL, '服务周期已取消');
INSERT INTO `sys_dict_data` VALUES (260, 1, '已分配', 'ASSIGNED', 'assignment_status', '', 'info', 'Y', '0', 'admin', '2025-12-23 21:15:35', '', NULL, '员工已分配');
INSERT INTO `sys_dict_data` VALUES (261, 2, '活跃', 'ACTIVE', 'assignment_status', '', 'primary', 'N', '0', 'admin', '2025-12-23 21:15:35', '', NULL, '员工活跃状态');
INSERT INTO `sys_dict_data` VALUES (262, 3, '已完成', 'COMPLETED', 'assignment_status', '', 'success', 'N', '0', 'admin', '2025-12-23 21:15:35', '', NULL, '员工任务已完成');
INSERT INTO `sys_dict_data` VALUES (263, 4, '已取消', 'CANCELLED', 'assignment_status', '', 'danger', 'N', '0', 'admin', '2025-12-23 21:15:35', '', NULL, '员工分配已取消');
INSERT INTO `sys_dict_data` VALUES (264, 1, '小时制', 'HOURLY', 'salary_type', '', 'default', 'N', '0', 'admin', '2025-12-23 21:15:35', '', NULL, '按小时计薪');
INSERT INTO `sys_dict_data` VALUES (265, 2, '日薪制', 'DAILY', 'salary_type', '', 'primary', 'Y', '0', 'admin', '2025-12-23 21:15:35', '', NULL, '按日计薪');
INSERT INTO `sys_dict_data` VALUES (266, 3, '月薪制', 'MONTHLY', 'salary_type', '', 'success', 'N', '0', 'admin', '2025-12-23 21:15:35', '', NULL, '按月计薪');
INSERT INTO `sys_dict_data` VALUES (267, 1, '员工库关联', 'LIBRARY', 'link_type', '', 'primary', 'Y', '0', 'admin', '2025-12-23 21:15:35', '', NULL, '关联整个员工库');
INSERT INTO `sys_dict_data` VALUES (268, 2, '单个员工关联', 'INDIVIDUAL', 'link_type', '', 'info', 'N', '0', 'admin', '2025-12-23 21:15:35', '', NULL, '关联单个员工');
INSERT INTO `sys_dict_data` VALUES (269, 1, '活跃', 'ACTIVE', 'link_status', '', 'success', 'Y', '0', 'admin', '2025-12-23 21:15:35', '', NULL, '关联状态活跃');
INSERT INTO `sys_dict_data` VALUES (270, 2, '非活跃', 'INACTIVE', 'link_status', '', 'warning', 'N', '0', 'admin', '2025-12-23 21:15:35', '', NULL, '关联状态非活跃');
INSERT INTO `sys_dict_data` VALUES (271, 3, '已取消', 'CANCELLED', 'link_status', '', 'danger', 'N', '0', 'admin', '2025-12-23 21:15:35', '', NULL, '关联已取消');
INSERT INTO `sys_dict_data` VALUES (272, 1, '已创建', 'CREATED', 'period_status', '', 'primary', 'Y', '0', 'admin', '2025-12-24 00:30:31', '', NULL, '服务周期已创建');
INSERT INTO `sys_dict_data` VALUES (273, 2, '已完成', 'COMPLETED', 'period_status', '', 'success', 'N', '0', 'admin', '2025-12-24 00:30:31', '', NULL, '服务周期已完成');
INSERT INTO `sys_dict_data` VALUES (274, 3, '已取消', 'CANCELLED', 'period_status', '', 'danger', 'N', '0', 'admin', '2025-12-24 00:30:31', '', NULL, '服务周期已取消');
INSERT INTO `sys_dict_data` VALUES (275, 1, '已创建', 'CREATED', 'service_period_status', '', 'primary', 'Y', '0', 'admin', '2025-12-24 00:30:31', '', NULL, '服务周期已创建');
INSERT INTO `sys_dict_data` VALUES (276, 1, '待审批', 'PENDING', 'loan_status', '', 'warning', 'Y', '0', 'admin', '2025-12-24 14:55:57', '', NULL, '贷款申请待审批');
INSERT INTO `sys_dict_data` VALUES (277, 2, '已批准', 'APPROVED', 'loan_status', '', 'success', 'N', '0', 'admin', '2025-12-24 14:55:57', '', NULL, '贷款申请已批准');
INSERT INTO `sys_dict_data` VALUES (278, 3, '已拒绝', 'REJECTED', 'loan_status', '', 'danger', 'N', '0', 'admin', '2025-12-24 14:55:57', '', NULL, '贷款申请已拒绝');
INSERT INTO `sys_dict_data` VALUES (279, 4, '生效中', 'ACTIVE', 'loan_status', '', 'primary', 'N', '0', 'admin', '2025-12-24 14:55:57', '', NULL, '贷款生效中');
INSERT INTO `sys_dict_data` VALUES (280, 5, '已完成', 'COMPLETED', 'loan_status', '', 'info', 'N', '0', 'admin', '2025-12-24 14:55:57', '', NULL, '贷款已完成');
INSERT INTO `sys_dict_data` VALUES (281, 6, '已取消', 'CANCELLED', 'loan_status', '', 'default', 'N', '0', 'admin', '2025-12-24 14:55:57', '', NULL, '贷款已取消');
INSERT INTO `sys_dict_data` VALUES (282, 1, '待审批', 'PENDING', 'approval_status', '', 'warning', 'Y', '0', 'admin', '2025-12-24 14:55:57', '', NULL, '待审批');
INSERT INTO `sys_dict_data` VALUES (283, 2, '已批准', 'APPROVED', 'approval_status', '', 'success', 'N', '0', 'admin', '2025-12-24 14:55:57', '', NULL, '已批准');
INSERT INTO `sys_dict_data` VALUES (284, 3, '已拒绝', 'REJECTED', 'approval_status', '', 'danger', 'N', '0', 'admin', '2025-12-24 14:55:57', '', NULL, '已拒绝');
INSERT INTO `sys_dict_data` VALUES (285, 1, '完美匹配', 'PERFECT', 'contract_term_match', '', 'success', 'N', '0', 'admin', '2025-12-24 14:55:57', '', NULL, '期限完美匹配');
INSERT INTO `sys_dict_data` VALUES (286, 2, '良好匹配', 'GOOD', 'contract_term_match', '', 'primary', 'N', '0', 'admin', '2025-12-24 14:55:57', '', NULL, '期限良好匹配');
INSERT INTO `sys_dict_data` VALUES (287, 3, '可接受匹配', 'ACCEPTABLE', 'contract_term_match', '', 'warning', 'N', '0', 'admin', '2025-12-24 14:55:57', '', NULL, '期限可接受匹配');
INSERT INTO `sys_dict_data` VALUES (288, 4, '匹配度差', 'POOR', 'contract_term_match', '', 'danger', 'N', '0', 'admin', '2025-12-24 14:55:57', '', NULL, '期限匹配度差');
INSERT INTO `sys_dict_data` VALUES (289, 1, '商业银行', 'COMMERCIAL', 'bank_type', '', 'primary', 'Y', '0', 'admin', '2025-12-24 15:30:00', '', NULL, '商业银行');
INSERT INTO `sys_dict_data` VALUES (290, 2, '政策银行', 'POLICY', 'bank_type', '', 'success', 'N', '0', 'admin', '2025-12-24 15:30:00', '', NULL, '政策性银行');
INSERT INTO `sys_dict_data` VALUES (291, 3, '合作银行', 'COOPERATIVE', 'bank_type', '', 'info', 'N', '0', 'admin', '2025-12-24 15:30:00', '', NULL, '合作银行');
INSERT INTO `sys_dict_data` VALUES (292, 1, '经营贷', 'BUSINESS', 'loan_product_type', '', 'primary', 'Y', '0', 'admin', '2025-12-24 14:56:09', '', NULL, '经营性贷款');
INSERT INTO `sys_dict_data` VALUES (293, 2, '信用贷', 'CREDIT', 'loan_product_type', '', 'success', 'N', '0', 'admin', '2025-12-24 14:56:09', '', NULL, '信用贷款');
INSERT INTO `sys_dict_data` VALUES (294, 3, '抵押贷', 'MORTGAGE', 'loan_product_type', '', 'warning', 'N', '0', 'admin', '2025-12-24 14:56:09', '', NULL, '抵押贷款');
INSERT INTO `sys_dict_data` VALUES (298, 1, '等额本息', 'EQUAL_INSTALLMENT', 'repayment_method', '', 'primary', 'Y', '0', 'admin', '2025-12-24 15:08:11', '', NULL, '等额本息还款');
INSERT INTO `sys_dict_data` VALUES (299, 2, '等额本金', 'EQUAL_PRINCIPAL', 'repayment_method', '', 'success', 'N', '0', 'admin', '2025-12-24 15:08:11', '', NULL, '等额本金还款');
INSERT INTO `sys_dict_data` VALUES (300, 3, '先息后本', 'INTEREST_FIRST', 'repayment_method', '', 'info', 'N', '0', 'admin', '2025-12-24 15:08:11', '', NULL, '先息后本还款');
INSERT INTO `sys_dict_data` VALUES (301, 4, '一次性还本付息', 'LUMP_SUM', 'repayment_method', '', 'warning', 'N', '0', 'admin', '2025-12-24 15:08:11', '', NULL, '一次性还本付息');
INSERT INTO `sys_dict_data` VALUES (302, 1, '低风险', 'LOW', 'risk_level', '', 'success', 'Y', '0', 'admin', '2025-12-24 15:08:11', '', NULL, '低风险等级');
INSERT INTO `sys_dict_data` VALUES (303, 2, '中风险', 'MEDIUM', 'risk_level', '', 'warning', 'N', '0', 'admin', '2025-12-24 15:08:11', '', NULL, '中风险等级');
INSERT INTO `sys_dict_data` VALUES (304, 3, '高风险', 'HIGH', 'risk_level', '', 'danger', 'N', '0', 'admin', '2025-12-24 15:08:11', '', NULL, '高风险等级');
INSERT INTO `sys_dict_data` VALUES (305, 1, '待还款', 'PENDING', 'payment_status', '', 'warning', 'Y', '0', 'admin', '2025-12-24 15:08:11', '', NULL, '待还款');
INSERT INTO `sys_dict_data` VALUES (306, 2, '已还款', 'PAID', 'payment_status', '', 'success', 'N', '0', 'admin', '2025-12-24 15:08:11', '', NULL, '已还款');
INSERT INTO `sys_dict_data` VALUES (307, 3, '逾期', 'OVERDUE', 'payment_status', '', 'danger', 'N', '0', 'admin', '2025-12-24 15:08:11', '', NULL, '逾期还款');
INSERT INTO `sys_dict_data` VALUES (308, 4, '部分还款', 'PARTIAL', 'payment_status', '', 'info', 'N', '0', 'admin', '2025-12-24 15:08:11', '', NULL, '部分还款');

-- ----------------------------
-- Table structure for sys_dict_type
-- ----------------------------
DROP TABLE IF EXISTS `sys_dict_type`;
CREATE TABLE `sys_dict_type`  (
  `dict_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '字典主键',
  `dict_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '字典名称',
  `dict_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '字典类型',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '0' COMMENT '状态（0正常 1停用）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`dict_id`) USING BTREE,
  UNIQUE INDEX `dict_type`(`dict_type` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 230 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '字典类型表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_dict_type
-- ----------------------------
INSERT INTO `sys_dict_type` VALUES (1, '用户性别', 'sys_user_sex', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '用户性别列表');
INSERT INTO `sys_dict_type` VALUES (2, '菜单状态', 'sys_show_hide', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '菜单状态列表');
INSERT INTO `sys_dict_type` VALUES (3, '系统开关', 'sys_normal_disable', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '系统开关列表');
INSERT INTO `sys_dict_type` VALUES (4, '任务状态', 'sys_job_status', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '任务状态列表');
INSERT INTO `sys_dict_type` VALUES (5, '任务分组', 'sys_job_group', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '任务分组列表');
INSERT INTO `sys_dict_type` VALUES (6, '系统是否', 'sys_yes_no', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '系统是否列表');
INSERT INTO `sys_dict_type` VALUES (7, '通知类型', 'sys_notice_type', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '通知类型列表');
INSERT INTO `sys_dict_type` VALUES (8, '通知状态', 'sys_notice_status', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '通知状态列表');
INSERT INTO `sys_dict_type` VALUES (9, '操作类型', 'sys_oper_type', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '操作类型列表');
INSERT INTO `sys_dict_type` VALUES (10, '系统状态', 'sys_common_status', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '登录状态列表');
INSERT INTO `sys_dict_type` VALUES (100, '服务类型', 'dc_service_type', '0', 'admin', '2025-12-21 15:00:00', '', NULL, '数字债权服务类型');
INSERT INTO `sys_dict_type` VALUES (200, '合同类型', 'dc_contract_type', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '数字债权合同类型');
INSERT INTO `sys_dict_type` VALUES (201, '合同状态', 'dc_contract_status', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '数字债权合同状态');
INSERT INTO `sys_dict_type` VALUES (202, '债权状态', 'dc_credit_status', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '数字债权状态');
INSERT INTO `sys_dict_type` VALUES (203, '融资状态', 'dc_financing_status', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '融资申请状态');
INSERT INTO `sys_dict_type` VALUES (204, '支付类型', 'dc_payment_type', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '支付类型');
INSERT INTO `sys_dict_type` VALUES (205, '支付状态', 'dc_payment_status', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '支付状态');
INSERT INTO `sys_dict_type` VALUES (206, '风险等级', 'dc_risk_level', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '风险等级');
INSERT INTO `sys_dict_type` VALUES (207, '区块链交易类型', 'dc_blockchain_tx_type', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '区块链交易类型');
INSERT INTO `sys_dict_type` VALUES (208, '智能合约类型', 'dc_smart_contract_type', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '智能合约类型');
INSERT INTO `sys_dict_type` VALUES (209, '消息类型', 'dc_message_type', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '消息类型');
INSERT INTO `sys_dict_type` VALUES (210, '报表类型', 'dc_report_type', '0', 'admin', '2025-12-20 17:12:11', '', NULL, '报表类型');
INSERT INTO `sys_dict_type` VALUES (211, '风险事件类型', 'risk_event_type', '0', 'admin', '2025-12-22 21:48:14', '', NULL, '风险事件类型列表');
INSERT INTO `sys_dict_type` VALUES (212, '风险等级', 'risk_level', '0', 'admin', '2025-12-22 21:48:14', '', NULL, '风险级别列表');
INSERT INTO `sys_dict_type` VALUES (213, '风险事件状态', 'risk_event_status', '0', 'admin', '2025-12-22 21:48:14', '', NULL, '风险事件状态列表');
INSERT INTO `sys_dict_type` VALUES (214, '数据一致性检查类型', 'consistency_check_type', '0', 'admin', '2025-12-22 21:48:14', '', NULL, '数据一致性检查类型列表');
INSERT INTO `sys_dict_type` VALUES (215, '服务周期状态', 'service_period_status', '0', 'admin', '2025-12-23 21:15:35', '', NULL, '服务周期状态字典');
INSERT INTO `sys_dict_type` VALUES (216, '员工分配状态', 'assignment_status', '0', 'admin', '2025-12-23 21:15:35', '', NULL, '员工分配状态字典');
INSERT INTO `sys_dict_type` VALUES (217, '薪资类型', 'salary_type', '0', 'admin', '2025-12-23 21:15:35', '', NULL, '薪资类型字典');
INSERT INTO `sys_dict_type` VALUES (218, '关联类型', 'link_type', '0', 'admin', '2025-12-23 21:15:35', '', NULL, '员工关联类型字典');
INSERT INTO `sys_dict_type` VALUES (219, '关联状态', 'link_status', '0', 'admin', '2025-12-23 21:15:35', '', NULL, '员工关联状态字典');
INSERT INTO `sys_dict_type` VALUES (220, '周期状态', 'period_status', '0', 'admin', '2025-12-24 00:30:30', '', NULL, '服务周期状态字典');
INSERT INTO `sys_dict_type` VALUES (221, '贷款状态', 'loan_status', '0', 'admin', '2025-12-24 14:55:57', '', NULL, '服务周期贷款状态字典');
INSERT INTO `sys_dict_type` VALUES (222, '审批状态', 'approval_status', '0', 'admin', '2025-12-24 14:55:57', '', NULL, '贷款审批状态字典');
INSERT INTO `sys_dict_type` VALUES (223, '期限匹配度', 'contract_term_match', '0', 'admin', '2025-12-24 14:55:57', '', NULL, '合同期限匹配度字典');
INSERT INTO `sys_dict_type` VALUES (224, '银行类型', 'bank_type', '0', 'admin', '2025-12-24 14:56:09', '', NULL, '银行机构类型字典');
INSERT INTO `sys_dict_type` VALUES (225, '贷款产品类型', 'loan_product_type', '0', 'admin', '2025-12-24 14:56:09', '', NULL, '贷款产品类型字典');
INSERT INTO `sys_dict_type` VALUES (226, '还款方式', 'repayment_method', '0', 'admin', '2025-12-24 14:56:09', '', NULL, '贷款还款方式字典');
INSERT INTO `sys_dict_type` VALUES (230, '还款状态', 'payment_status', '0', 'admin', '2025-12-24 15:08:11', '', NULL, '贷款还款状态字典');

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

-- ----------------------------
-- Records of sys_job
-- ----------------------------
INSERT INTO `sys_job` VALUES (1, '系统默认（无参）', 'DEFAULT', 'ryTask.ryNoParams', '0/10 * * * * ?', '3', '1', '1', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_job` VALUES (2, '系统默认（有参）', 'DEFAULT', 'ryTask.ryParams(\'ry\')', '0/15 * * * * ?', '3', '1', '1', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_job` VALUES (3, '系统默认（多参）', 'DEFAULT', 'ryTask.ryMultipleParams(\'ry\', true, 2000L, 316.50D, 100)', '0/20 * * * * ?', '3', '1', '1', 'admin', '2025-12-16 21:48:01', '', NULL, '');

-- ----------------------------
-- Table structure for sys_job_log
-- ----------------------------
DROP TABLE IF EXISTS `sys_job_log`;
CREATE TABLE `sys_job_log`  (
  `job_log_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '任务日志ID',
  `job_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '任务名称',
  `job_group` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '任务组名',
  `invoke_target` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '调用目标字符串',
  `job_message` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '日志信息',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '0' COMMENT '执行状态（0正常 1失败）',
  `exception_info` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '异常信息',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`job_log_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '定时任务调度日志表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_job_log
-- ----------------------------

-- ----------------------------
-- Table structure for sys_logininfor
-- ----------------------------
DROP TABLE IF EXISTS `sys_logininfor`;
CREATE TABLE `sys_logininfor`  (
  `info_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '访问ID',
  `user_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '用户账号',
  `ipaddr` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '登录IP地址',
  `login_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '登录地点',
  `browser` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '浏览器类型',
  `os` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '操作系统',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '0' COMMENT '登录状态（0成功 1失败）',
  `msg` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '提示消息',
  `login_time` datetime NULL DEFAULT NULL COMMENT '访问时间',
  PRIMARY KEY (`info_id`) USING BTREE,
  INDEX `idx_sys_logininfor_s`(`status` ASC) USING BTREE,
  INDEX `idx_sys_logininfor_lt`(`login_time` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 216 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '系统访问记录' ROW_FORMAT = DYNAMIC;

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

-- ----------------------------
-- Records of sys_menu
-- ----------------------------
INSERT INTO `sys_menu` VALUES (1, '系统管理', 0, 10, 'system', NULL, '', '', 1, 0, 'M', '0', '0', '', 'system', 'admin', '2025-12-16 21:48:01', 'admin', '2025-12-20 15:47:59', '系统管理目录');
INSERT INTO `sys_menu` VALUES (2, '系统监控', 0, 11, 'monitor', NULL, '', '', 1, 0, 'M', '0', '0', '', 'monitor', 'admin', '2025-12-16 21:48:01', 'admin', '2025-12-20 15:47:53', '系统监控目录');
INSERT INTO `sys_menu` VALUES (3, '系统工具', 0, 12, 'tool', NULL, '', '', 1, 0, 'M', '0', '0', '', 'tool', 'admin', '2025-12-16 21:48:01', 'admin', '2025-12-20 15:47:46', '系统工具目录');
INSERT INTO `sys_menu` VALUES (100, '用户管理', 1, 1, 'user', 'system/user/index', '', '', 1, 0, 'C', '0', '0', 'system:user:list', 'user', 'admin', '2025-12-16 21:48:01', '', NULL, '用户管理菜单');
INSERT INTO `sys_menu` VALUES (101, '角色管理', 1, 2, 'role', 'system/role/index', '', '', 1, 0, 'C', '0', '0', 'system:role:list', 'peoples', 'admin', '2025-12-16 21:48:01', '', NULL, '角色管理菜单');
INSERT INTO `sys_menu` VALUES (102, '菜单管理', 1, 3, 'menu', 'system/menu/index', '', '', 1, 0, 'C', '0', '0', 'system:menu:list', 'tree-table', 'admin', '2025-12-16 21:48:01', '', NULL, '菜单管理菜单');
INSERT INTO `sys_menu` VALUES (103, '部门管理', 1, 4, 'dept', 'system/dept/index', '', '', 1, 0, 'C', '0', '0', 'system:dept:list', 'tree', 'admin', '2025-12-16 21:48:01', '', NULL, '部门管理菜单');
INSERT INTO `sys_menu` VALUES (104, '岗位管理', 1, 5, 'post', 'system/post/index', '', '', 1, 0, 'C', '0', '0', 'system:post:list', 'post', 'admin', '2025-12-16 21:48:01', '', NULL, '岗位管理菜单');
INSERT INTO `sys_menu` VALUES (105, '字典管理', 1, 6, 'dict', 'system/dict/index', '', '', 1, 0, 'C', '0', '0', 'system:dict:list', 'dict', 'admin', '2025-12-16 21:48:01', '', NULL, '字典管理菜单');
INSERT INTO `sys_menu` VALUES (106, '参数设置', 1, 7, 'config', 'system/config/index', '', '', 1, 0, 'C', '0', '0', 'system:config:list', 'edit', 'admin', '2025-12-16 21:48:01', '', NULL, '参数设置菜单');
INSERT INTO `sys_menu` VALUES (107, '通知公告', 1, 8, 'notice', 'system/notice/index', '', '', 1, 0, 'C', '0', '0', 'system:notice:list', 'message', 'admin', '2025-12-16 21:48:01', '', NULL, '通知公告菜单');
INSERT INTO `sys_menu` VALUES (108, '日志管理', 1, 9, 'log', '', '', '', 1, 0, 'M', '0', '0', '', 'log', 'admin', '2025-12-16 21:48:01', '', NULL, '日志管理菜单');
INSERT INTO `sys_menu` VALUES (109, '在线用户', 2, 1, 'online', 'monitor/online/index', '', '', 1, 0, 'C', '0', '0', 'monitor:online:list', 'online', 'admin', '2025-12-16 21:48:01', '', NULL, '在线用户菜单');
INSERT INTO `sys_menu` VALUES (110, '定时任务', 2, 2, 'job', 'monitor/job/index', '', '', 1, 0, 'C', '0', '0', 'monitor:job:list', 'job', 'admin', '2025-12-16 21:48:01', '', NULL, '定时任务菜单');
INSERT INTO `sys_menu` VALUES (111, '数据监控', 2, 3, 'druid', 'monitor/druid/index', '', '', 1, 0, 'C', '0', '0', 'monitor:druid:list', 'druid', 'admin', '2025-12-16 21:48:01', '', NULL, '数据监控菜单');
INSERT INTO `sys_menu` VALUES (112, '服务监控', 2, 4, 'server', 'monitor/server/index', '', '', 1, 0, 'C', '0', '0', 'monitor:server:list', 'server', 'admin', '2025-12-16 21:48:01', '', NULL, '服务监控菜单');
INSERT INTO `sys_menu` VALUES (113, '缓存监控', 2, 5, 'cache', 'monitor/cache/index', '', '', 1, 0, 'C', '0', '0', 'monitor:cache:list', 'redis', 'admin', '2025-12-16 21:48:01', '', NULL, '缓存监控菜单');
INSERT INTO `sys_menu` VALUES (114, '缓存列表', 2, 6, 'cacheList', 'monitor/cache/list', '', '', 1, 0, 'C', '0', '0', 'monitor:cache:list', 'redis-list', 'admin', '2025-12-16 21:48:01', '', NULL, '缓存列表菜单');
INSERT INTO `sys_menu` VALUES (115, '表单构建', 3, 1, 'build', 'tool/build/index', '', '', 1, 0, 'C', '0', '0', 'tool:build:list', 'build', 'admin', '2025-12-16 21:48:01', '', NULL, '表单构建菜单');
INSERT INTO `sys_menu` VALUES (116, '代码生成', 3, 2, 'gen', 'tool/gen/index', '', '', 1, 0, 'C', '0', '0', 'tool:gen:list', 'code', 'admin', '2025-12-16 21:48:01', '', NULL, '代码生成菜单');
INSERT INTO `sys_menu` VALUES (117, '系统接口', 3, 3, 'swagger', 'tool/swagger/index', '', '', 1, 0, 'C', '0', '0', 'tool:swagger:list', 'swagger', 'admin', '2025-12-16 21:48:01', '', NULL, '系统接口菜单');
INSERT INTO `sys_menu` VALUES (500, '操作日志', 108, 1, 'operlog', 'monitor/operlog/index', '', '', 1, 0, 'C', '0', '0', 'monitor:operlog:list', 'form', 'admin', '2025-12-16 21:48:01', '', NULL, '操作日志菜单');
INSERT INTO `sys_menu` VALUES (501, '登录日志', 108, 2, 'logininfor', 'monitor/logininfor/index', '', '', 1, 0, 'C', '0', '0', 'monitor:logininfor:list', 'logininfor', 'admin', '2025-12-16 21:48:01', '', NULL, '登录日志菜单');
INSERT INTO `sys_menu` VALUES (1000, '用户查询', 100, 1, '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:query', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1001, '用户新增', 100, 2, '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:add', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1002, '用户修改', 100, 3, '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:edit', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1003, '用户删除', 100, 4, '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:remove', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1004, '用户导出', 100, 5, '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:export', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1005, '用户导入', 100, 6, '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:import', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1006, '重置密码', 100, 7, '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:resetPwd', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1007, '角色查询', 101, 1, '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:query', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1008, '角色新增', 101, 2, '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:add', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1009, '角色修改', 101, 3, '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:edit', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1010, '角色删除', 101, 4, '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:remove', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1011, '角色导出', 101, 5, '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:export', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1012, '菜单查询', 102, 1, '', '', '', '', 1, 0, 'F', '0', '0', 'system:menu:query', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1013, '菜单新增', 102, 2, '', '', '', '', 1, 0, 'F', '0', '0', 'system:menu:add', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1014, '菜单修改', 102, 3, '', '', '', '', 1, 0, 'F', '0', '0', 'system:menu:edit', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1015, '菜单删除', 102, 4, '', '', '', '', 1, 0, 'F', '0', '0', 'system:menu:remove', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1016, '部门查询', 103, 1, '', '', '', '', 1, 0, 'F', '0', '0', 'system:dept:query', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1017, '部门新增', 103, 2, '', '', '', '', 1, 0, 'F', '0', '0', 'system:dept:add', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1018, '部门修改', 103, 3, '', '', '', '', 1, 0, 'F', '0', '0', 'system:dept:edit', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1019, '部门删除', 103, 4, '', '', '', '', 1, 0, 'F', '0', '0', 'system:dept:remove', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1020, '岗位查询', 104, 1, '', '', '', '', 1, 0, 'F', '0', '0', 'system:post:query', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1021, '岗位新增', 104, 2, '', '', '', '', 1, 0, 'F', '0', '0', 'system:post:add', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1022, '岗位修改', 104, 3, '', '', '', '', 1, 0, 'F', '0', '0', 'system:post:edit', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1023, '岗位删除', 104, 4, '', '', '', '', 1, 0, 'F', '0', '0', 'system:post:remove', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1024, '岗位导出', 104, 5, '', '', '', '', 1, 0, 'F', '0', '0', 'system:post:export', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1025, '字典查询', 105, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:query', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1026, '字典新增', 105, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:add', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1027, '字典修改', 105, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:edit', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1028, '字典删除', 105, 4, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:remove', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1029, '字典导出', 105, 5, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:export', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1030, '参数查询', 106, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:query', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1031, '参数新增', 106, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:add', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1032, '参数修改', 106, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:edit', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1033, '参数删除', 106, 4, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:remove', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1034, '参数导出', 106, 5, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:export', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1035, '公告查询', 107, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:notice:query', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1036, '公告新增', 107, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:notice:add', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1037, '公告修改', 107, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:notice:edit', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1038, '公告删除', 107, 4, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:notice:remove', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1039, '操作查询', 500, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:operlog:query', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1040, '操作删除', 500, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:operlog:remove', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1041, '日志导出', 500, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:operlog:export', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1042, '登录查询', 501, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:query', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1043, '登录删除', 501, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:remove', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1044, '日志导出', 501, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:export', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1045, '账户解锁', 501, 4, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:unlock', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1046, '在线查询', 109, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:online:query', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1047, '批量强退', 109, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:online:batchLogout', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1048, '单条强退', 109, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:online:forceLogout', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1049, '任务查询', 110, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:query', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1050, '任务新增', 110, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:add', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1051, '任务修改', 110, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:edit', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1052, '任务删除', 110, 4, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:remove', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1053, '状态修改', 110, 5, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:changeStatus', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1054, '任务导出', 110, 6, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:export', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1055, '生成查询', 116, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:query', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1056, '生成修改', 116, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:edit', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1057, '生成删除', 116, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:remove', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1058, '导入代码', 116, 4, '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:import', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1059, '预览代码', 116, 5, '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:preview', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1060, '生成代码', 116, 6, '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:code', '#', 'admin', '2025-12-16 21:48:01', '', NULL, '');
INSERT INTO `sys_menu` VALUES (5976, '债权管理', 0, 2, 'credit', NULL, NULL, '', 1, 0, 'M', '0', '0', '', 'build', 'admin', '2025-12-21 19:44:56', 'admin', '2025-12-21 21:36:21', '');
INSERT INTO `sys_menu` VALUES (5977, '债权列表', 5976, 1, 'creditList', 'digitalCredit/credit/list', NULL, '', 1, 0, 'C', '0', '0', 'credit:credit:list', 'cascader', 'admin', '2025-12-21 19:45:39', 'admin', '2025-12-29 23:37:12', '');
INSERT INTO `sys_menu` VALUES (5978, '债权生成', 5976, 2, 'generate', 'digitalCredit/credit/generate', NULL, '', 1, 0, 'C', '1', '0', 'credit:credit:add', 'form', 'admin', '2025-12-21 21:33:55', 'admin', '2025-12-29 23:36:47', '');
INSERT INTO `sys_menu` VALUES (5979, '合同管理', 0, 1, 'digitalCredit', NULL, NULL, '', 1, 0, 'M', '0', '0', NULL, 'education', 'admin', '2025-12-21 22:21:51', '', NULL, '');
INSERT INTO `sys_menu` VALUES (5980, '合同列表', 5979, 1, 'list', 'digitalCredit/contract/list', NULL, '', 1, 0, 'C', '0', '0', 'credit:contract:list', 'form', 'admin', '2025-12-21 22:22:42', 'admin', '2025-12-22 16:45:56', '');
INSERT INTO `sys_menu` VALUES (5981, '合同创建', 5979, 2, 'create', 'digitalCredit/contract/create', NULL, '', 1, 0, 'C', '1', '0', 'credit:contract:add', 'date', 'admin', '2025-12-21 22:28:21', 'admin', '2025-12-22 16:50:45', '');
INSERT INTO `sys_menu` VALUES (5982, '合同详细', 5979, 3, 'detail', 'digitalCredit/contract/detail', NULL, '', 1, 0, 'C', '1', '0', 'credit:contract:query', 'clipboard', 'admin', '2025-12-21 22:29:04', 'admin', '2025-12-22 16:50:25', '');
INSERT INTO `sys_menu` VALUES (5983, '合同确认', 5979, 4, 'confirm', 'digitalCredit/contract/confirm', NULL, '', 1, 0, 'C', '1', '0', 'credit:contract:confirm', 'date-range', 'admin', '2025-12-21 22:29:32', 'admin', '2025-12-22 16:48:27', '');
INSERT INTO `sys_menu` VALUES (5984, '员工管理', 0, 3, 'employee', NULL, NULL, '', 1, 0, 'M', '0', '0', '', 'peoples', 'admin', '2025-12-22 21:30:00', '', NULL, '员工管理目录');
INSERT INTO `sys_menu` VALUES (5985, '员工库管理', 5984, 1, 'library', 'digitalCredit/employee/library', NULL, '', 1, 0, 'C', '0', '0', 'credit:employee:list', 'tree', 'admin', '2025-12-22 21:30:00', '', NULL, '员工库管理菜单');
INSERT INTO `sys_menu` VALUES (5986, '员工信息管理', 5984, 2, 'employeeIndex', 'digitalCredit/employee/index', NULL, '', 1, 0, 'C', '0', '0', 'credit:employee:list', 'user', 'admin', '2025-12-22 21:30:00', 'admin', '2025-12-23 11:48:28', '员工信息管理菜单');
INSERT INTO `sys_menu` VALUES (5988, '数据验证', 5984, 4, 'validate', 'digitalCredit/employee/validate', NULL, '', 1, 0, 'C', '1', '1', 'credit:employee:list', 'validCode', 'admin', '2025-12-22 21:30:00', 'admin', '2025-12-23 16:48:28', '员工数据验证菜单');
INSERT INTO `sys_menu` VALUES (5989, '员工查询', 5986, 1, '', '', '', '', 1, 0, 'F', '0', '0', 'credit:employee:query', '#', 'admin', '2025-12-22 21:30:00', '', NULL, '');
INSERT INTO `sys_menu` VALUES (5990, '员工新增', 5986, 2, '', '', '', '', 1, 0, 'F', '0', '0', 'credit:employee:add', '#', 'admin', '2025-12-22 21:30:00', '', NULL, '');
INSERT INTO `sys_menu` VALUES (5991, '员工修改', 5986, 3, '', '', '', '', 1, 0, 'F', '0', '0', 'credit:employee:edit', '#', 'admin', '2025-12-22 21:30:00', '', NULL, '');
INSERT INTO `sys_menu` VALUES (5992, '员工删除', 5986, 4, '', '', '', '', 1, 0, 'F', '0', '0', 'credit:employee:remove', '#', 'admin', '2025-12-22 21:30:00', '', NULL, '');
INSERT INTO `sys_menu` VALUES (5993, '员工导入', 5986, 5, '', '', '', '', 1, 0, 'F', '0', '0', 'credit:employee:import', '#', 'admin', '2025-12-22 21:30:00', '', NULL, '');
INSERT INTO `sys_menu` VALUES (5994, '员工导出', 5986, 6, '', '', '', '', 1, 0, 'F', '0', '0', 'credit:employee:export', '#', 'admin', '2025-12-22 21:30:00', '', NULL, '');
INSERT INTO `sys_menu` VALUES (5995, 'OCR识别', 5986, 7, '', '', '', '', 1, 0, 'F', '0', '0', 'credit:employee:ocr', '#', 'admin', '2025-12-22 21:30:00', '', NULL, '');
INSERT INTO `sys_menu` VALUES (5996, '风险监控', 0, 6, 'risk', NULL, NULL, '', 1, 0, 'M', '1', '0', '', 'monitor', 'admin', '2025-12-22 21:48:14', 'admin', '2025-12-25 16:19:23', '风险监控目录');
INSERT INTO `sys_menu` VALUES (5997, '风险事件', 5996, 1, 'events', 'security/risk/events/index', NULL, '', 1, 0, 'C', '0', '0', 'security:risk:list', 'bug', 'admin', '2025-12-22 21:48:14', '', NULL, '风险事件菜单');
INSERT INTO `sys_menu` VALUES (5998, '数据一致性检查', 5996, 2, 'consistency', 'security/risk/consistency/index', NULL, '', 1, 0, 'C', '0', '0', 'security:risk:check', 'validCode', 'admin', '2025-12-22 21:48:14', '', NULL, '数据一致性检查菜单');
INSERT INTO `sys_menu` VALUES (5999, '风险事件查询', 5997, 1, '', '', NULL, '', 1, 0, 'F', '0', '0', 'security:risk:query', '#', 'admin', '2025-12-22 21:48:14', '', NULL, '');
INSERT INTO `sys_menu` VALUES (6000, '风险事件新增', 5997, 2, '', '', NULL, '', 1, 0, 'F', '0', '0', 'security:risk:add', '#', 'admin', '2025-12-22 21:48:14', '', NULL, '');
INSERT INTO `sys_menu` VALUES (6001, '风险事件修改', 5997, 3, '', '', NULL, '', 1, 0, 'F', '0', '0', 'security:risk:edit', '#', 'admin', '2025-12-22 21:48:14', '', NULL, '');
INSERT INTO `sys_menu` VALUES (6002, '风险事件删除', 5997, 4, '', '', NULL, '', 1, 0, 'F', '0', '0', 'security:risk:remove', '#', 'admin', '2025-12-22 21:48:14', '', NULL, '');
INSERT INTO `sys_menu` VALUES (6003, '风险事件导出', 5997, 5, '', '', NULL, '', 1, 0, 'F', '0', '0', 'security:risk:export', '#', 'admin', '2025-12-22 21:48:14', '', NULL, '');
INSERT INTO `sys_menu` VALUES (6004, '风险提示发送', 5997, 6, '', '', NULL, '', 1, 0, 'F', '0', '0', 'security:risk:alert', '#', 'admin', '2025-12-22 21:48:14', '', NULL, '');
INSERT INTO `sys_menu` VALUES (6005, '合同金额检查', 5998, 1, '', '', NULL, '', 1, 0, 'F', '0', '0', 'security:risk:check:contract', '#', 'admin', '2025-12-22 21:48:14', '', NULL, '');
INSERT INTO `sys_menu` VALUES (6006, '发票金额检查', 5998, 2, '', '', NULL, '', 1, 0, 'F', '0', '0', 'security:risk:check:invoice', '#', 'admin', '2025-12-22 21:48:14', '', NULL, '');
INSERT INTO `sys_menu` VALUES (6007, '主体信息验证', 5998, 3, '', '', NULL, '', 1, 0, 'F', '0', '0', 'security:risk:check:party', '#', 'admin', '2025-12-22 21:48:14', '', NULL, '');
INSERT INTO `sys_menu` VALUES (6008, '服务期限检查', 5998, 4, '', '', NULL, '', 1, 0, 'F', '0', '0', 'security:risk:check:period', '#', 'admin', '2025-12-22 21:48:14', '', NULL, '');
INSERT INTO `sys_menu` VALUES (6009, '融资数据验证', 5998, 5, '', '', NULL, '', 1, 0, 'F', '0', '0', 'security:risk:check:financing', '#', 'admin', '2025-12-22 21:48:14', '', NULL, '');
INSERT INTO `sys_menu` VALUES (6010, '重新验证', 5998, 6, '', '', NULL, '', 1, 0, 'F', '0', '0', 'security:risk:check:revalidate', '#', 'admin', '2025-12-22 21:48:14', '', NULL, '');
INSERT INTO `sys_menu` VALUES (6011, '服务周期管理', 5979, 5, 'service-period', 'digitalCredit/contract/servicePeriod', NULL, '', 1, 0, 'C', '0', '0', 'credit:service-period:list', 'time-range', 'admin', '2025-12-23 21:22:12', 'admin', '2025-12-23 21:29:49', '服务周期管理页面');
INSERT INTO `sys_menu` VALUES (6012, '服务周期查询', 6011, 1, '', '', '', '', 1, 0, 'F', '0', '0', 'credit:service-period:query', '#', 'admin', '2025-12-23 21:22:12', '', NULL, '服务周期查询权限');
INSERT INTO `sys_menu` VALUES (6013, '服务周期新增', 6011, 2, '', '', '', '', 1, 0, 'F', '0', '0', 'credit:service-period:add', '#', 'admin', '2025-12-23 21:22:12', '', NULL, '服务周期新增权限');
INSERT INTO `sys_menu` VALUES (6014, '服务周期修改', 6011, 3, '', '', '', '', 1, 0, 'F', '0', '0', 'credit:service-period:edit', '#', 'admin', '2025-12-23 21:22:12', '', NULL, '服务周期修改权限');
INSERT INTO `sys_menu` VALUES (6015, '服务周期删除', 6011, 4, '', '', '', '', 1, 0, 'F', '0', '0', 'credit:service-period:remove', '#', 'admin', '2025-12-23 21:22:12', '', NULL, '服务周期删除权限');
INSERT INTO `sys_menu` VALUES (6016, '服务周期导出', 6011, 5, '', '', '', '', 1, 0, 'F', '0', '0', 'credit:service-period:export', '#', 'admin', '2025-12-23 21:22:12', '', NULL, '服务周期导出权限');
INSERT INTO `sys_menu` VALUES (6017, '员工分配管理', 6011, 10, '', '', '', '', 1, 0, 'F', '0', '0', 'credit:service-period:assign', '#', 'admin', '2025-12-23 21:22:12', '', NULL, '员工分配管理权限');
INSERT INTO `sys_menu` VALUES (6018, '员工分配查询', 6011, 11, '', '', '', '', 1, 0, 'F', '0', '0', 'credit:service-period:assign:query', '#', 'admin', '2025-12-23 21:22:12', '', NULL, '员工分配查询权限');
INSERT INTO `sys_menu` VALUES (6019, '员工分配新增', 6011, 12, '', '', '', '', 1, 0, 'F', '0', '0', 'credit:service-period:assign:add', '#', 'admin', '2025-12-23 21:22:12', '', NULL, '员工分配新增权限');
INSERT INTO `sys_menu` VALUES (6020, '员工分配修改', 6011, 13, '', '', '', '', 1, 0, 'F', '0', '0', 'credit:service-period:assign:edit', '#', 'admin', '2025-12-23 21:22:12', '', NULL, '员工分配修改权限');
INSERT INTO `sys_menu` VALUES (6021, '员工分配删除', 6011, 14, '', '', '', '', 1, 0, 'F', '0', '0', 'credit:service-period:assign:remove', '#', 'admin', '2025-12-23 21:22:12', '', NULL, '员工分配删除权限');
INSERT INTO `sys_menu` VALUES (6022, '薪资调整', 6011, 20, '', '', '', '', 1, 0, 'F', '0', '0', 'credit:service-period:adjust', '#', 'admin', '2025-12-23 21:22:12', '', NULL, '薪资调整权限');
INSERT INTO `sys_menu` VALUES (6023, '批量薪资调整', 6011, 21, '', '', '', '', 1, 0, 'F', '0', '0', 'credit:service-period:adjust:batch', '#', 'admin', '2025-12-23 21:22:12', '', NULL, '批量薪资调整权限');
INSERT INTO `sys_menu` VALUES (6024, '成本计算', 6011, 30, '', '', '', '', 1, 0, 'F', '0', '0', 'credit:service-period:calculate', '#', 'admin', '2025-12-23 21:22:12', '', NULL, '成本计算权限');
INSERT INTO `sys_menu` VALUES (6025, '批量成本计算', 6011, 31, '', '', '', '', 1, 0, 'F', '0', '0', 'credit:service-period:calculate:batch', '#', 'admin', '2025-12-23 21:22:12', '', NULL, '批量成本计算权限');
INSERT INTO `sys_menu` VALUES (6026, '成本报表导出', 6011, 32, '', '', '', '', 1, 0, 'F', '0', '0', 'credit:service-period:calculate:export', '#', 'admin', '2025-12-23 21:22:12', '', NULL, '成本报表导出权限');
INSERT INTO `sys_menu` VALUES (6027, '数据验证', 6011, 40, '', '', '', '', 1, 0, 'F', '0', '0', 'credit:service-period:validate', '#', 'admin', '2025-12-23 21:22:12', '', NULL, '数据验证权限');
INSERT INTO `sys_menu` VALUES (6028, '员工库关联', 5979, 50, '', '', '', '', 1, 0, 'F', '0', '0', 'credit:contract:link', '#', 'admin', '2025-12-23 21:22:12', '', NULL, '员工库关联权限');
INSERT INTO `sys_menu` VALUES (6029, '员工关联取消', 5979, 51, '', '', '', '', 1, 0, 'F', '0', '0', 'credit:contract:unlink', '#', 'admin', '2025-12-23 21:22:12', '', NULL, '员工关联取消权限');
INSERT INTO `sys_menu` VALUES (6030, '合同验证', 5979, 52, '', '', '', '', 1, 0, 'F', '0', '0', 'credit:contract:validate', '#', 'admin', '2025-12-23 21:22:12', '', NULL, '合同验证权限');
INSERT INTO `sys_menu` VALUES (6031, 'OCR识别', 5979, 53, '', '', '', '', 1, 0, 'F', '0', '0', 'credit:contract:ocr', '#', 'admin', '2025-12-23 21:22:12', '', NULL, 'OCR识别权限');
INSERT INTO `sys_menu` VALUES (6032, '员工库查询', 5985, 10, '', '', '', '', 1, 0, 'F', '0', '0', 'credit:employee:library:query', '#', 'admin', '2025-12-23 21:22:12', '', NULL, '员工库查询权限');
INSERT INTO `sys_menu` VALUES (6033, '员工库新增', 5985, 11, '', '', '', '', 1, 0, 'F', '0', '0', 'credit:employee:library:add', '#', 'admin', '2025-12-23 21:22:12', '', NULL, '员工库新增权限');
INSERT INTO `sys_menu` VALUES (6034, '员工库修改', 5985, 12, '', '', '', '', 1, 0, 'F', '0', '0', 'credit:employee:library:edit', '#', 'admin', '2025-12-23 21:22:12', '', NULL, '员工库修改权限');
INSERT INTO `sys_menu` VALUES (6035, '员工库删除', 5985, 13, '', '', '', '', 1, 0, 'F', '0', '0', 'credit:employee:library:remove', '#', 'admin', '2025-12-23 21:22:12', '', NULL, '员工库删除权限');
INSERT INTO `sys_menu` VALUES (6036, '员工库导入', 5985, 14, '', '', '', '', 1, 0, 'F', '0', '0', 'credit:employee:library:import', '#', 'admin', '2025-12-23 21:22:12', '', NULL, '员工库导入权限');
INSERT INTO `sys_menu` VALUES (6037, '员工库导出', 5985, 15, '', '', '', '', 1, 0, 'F', '0', '0', 'credit:employee:library:export', '#', 'admin', '2025-12-23 21:22:12', '', NULL, '员工库导出权限');
INSERT INTO `sys_menu` VALUES (6038, '员工库模板下载', 5985, 16, '', '', '', '', 1, 0, 'F', '0', '0', 'credit:employee:library:template', '#', 'admin', '2025-12-23 21:22:12', '', NULL, '员工库模板下载权限');
INSERT INTO `sys_menu` VALUES (6072, '贷款管理', 0, 7, 'financing', NULL, NULL, '', 1, 0, 'M', '0', '0', '', 'money', 'admin', '2025-12-24 14:56:22', 'admin', '2025-12-25 15:00:12', '数字化信贷贷款管理模块');
INSERT INTO `sys_menu` VALUES (6073, '银行机构管理', 6072, 1, 'bank-institution', 'digitalCredit/loan/bankInstitution/index', NULL, '', 1, 0, 'C', '0', '0', 'credit:bank:list', 'bank', 'admin', '2025-12-24 14:56:22', 'admin', '2025-12-25 15:00:30', '银行机构管理页面');
INSERT INTO `sys_menu` VALUES (6074, '银行机构查询', 6073, 1, '', '', NULL, '', 1, 0, 'F', '0', '0', 'credit:bank:query', '#', 'admin', '2025-12-24 14:56:22', '', NULL, '银行机构查询权限');
INSERT INTO `sys_menu` VALUES (6075, '银行机构新增', 6073, 2, '', '', NULL, '', 1, 0, 'F', '0', '0', 'credit:bank:add', '#', 'admin', '2025-12-24 14:56:22', '', NULL, '银行机构新增权限');
INSERT INTO `sys_menu` VALUES (6076, '银行机构修改', 6073, 3, '', '', NULL, '', 1, 0, 'F', '0', '0', 'credit:bank:edit', '#', 'admin', '2025-12-24 14:56:22', '', NULL, '银行机构修改权限');
INSERT INTO `sys_menu` VALUES (6077, '银行机构删除', 6073, 4, '', '', NULL, '', 1, 0, 'F', '0', '0', 'credit:bank:remove', '#', 'admin', '2025-12-24 14:56:22', '', NULL, '银行机构删除权限');
INSERT INTO `sys_menu` VALUES (6078, '银行机构导出', 6073, 5, '', '', NULL, '', 1, 0, 'F', '0', '0', 'credit:bank:export', '#', 'admin', '2025-12-24 14:56:22', '', NULL, '银行机构导出权限');
INSERT INTO `sys_menu` VALUES (6093, '贷款审批管理', 6072, 4, 'loan-management', 'digitalCredit/loan/financing/loan-management', NULL, '', 1, 0, 'C', '0', '0', 'credit:loan:approval', 'check', 'admin', '2025-12-24 14:56:22', 'admin', '2025-12-30 16:10:59', '贷款审批管理页面');
INSERT INTO `sys_menu` VALUES (6094, '审批查询', 6093, 1, '', '', NULL, '', 1, 0, 'F', '0', '0', 'credit:loan:approval:query', '#', 'admin', '2025-12-24 14:56:22', '', NULL, '贷款审批查询权限');
INSERT INTO `sys_menu` VALUES (6095, '审批处理', 6093, 2, '', '', NULL, '', 1, 0, 'F', '0', '0', 'credit:loan:approval:process', '#', 'admin', '2025-12-24 14:56:22', '', NULL, '贷款审批处理权限');
INSERT INTO `sys_menu` VALUES (6096, '审批历史', 6093, 3, '', '', NULL, '', 1, 0, 'F', '0', '0', 'credit:loan:approval:history', '#', 'admin', '2025-12-24 14:56:22', '', NULL, '贷款审批历史权限');
INSERT INTO `sys_menu` VALUES (6097, '风险评估', 6093, 4, '', '', NULL, '', 1, 0, 'F', '0', '0', 'credit:loan:risk:assess', '#', 'admin', '2025-12-24 14:56:22', '', NULL, '贷款风险评估权限');
INSERT INTO `sys_menu` VALUES (6098, '还款管理', 6072, 5, 'repayment', 'digitalCredit/loan/repayment/index', NULL, '', 1, 0, 'C', '1', '0', 'credit:repayment:list', 'calendar', 'admin', '2025-12-24 14:56:22', '', NULL, '贷款还款管理页面');
INSERT INTO `sys_menu` VALUES (6099, '还款查询', 6098, 1, '', '', NULL, '', 1, 0, 'F', '0', '0', 'credit:repayment:query', '#', 'admin', '2025-12-24 14:56:22', '', NULL, '还款记录查询权限');
INSERT INTO `sys_menu` VALUES (6100, '还款录入', 6098, 2, '', '', NULL, '', 1, 0, 'F', '0', '0', 'credit:repayment:record', '#', 'admin', '2025-12-24 14:56:22', '', NULL, '还款记录录入权限');
INSERT INTO `sys_menu` VALUES (6101, '逾期管理', 6098, 3, '', '', NULL, '', 1, 0, 'F', '0', '0', 'credit:repayment:overdue', '#', 'admin', '2025-12-24 14:56:22', '', NULL, '逾期还款管理权限');
INSERT INTO `sys_menu` VALUES (6102, '还款计划', 6098, 4, '', '', NULL, '', 1, 0, 'F', '0', '0', 'credit:repayment:schedule', '#', 'admin', '2025-12-24 14:56:22', '', NULL, '还款计划管理权限');
INSERT INTO `sys_menu` VALUES (6103, '贷款报表', 6072, 6, 'loan-report', 'digitalCredit/loan/report/index', NULL, '', 1, 0, 'C', '1', '0', 'credit:loan:report', 'chart', 'admin', '2025-12-24 14:56:22', '', NULL, '贷款报表管理页面');
INSERT INTO `sys_menu` VALUES (6104, '报表查询', 6103, 1, '', '', NULL, '', 1, 0, 'F', '0', '0', 'credit:loan:report:query', '#', 'admin', '2025-12-24 14:56:22', '', NULL, '贷款报表查询权限');
INSERT INTO `sys_menu` VALUES (6105, '报表生成', 6103, 2, '', '', NULL, '', 1, 0, 'F', '0', '0', 'credit:loan:report:generate', '#', 'admin', '2025-12-24 14:56:22', '', NULL, '贷款报表生成权限');
INSERT INTO `sys_menu` VALUES (6106, '报表导出', 6103, 3, '', '', NULL, '', 1, 0, 'F', '0', '0', 'credit:loan:report:export', '#', 'admin', '2025-12-24 14:56:22', '', NULL, '贷款报表导出权限');
INSERT INTO `sys_menu` VALUES (6107, '统计分析', 6103, 4, '', '', NULL, '', 1, 0, 'F', '0', '0', 'credit:loan:statistics', '#', 'admin', '2025-12-24 14:56:22', '', NULL, '贷款统计分析权限');
INSERT INTO `sys_menu` VALUES (6108, '风险管理', 6072, 7, 'risk-management', 'digitalCredit/loan/riskManagement/index', NULL, '', 1, 0, 'C', '1', '0', 'credit:risk:manage', 'warning', 'admin', '2025-12-24 14:56:22', '', NULL, '贷款风险管理页面');
INSERT INTO `sys_menu` VALUES (6109, '风险评估', 6108, 1, '', '', NULL, '', 1, 0, 'F', '0', '0', 'credit:risk:assess', '#', 'admin', '2025-12-24 14:56:22', '', NULL, '风险评估权限');
INSERT INTO `sys_menu` VALUES (6110, '风险监控', 6108, 2, '', '', NULL, '', 1, 0, 'F', '0', '0', 'credit:risk:monitor', '#', 'admin', '2025-12-24 14:56:22', '', NULL, '风险监控权限');
INSERT INTO `sys_menu` VALUES (6111, '风险预警', 6108, 3, '', '', NULL, '', 1, 0, 'F', '0', '0', 'credit:risk:alert', '#', 'admin', '2025-12-24 14:56:22', '', NULL, '风险预警权限');
INSERT INTO `sys_menu` VALUES (6112, '风险处置', 6108, 4, '', '', NULL, '', 1, 0, 'F', '0', '0', 'credit:risk:handle', '#', 'admin', '2025-12-24 14:56:22', '', NULL, '风险处置权限');
INSERT INTO `sys_menu` VALUES (6118, '债权详细', 5976, 3, 'CreditDetail', 'digitalCredit/credit/detail', NULL, '', 1, 0, 'C', '1', '0', 'credit:credit:query', 'form', 'admin', '2025-12-29 23:29:25', 'admin', '2025-12-29 23:36:51', '');
INSERT INTO `sys_menu` VALUES (6119, '债权验证', 5976, 4, 'validate', 'digitalCredit/credit/validate', NULL, '', 1, 0, 'C', '1', '0', 'credit:credit:validate', 'documentation', 'admin', '2025-12-30 00:23:40', '', NULL, '');

-- ----------------------------
-- Table structure for sys_notice
-- ----------------------------
DROP TABLE IF EXISTS `sys_notice`;
CREATE TABLE `sys_notice`  (
  `notice_id` int(4) NOT NULL AUTO_INCREMENT COMMENT '公告ID',
  `notice_title` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '公告标题',
  `notice_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '公告类型（1通知 2公告）',
  `notice_content` longblob NULL COMMENT '公告内容',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '0' COMMENT '公告状态（0正常 1关闭）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`notice_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '通知公告表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_notice
-- ----------------------------
INSERT INTO `sys_notice` VALUES (1, '温馨提醒：2018-07-01 若依新版本发布啦', '2', 0xE696B0E78988E69CACE58685E5AEB9, '0', 'admin', '2025-12-16 21:48:01', '', NULL, '管理员');
INSERT INTO `sys_notice` VALUES (2, '维护通知：2018-07-01 若依系统凌晨维护', '1', 0xE7BBB4E68AA4E58685E5AEB9, '0', 'admin', '2025-12-16 21:48:01', '', NULL, '管理员');
INSERT INTO `sys_notice` VALUES (3, '贷款申请提交成功', '1', 0xE682A8E79A84E8B4B7E6ACBEE794B3E8AFB7E5B7B2E68890E58A9FE68F90E4BAA4EFBC8CE794B3E8AFB7E7BC96E58FB7EFBC9A7B6C6F616E4E756D6265727DEFBC8CE794B3E8AFB7E98791E9A29DEFBC9A7B6C6F616E416D6F756E747DE58583EFBC8CE68891E4BBACE5B086E59CA833E4B8AAE5B7A5E4BD9CE697A5E58685E5AE8CE68890E5AEA1E6A0B8E38082, '0', 'admin', '2025-12-24 14:56:22', '', NULL, '贷款申请提交通知模板');
INSERT INTO `sys_notice` VALUES (4, '贷款审批通过', '1', 0xE681ADE5969CEFBC81E682A8E79A84E8B4B7E6ACBEE794B3E8AFB7E5B7B2E5AEA1E689B9E9809AE8BF87EFBC8CE8B4B7E6ACBEE7BC96E58FB7EFBC9A7B6C6F616E4E756D6265727DEFBC8CE689B9E58786E98791E9A29DEFBC9A7B6C6F616E416D6F756E747DE58583EFBC8CE8AFB7E58F8AE697B6E58A9EE79086E694BEE6ACBEE6898BE7BBADE38082, '0', 'admin', '2025-12-24 14:56:22', '', NULL, '贷款审批通过通知模板');
INSERT INTO `sys_notice` VALUES (5, '贷款审批拒绝', '1', 0xE5BE88E68AB1E6AD89EFBC8CE682A8E79A84E8B4B7E6ACBEE794B3E8AFB7E69CAAE883BDE9809AE8BF87E5AEA1E689B9EFBC8CE8B4B7E6ACBEE7BC96E58FB7EFBC9A7B6C6F616E4E756D6265727DEFBC8CE68B92E7BB9DE58E9FE59BA0EFBC9A7B72656A656374696F6E526561736F6E7DE38082E5A682E69C89E79691E997AEE8AFB7E88194E7B3BBE5AEA2E69C8DE38082, '0', 'admin', '2025-12-24 14:56:22', '', NULL, '贷款审批拒绝通知模板');
INSERT INTO `sys_notice` VALUES (6, '还款提醒', '1', 0xE6B8A9E9A6A8E68F90E98692EFBC9AE682A8E79A84E8B4B7E6ACBE7B6C6F616E4E756D6265727DE5B086E4BA8E7B7061796D656E74446174657DE588B0E69C9FE8BF98E6ACBEEFBC8CE5BA94E8BF98E98791E9A29DEFBC9A7B7061796D656E74416D6F756E747DE58583EFBC8CE8AFB7E58F8AE697B6E8BF98E6ACBEE38082, '0', 'admin', '2025-12-24 14:56:22', '', NULL, '还款提醒通知模板');
INSERT INTO `sys_notice` VALUES (7, '逾期提醒', '2', 0xE9878DE8A681E68F90E98692EFBC9AE682A8E79A84E8B4B7E6ACBE7B6C6F616E4E756D6265727DE5B7B2E980BEE69C9F7B6F766572647565446179737DE5A4A9EFBC8CE980BEE69C9FE98791E9A29DEFBC9A7B6F766572647565416D6F756E747DE58583EFBC8CE8AFB7E7AB8BE58DB3E8BF98E6ACBEE4BBA5E5858DE5BDB1E5938DE4BFA1E794A8E8AEB0E5BD95E38082, '0', 'admin', '2025-12-24 14:56:22', '', NULL, '逾期提醒通知模板');

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


-- ----------------------------
-- Table structure for sys_post
-- ----------------------------
DROP TABLE IF EXISTS `sys_post`;
CREATE TABLE `sys_post`  (
  `post_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '岗位ID',
  `post_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '岗位编码',
  `post_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '岗位名称',
  `post_sort` int(4) NOT NULL COMMENT '显示顺序',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '状态（0正常 1停用）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`post_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '岗位信息表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_post
-- ----------------------------
INSERT INTO `sys_post` VALUES (1, 'ceo', '董事长', 1, '0', 'admin', '2025-12-16 21:48:00', '', NULL, '');
INSERT INTO `sys_post` VALUES (2, 'se', '项目经理', 2, '0', 'admin', '2025-12-16 21:48:00', '', NULL, '');
INSERT INTO `sys_post` VALUES (3, 'hr', '人力资源', 3, '0', 'admin', '2025-12-16 21:48:00', '', NULL, '');
INSERT INTO `sys_post` VALUES (4, 'user', '普通员工', 4, '0', 'admin', '2025-12-16 21:48:00', '', NULL, '');

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

-- ----------------------------
-- Records of sys_role
-- ----------------------------
INSERT INTO `sys_role` VALUES (1, '超级管理员', 'admin', 1, '1', 1, 1, '0', '0', 'admin', '2025-12-16 21:48:01', '', NULL, '超级管理员');
INSERT INTO `sys_role` VALUES (2, '普通角色', 'common', 2, '2', 1, 1, '0', '0', 'admin', '2025-12-16 21:48:01', 'admin', '2025-12-20 15:46:23', '普通角色');
INSERT INTO `sys_role` VALUES (10, '数字债权-安保公司', 'security_company', 10, '3', 1, 1, '0', '0', 'admin', '2025-12-20 01:13:26', 'admin', '2025-12-22 16:58:31', '安保公司角色，负责合同创建、债权生成、融资申请等业务');
INSERT INTO `sys_role` VALUES (11, '数字债权-安保操作员', 'security_operator', 11, '3', 1, 1, '0', '0', 'admin', '2025-12-20 01:13:26', 'admin', '2025-12-20 20:45:17', '安保公司操作员角色');
INSERT INTO `sys_role` VALUES (20, '数字债权-甲方单位', 'client_company', 20, '3', 1, 1, '0', '0', 'admin', '2025-12-20 01:13:26', 'admin', '2025-12-22 17:51:41', '甲方单位角色，负责合同确认、支付处理等业务');
INSERT INTO `sys_role` VALUES (21, '数字债权-甲方操作员', 'client_operator', 21, '3', 1, 1, '0', '0', 'admin', '2025-12-20 01:13:26', 'admin', '2025-12-20 20:45:32', '甲方单位操作员角色');
INSERT INTO `sys_role` VALUES (30, '数字债权-金融机构', 'financial_institution', 30, '3', 1, 1, '0', '0', 'admin', '2025-12-20 01:13:26', 'admin', '2025-12-20 20:45:36', '金融机构角色，负责融资审批、风险评估、资金管理等业务');
INSERT INTO `sys_role` VALUES (31, '数字债权-金融审批员', 'financial_approver', 31, '3', 1, 1, '0', '0', 'admin', '2025-12-20 01:13:26', 'admin', '2025-12-30 16:07:07', '金融机构审批员角色');
INSERT INTO `sys_role` VALUES (40, '数字债权-平台运营', 'platform_operator', 40, '3', 1, 1, '0', '0', 'admin', '2025-12-20 18:10:22', 'admin', '2025-12-20 20:45:43', '平台运营角色，负责报表分析、通知服务、区块链管理等技术运维');
INSERT INTO `sys_role` VALUES (41, '贷款管理员', 'loan_admin', 4, '1', 1, 1, '0', '0', 'admin', '2025-12-24 14:56:22', 'admin', '2025-12-30 16:08:35', '贷款管理系统管理员');
INSERT INTO `sys_role` VALUES (42, '贷款经理', 'loan_manager', 5, '2', 1, 1, '0', '0', 'admin', '2025-12-24 14:56:22', 'admin', '2025-12-30 16:08:27', '贷款业务经理');
INSERT INTO `sys_role` VALUES (43, '风险评估员', 'risk_assessor', 6, '3', 1, 1, '0', '0', 'admin', '2025-12-24 14:56:22', 'admin', '2025-12-30 16:08:17', '贷款风险评估员');
INSERT INTO `sys_role` VALUES (44, '审批员', 'loan_approver', 7, '3', 1, 1, '0', '0', 'admin', '2025-12-24 14:56:22', 'admin', '2025-12-30 16:08:07', '贷款审批员');
INSERT INTO `sys_role` VALUES (45, '财务人员', 'finance_staff', 8, '4', 1, 1, '0', '0', 'admin', '2025-12-24 14:56:22', 'admin', '2025-12-30 16:07:57', '财务管理人员');

-- ----------------------------
-- Table structure for sys_role_dept
-- ----------------------------
DROP TABLE IF EXISTS `sys_role_dept`;
CREATE TABLE `sys_role_dept`  (
  `role_id` bigint(20) NOT NULL COMMENT '角色ID',
  `dept_id` bigint(20) NOT NULL COMMENT '部门ID',
  PRIMARY KEY (`role_id`, `dept_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '角色和部门关联表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_role_dept
-- ----------------------------
INSERT INTO `sys_role_dept` VALUES (2, 100);
INSERT INTO `sys_role_dept` VALUES (2, 101);
INSERT INTO `sys_role_dept` VALUES (2, 105);
INSERT INTO `sys_role_dept` VALUES (10, 200);
INSERT INTO `sys_role_dept` VALUES (10, 201);
INSERT INTO `sys_role_dept` VALUES (10, 202);
INSERT INTO `sys_role_dept` VALUES (11, 200);
INSERT INTO `sys_role_dept` VALUES (20, 210);
INSERT INTO `sys_role_dept` VALUES (20, 211);
INSERT INTO `sys_role_dept` VALUES (20, 212);
INSERT INTO `sys_role_dept` VALUES (21, 210);
INSERT INTO `sys_role_dept` VALUES (30, 220);
INSERT INTO `sys_role_dept` VALUES (30, 221);
INSERT INTO `sys_role_dept` VALUES (30, 222);
INSERT INTO `sys_role_dept` VALUES (31, 220);

-- ----------------------------
-- Table structure for sys_role_menu
-- ----------------------------
DROP TABLE IF EXISTS `sys_role_menu`;
CREATE TABLE `sys_role_menu`  (
  `role_id` bigint(20) NOT NULL COMMENT '角色ID',
  `menu_id` bigint(20) NOT NULL COMMENT '菜单ID',
  PRIMARY KEY (`role_id`, `menu_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '角色和菜单关联表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_role_menu
-- ----------------------------
INSERT INTO `sys_role_menu` VALUES (1, 6011);
INSERT INTO `sys_role_menu` VALUES (1, 6012);
INSERT INTO `sys_role_menu` VALUES (1, 6013);
INSERT INTO `sys_role_menu` VALUES (1, 6014);
INSERT INTO `sys_role_menu` VALUES (1, 6015);
INSERT INTO `sys_role_menu` VALUES (1, 6016);
INSERT INTO `sys_role_menu` VALUES (1, 6017);
INSERT INTO `sys_role_menu` VALUES (1, 6018);
INSERT INTO `sys_role_menu` VALUES (1, 6019);
INSERT INTO `sys_role_menu` VALUES (1, 6020);
INSERT INTO `sys_role_menu` VALUES (1, 6021);
INSERT INTO `sys_role_menu` VALUES (1, 6022);
INSERT INTO `sys_role_menu` VALUES (1, 6023);
INSERT INTO `sys_role_menu` VALUES (1, 6024);
INSERT INTO `sys_role_menu` VALUES (1, 6025);
INSERT INTO `sys_role_menu` VALUES (1, 6026);
INSERT INTO `sys_role_menu` VALUES (1, 6027);
INSERT INTO `sys_role_menu` VALUES (1, 6028);
INSERT INTO `sys_role_menu` VALUES (1, 6029);
INSERT INTO `sys_role_menu` VALUES (1, 6030);
INSERT INTO `sys_role_menu` VALUES (1, 6031);
INSERT INTO `sys_role_menu` VALUES (1, 6032);
INSERT INTO `sys_role_menu` VALUES (1, 6033);
INSERT INTO `sys_role_menu` VALUES (1, 6034);
INSERT INTO `sys_role_menu` VALUES (1, 6035);
INSERT INTO `sys_role_menu` VALUES (1, 6036);
INSERT INTO `sys_role_menu` VALUES (1, 6037);
INSERT INTO `sys_role_menu` VALUES (1, 6038);
INSERT INTO `sys_role_menu` VALUES (1, 6039);
INSERT INTO `sys_role_menu` VALUES (1, 6040);
INSERT INTO `sys_role_menu` VALUES (1, 6041);
INSERT INTO `sys_role_menu` VALUES (1, 6042);
INSERT INTO `sys_role_menu` VALUES (1, 6043);
INSERT INTO `sys_role_menu` VALUES (1, 6044);
INSERT INTO `sys_role_menu` VALUES (1, 6045);
INSERT INTO `sys_role_menu` VALUES (1, 6046);
INSERT INTO `sys_role_menu` VALUES (1, 6047);
INSERT INTO `sys_role_menu` VALUES (1, 6048);
INSERT INTO `sys_role_menu` VALUES (1, 6049);
INSERT INTO `sys_role_menu` VALUES (1, 6050);
INSERT INTO `sys_role_menu` VALUES (1, 6051);
INSERT INTO `sys_role_menu` VALUES (1, 6052);
INSERT INTO `sys_role_menu` VALUES (1, 6053);
INSERT INTO `sys_role_menu` VALUES (1, 6054);
INSERT INTO `sys_role_menu` VALUES (1, 6055);
INSERT INTO `sys_role_menu` VALUES (1, 6056);
INSERT INTO `sys_role_menu` VALUES (1, 6057);
INSERT INTO `sys_role_menu` VALUES (1, 6058);
INSERT INTO `sys_role_menu` VALUES (1, 6059);
INSERT INTO `sys_role_menu` VALUES (1, 6060);
INSERT INTO `sys_role_menu` VALUES (1, 6061);
INSERT INTO `sys_role_menu` VALUES (1, 6062);
INSERT INTO `sys_role_menu` VALUES (1, 6063);
INSERT INTO `sys_role_menu` VALUES (1, 6064);
INSERT INTO `sys_role_menu` VALUES (1, 6065);
INSERT INTO `sys_role_menu` VALUES (1, 6066);
INSERT INTO `sys_role_menu` VALUES (10, 1);
INSERT INTO `sys_role_menu` VALUES (10, 2);
INSERT INTO `sys_role_menu` VALUES (10, 3);
INSERT INTO `sys_role_menu` VALUES (10, 100);
INSERT INTO `sys_role_menu` VALUES (10, 101);
INSERT INTO `sys_role_menu` VALUES (10, 102);
INSERT INTO `sys_role_menu` VALUES (10, 103);
INSERT INTO `sys_role_menu` VALUES (10, 104);
INSERT INTO `sys_role_menu` VALUES (10, 105);
INSERT INTO `sys_role_menu` VALUES (10, 106);
INSERT INTO `sys_role_menu` VALUES (10, 107);
INSERT INTO `sys_role_menu` VALUES (10, 108);
INSERT INTO `sys_role_menu` VALUES (10, 109);
INSERT INTO `sys_role_menu` VALUES (10, 110);
INSERT INTO `sys_role_menu` VALUES (10, 111);
INSERT INTO `sys_role_menu` VALUES (10, 112);
INSERT INTO `sys_role_menu` VALUES (10, 113);
INSERT INTO `sys_role_menu` VALUES (10, 114);
INSERT INTO `sys_role_menu` VALUES (10, 115);
INSERT INTO `sys_role_menu` VALUES (10, 116);
INSERT INTO `sys_role_menu` VALUES (10, 117);
INSERT INTO `sys_role_menu` VALUES (10, 500);
INSERT INTO `sys_role_menu` VALUES (10, 501);
INSERT INTO `sys_role_menu` VALUES (10, 1000);
INSERT INTO `sys_role_menu` VALUES (10, 1001);
INSERT INTO `sys_role_menu` VALUES (10, 1002);
INSERT INTO `sys_role_menu` VALUES (10, 1003);
INSERT INTO `sys_role_menu` VALUES (10, 1004);
INSERT INTO `sys_role_menu` VALUES (10, 1005);
INSERT INTO `sys_role_menu` VALUES (10, 1006);
INSERT INTO `sys_role_menu` VALUES (10, 1007);
INSERT INTO `sys_role_menu` VALUES (10, 1008);
INSERT INTO `sys_role_menu` VALUES (10, 1009);
INSERT INTO `sys_role_menu` VALUES (10, 1010);
INSERT INTO `sys_role_menu` VALUES (10, 1011);
INSERT INTO `sys_role_menu` VALUES (10, 1012);
INSERT INTO `sys_role_menu` VALUES (10, 1013);
INSERT INTO `sys_role_menu` VALUES (10, 1014);
INSERT INTO `sys_role_menu` VALUES (10, 1015);
INSERT INTO `sys_role_menu` VALUES (10, 1016);
INSERT INTO `sys_role_menu` VALUES (10, 1017);
INSERT INTO `sys_role_menu` VALUES (10, 1018);
INSERT INTO `sys_role_menu` VALUES (10, 1019);
INSERT INTO `sys_role_menu` VALUES (10, 1020);
INSERT INTO `sys_role_menu` VALUES (10, 1021);
INSERT INTO `sys_role_menu` VALUES (10, 1022);
INSERT INTO `sys_role_menu` VALUES (10, 1023);
INSERT INTO `sys_role_menu` VALUES (10, 1024);
INSERT INTO `sys_role_menu` VALUES (10, 1025);
INSERT INTO `sys_role_menu` VALUES (10, 1026);
INSERT INTO `sys_role_menu` VALUES (10, 1027);
INSERT INTO `sys_role_menu` VALUES (10, 1028);
INSERT INTO `sys_role_menu` VALUES (10, 1029);
INSERT INTO `sys_role_menu` VALUES (10, 1030);
INSERT INTO `sys_role_menu` VALUES (10, 1031);
INSERT INTO `sys_role_menu` VALUES (10, 1032);
INSERT INTO `sys_role_menu` VALUES (10, 1033);
INSERT INTO `sys_role_menu` VALUES (10, 1034);
INSERT INTO `sys_role_menu` VALUES (10, 1035);
INSERT INTO `sys_role_menu` VALUES (10, 1036);
INSERT INTO `sys_role_menu` VALUES (10, 1037);
INSERT INTO `sys_role_menu` VALUES (10, 1038);
INSERT INTO `sys_role_menu` VALUES (10, 1039);
INSERT INTO `sys_role_menu` VALUES (10, 1040);
INSERT INTO `sys_role_menu` VALUES (10, 1041);
INSERT INTO `sys_role_menu` VALUES (10, 1042);
INSERT INTO `sys_role_menu` VALUES (10, 1043);
INSERT INTO `sys_role_menu` VALUES (10, 1044);
INSERT INTO `sys_role_menu` VALUES (10, 1045);
INSERT INTO `sys_role_menu` VALUES (10, 1046);
INSERT INTO `sys_role_menu` VALUES (10, 1047);
INSERT INTO `sys_role_menu` VALUES (10, 1048);
INSERT INTO `sys_role_menu` VALUES (10, 1049);
INSERT INTO `sys_role_menu` VALUES (10, 1050);
INSERT INTO `sys_role_menu` VALUES (10, 1051);
INSERT INTO `sys_role_menu` VALUES (10, 1052);
INSERT INTO `sys_role_menu` VALUES (10, 1053);
INSERT INTO `sys_role_menu` VALUES (10, 1054);
INSERT INTO `sys_role_menu` VALUES (10, 1055);
INSERT INTO `sys_role_menu` VALUES (10, 1056);
INSERT INTO `sys_role_menu` VALUES (10, 1057);
INSERT INTO `sys_role_menu` VALUES (10, 1058);
INSERT INTO `sys_role_menu` VALUES (10, 1059);
INSERT INTO `sys_role_menu` VALUES (10, 1060);
INSERT INTO `sys_role_menu` VALUES (10, 5979);
INSERT INTO `sys_role_menu` VALUES (10, 5980);
INSERT INTO `sys_role_menu` VALUES (10, 5981);
INSERT INTO `sys_role_menu` VALUES (10, 5982);
INSERT INTO `sys_role_menu` VALUES (20, 1);
INSERT INTO `sys_role_menu` VALUES (20, 2);
INSERT INTO `sys_role_menu` VALUES (20, 3);
INSERT INTO `sys_role_menu` VALUES (20, 100);
INSERT INTO `sys_role_menu` VALUES (20, 101);
INSERT INTO `sys_role_menu` VALUES (20, 102);
INSERT INTO `sys_role_menu` VALUES (20, 103);
INSERT INTO `sys_role_menu` VALUES (20, 104);
INSERT INTO `sys_role_menu` VALUES (20, 105);
INSERT INTO `sys_role_menu` VALUES (20, 106);
INSERT INTO `sys_role_menu` VALUES (20, 107);
INSERT INTO `sys_role_menu` VALUES (20, 108);
INSERT INTO `sys_role_menu` VALUES (20, 109);
INSERT INTO `sys_role_menu` VALUES (20, 110);
INSERT INTO `sys_role_menu` VALUES (20, 111);
INSERT INTO `sys_role_menu` VALUES (20, 112);
INSERT INTO `sys_role_menu` VALUES (20, 113);
INSERT INTO `sys_role_menu` VALUES (20, 114);
INSERT INTO `sys_role_menu` VALUES (20, 115);
INSERT INTO `sys_role_menu` VALUES (20, 116);
INSERT INTO `sys_role_menu` VALUES (20, 117);
INSERT INTO `sys_role_menu` VALUES (20, 500);
INSERT INTO `sys_role_menu` VALUES (20, 501);
INSERT INTO `sys_role_menu` VALUES (20, 1000);
INSERT INTO `sys_role_menu` VALUES (20, 1001);
INSERT INTO `sys_role_menu` VALUES (20, 1002);
INSERT INTO `sys_role_menu` VALUES (20, 1003);
INSERT INTO `sys_role_menu` VALUES (20, 1004);
INSERT INTO `sys_role_menu` VALUES (20, 1005);
INSERT INTO `sys_role_menu` VALUES (20, 1006);
INSERT INTO `sys_role_menu` VALUES (20, 1007);
INSERT INTO `sys_role_menu` VALUES (20, 1008);
INSERT INTO `sys_role_menu` VALUES (20, 1009);
INSERT INTO `sys_role_menu` VALUES (20, 1010);
INSERT INTO `sys_role_menu` VALUES (20, 1011);
INSERT INTO `sys_role_menu` VALUES (20, 1012);
INSERT INTO `sys_role_menu` VALUES (20, 1013);
INSERT INTO `sys_role_menu` VALUES (20, 1014);
INSERT INTO `sys_role_menu` VALUES (20, 1015);
INSERT INTO `sys_role_menu` VALUES (20, 1016);
INSERT INTO `sys_role_menu` VALUES (20, 1017);
INSERT INTO `sys_role_menu` VALUES (20, 1018);
INSERT INTO `sys_role_menu` VALUES (20, 1019);
INSERT INTO `sys_role_menu` VALUES (20, 1020);
INSERT INTO `sys_role_menu` VALUES (20, 1021);
INSERT INTO `sys_role_menu` VALUES (20, 1022);
INSERT INTO `sys_role_menu` VALUES (20, 1023);
INSERT INTO `sys_role_menu` VALUES (20, 1024);
INSERT INTO `sys_role_menu` VALUES (20, 1025);
INSERT INTO `sys_role_menu` VALUES (20, 1026);
INSERT INTO `sys_role_menu` VALUES (20, 1027);
INSERT INTO `sys_role_menu` VALUES (20, 1028);
INSERT INTO `sys_role_menu` VALUES (20, 1029);
INSERT INTO `sys_role_menu` VALUES (20, 1030);
INSERT INTO `sys_role_menu` VALUES (20, 1031);
INSERT INTO `sys_role_menu` VALUES (20, 1032);
INSERT INTO `sys_role_menu` VALUES (20, 1033);
INSERT INTO `sys_role_menu` VALUES (20, 1034);
INSERT INTO `sys_role_menu` VALUES (20, 1035);
INSERT INTO `sys_role_menu` VALUES (20, 1036);
INSERT INTO `sys_role_menu` VALUES (20, 1037);
INSERT INTO `sys_role_menu` VALUES (20, 1038);
INSERT INTO `sys_role_menu` VALUES (20, 1039);
INSERT INTO `sys_role_menu` VALUES (20, 1040);
INSERT INTO `sys_role_menu` VALUES (20, 1041);
INSERT INTO `sys_role_menu` VALUES (20, 1042);
INSERT INTO `sys_role_menu` VALUES (20, 1043);
INSERT INTO `sys_role_menu` VALUES (20, 1044);
INSERT INTO `sys_role_menu` VALUES (20, 1045);
INSERT INTO `sys_role_menu` VALUES (20, 1046);
INSERT INTO `sys_role_menu` VALUES (20, 1047);
INSERT INTO `sys_role_menu` VALUES (20, 1048);
INSERT INTO `sys_role_menu` VALUES (20, 1049);
INSERT INTO `sys_role_menu` VALUES (20, 1050);
INSERT INTO `sys_role_menu` VALUES (20, 1051);
INSERT INTO `sys_role_menu` VALUES (20, 1052);
INSERT INTO `sys_role_menu` VALUES (20, 1053);
INSERT INTO `sys_role_menu` VALUES (20, 1054);
INSERT INTO `sys_role_menu` VALUES (20, 1055);
INSERT INTO `sys_role_menu` VALUES (20, 1056);
INSERT INTO `sys_role_menu` VALUES (20, 1057);
INSERT INTO `sys_role_menu` VALUES (20, 1058);
INSERT INTO `sys_role_menu` VALUES (20, 1059);
INSERT INTO `sys_role_menu` VALUES (20, 1060);
INSERT INTO `sys_role_menu` VALUES (20, 5979);
INSERT INTO `sys_role_menu` VALUES (20, 5980);
INSERT INTO `sys_role_menu` VALUES (20, 5982);
INSERT INTO `sys_role_menu` VALUES (20, 5983);
INSERT INTO `sys_role_menu` VALUES (31, 1);
INSERT INTO `sys_role_menu` VALUES (31, 2);
INSERT INTO `sys_role_menu` VALUES (31, 3);
INSERT INTO `sys_role_menu` VALUES (31, 100);
INSERT INTO `sys_role_menu` VALUES (31, 101);
INSERT INTO `sys_role_menu` VALUES (31, 102);
INSERT INTO `sys_role_menu` VALUES (31, 103);
INSERT INTO `sys_role_menu` VALUES (31, 104);
INSERT INTO `sys_role_menu` VALUES (31, 105);
INSERT INTO `sys_role_menu` VALUES (31, 106);
INSERT INTO `sys_role_menu` VALUES (31, 107);
INSERT INTO `sys_role_menu` VALUES (31, 108);
INSERT INTO `sys_role_menu` VALUES (31, 109);
INSERT INTO `sys_role_menu` VALUES (31, 110);
INSERT INTO `sys_role_menu` VALUES (31, 111);
INSERT INTO `sys_role_menu` VALUES (31, 112);
INSERT INTO `sys_role_menu` VALUES (31, 113);
INSERT INTO `sys_role_menu` VALUES (31, 114);
INSERT INTO `sys_role_menu` VALUES (31, 115);
INSERT INTO `sys_role_menu` VALUES (31, 116);
INSERT INTO `sys_role_menu` VALUES (31, 117);
INSERT INTO `sys_role_menu` VALUES (31, 500);
INSERT INTO `sys_role_menu` VALUES (31, 501);
INSERT INTO `sys_role_menu` VALUES (31, 1000);
INSERT INTO `sys_role_menu` VALUES (31, 1001);
INSERT INTO `sys_role_menu` VALUES (31, 1002);
INSERT INTO `sys_role_menu` VALUES (31, 1003);
INSERT INTO `sys_role_menu` VALUES (31, 1004);
INSERT INTO `sys_role_menu` VALUES (31, 1005);
INSERT INTO `sys_role_menu` VALUES (31, 1006);
INSERT INTO `sys_role_menu` VALUES (31, 1007);
INSERT INTO `sys_role_menu` VALUES (31, 1008);
INSERT INTO `sys_role_menu` VALUES (31, 1009);
INSERT INTO `sys_role_menu` VALUES (31, 1010);
INSERT INTO `sys_role_menu` VALUES (31, 1011);
INSERT INTO `sys_role_menu` VALUES (31, 1012);
INSERT INTO `sys_role_menu` VALUES (31, 1013);
INSERT INTO `sys_role_menu` VALUES (31, 1014);
INSERT INTO `sys_role_menu` VALUES (31, 1015);
INSERT INTO `sys_role_menu` VALUES (31, 1016);
INSERT INTO `sys_role_menu` VALUES (31, 1017);
INSERT INTO `sys_role_menu` VALUES (31, 1018);
INSERT INTO `sys_role_menu` VALUES (31, 1019);
INSERT INTO `sys_role_menu` VALUES (31, 1020);
INSERT INTO `sys_role_menu` VALUES (31, 1021);
INSERT INTO `sys_role_menu` VALUES (31, 1022);
INSERT INTO `sys_role_menu` VALUES (31, 1023);
INSERT INTO `sys_role_menu` VALUES (31, 1024);
INSERT INTO `sys_role_menu` VALUES (31, 1025);
INSERT INTO `sys_role_menu` VALUES (31, 1026);
INSERT INTO `sys_role_menu` VALUES (31, 1027);
INSERT INTO `sys_role_menu` VALUES (31, 1028);
INSERT INTO `sys_role_menu` VALUES (31, 1029);
INSERT INTO `sys_role_menu` VALUES (31, 1030);
INSERT INTO `sys_role_menu` VALUES (31, 1031);
INSERT INTO `sys_role_menu` VALUES (31, 1032);
INSERT INTO `sys_role_menu` VALUES (31, 1033);
INSERT INTO `sys_role_menu` VALUES (31, 1034);
INSERT INTO `sys_role_menu` VALUES (31, 1035);
INSERT INTO `sys_role_menu` VALUES (31, 1036);
INSERT INTO `sys_role_menu` VALUES (31, 1037);
INSERT INTO `sys_role_menu` VALUES (31, 1038);
INSERT INTO `sys_role_menu` VALUES (31, 1039);
INSERT INTO `sys_role_menu` VALUES (31, 1040);
INSERT INTO `sys_role_menu` VALUES (31, 1041);
INSERT INTO `sys_role_menu` VALUES (31, 1042);
INSERT INTO `sys_role_menu` VALUES (31, 1043);
INSERT INTO `sys_role_menu` VALUES (31, 1044);
INSERT INTO `sys_role_menu` VALUES (31, 1045);
INSERT INTO `sys_role_menu` VALUES (31, 1046);
INSERT INTO `sys_role_menu` VALUES (31, 1047);
INSERT INTO `sys_role_menu` VALUES (31, 1048);
INSERT INTO `sys_role_menu` VALUES (31, 1049);
INSERT INTO `sys_role_menu` VALUES (31, 1050);
INSERT INTO `sys_role_menu` VALUES (31, 1051);
INSERT INTO `sys_role_menu` VALUES (31, 1052);
INSERT INTO `sys_role_menu` VALUES (31, 1053);
INSERT INTO `sys_role_menu` VALUES (31, 1054);
INSERT INTO `sys_role_menu` VALUES (31, 1055);
INSERT INTO `sys_role_menu` VALUES (31, 1056);
INSERT INTO `sys_role_menu` VALUES (31, 1057);
INSERT INTO `sys_role_menu` VALUES (31, 1058);
INSERT INTO `sys_role_menu` VALUES (31, 1059);
INSERT INTO `sys_role_menu` VALUES (31, 1060);

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

-- ----------------------------
-- Records of sys_user
-- ----------------------------
INSERT INTO `sys_user` VALUES (1, 103, 'admin', '超级管理员', '00', 'cj@163.com', '15888888888', '1', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', '2025-12-30 15:59:31', '2025-12-16 21:48:00', 'admin', '2025-12-16 21:48:00', '', '2025-12-21 20:46:25', '管理员');
INSERT INTO `sys_user` VALUES (2, 105, 'ry', '若依', '00', 'ry@qq.com', '15666666666', '1', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', '2025-12-16 21:48:00', '2025-12-16 21:48:00', 'admin', '2025-12-16 21:48:00', '', NULL, '测试员');
INSERT INTO `sys_user` VALUES (100, 201, 'security_admin_a', '安保公司A管理员', '00', 'securitya_admin@anxin.com', '13800000101', '0', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', '2025-12-22 16:58:40', '2025-12-20 01:13:26', 'admin', '2025-12-20 01:13:26', '', NULL, '安保公司A管理员');
INSERT INTO `sys_user` VALUES (101, 201, 'security_op_a', '安保公司A操作员', '00', 'securitya_op@anxin.com', '13800000102', '0', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', '2025-12-20 01:13:26', '2025-12-20 01:13:26', 'admin', '2025-12-20 01:13:26', '', NULL, '安保公司A操作员');
INSERT INTO `sys_user` VALUES (102, 202, 'security_admin_b', '安保公司B管理员', '00', 'securityb_admin@anxin.com', '13800000103', '0', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', '2025-12-20 01:13:26', '2025-12-20 01:13:26', 'admin', '2025-12-20 01:13:26', '', NULL, '安保公司B管理员');
INSERT INTO `sys_user` VALUES (103, 202, 'security_op_b', '安保公司B操作员', '00', 'securityb_op@anxin.com', '13800000104', '0', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', '2025-12-20 01:13:26', '2025-12-20 01:13:26', 'admin', '2025-12-20 01:13:26', '', NULL, '安保公司B操作员');
INSERT INTO `sys_user` VALUES (200, 211, 'client_admin_a', '甲方单位A管理员', '00', 'clienta_admin@anxin.com', '13800000201', '0', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', '2025-12-22 17:52:00', '2025-12-20 01:13:26', 'admin', '2025-12-20 01:13:26', '', NULL, '甲方单位A管理员');
INSERT INTO `sys_user` VALUES (201, 211, 'client_op_a', '甲方单位A操作员', '00', 'clienta_op@anxin.com', '13800000202', '0', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', '2025-12-20 01:13:26', '2025-12-20 01:13:26', 'admin', '2025-12-20 01:13:26', '', NULL, '甲方单位A操作员');
INSERT INTO `sys_user` VALUES (202, 212, 'client_admin_b', '甲方单位B管理员', '00', 'clientb_admin@anxin.com', '13800000203', '0', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', '2025-12-20 01:13:26', '2025-12-20 01:13:26', 'admin', '2025-12-20 01:13:26', '', NULL, '甲方单位B管理员');
INSERT INTO `sys_user` VALUES (203, 212, 'client_op_b', '甲方单位B操作员', '00', 'clientb_op@anxin.com', '13800000204', '0', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', '2025-12-20 01:13:26', '2025-12-20 01:13:26', 'admin', '2025-12-20 01:13:26', '', NULL, '甲方单位B操作员');
INSERT INTO `sys_user` VALUES (300, 221, 'finance_admin_a', '银行A管理员', '00', 'banka_admin@anxin.com', '13800000301', '0', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', '2025-12-25 23:20:38', '2025-12-20 01:13:26', 'admin', '2025-12-20 01:13:26', '', NULL, '银行A管理员');
INSERT INTO `sys_user` VALUES (301, 221, 'finance_approver_a', '银行A审批员', '00', 'banka_approver@anxin.com', '13800000302', '0', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', '2025-12-20 01:13:26', '2025-12-20 01:13:26', 'admin', '2025-12-20 01:13:26', '', NULL, '银行A审批员');
INSERT INTO `sys_user` VALUES (302, 222, 'finance_admin_b', '银行B管理员', '00', 'bankb_admin@anxin.com', '13800000303', '0', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', '2025-12-20 01:13:26', '2025-12-20 01:13:26', 'admin', '2025-12-20 01:13:26', '', NULL, '银行B管理员');
INSERT INTO `sys_user` VALUES (303, 222, 'finance_approver_b', '银行B审批员', '00', 'bankb_approver@anxin.com', '13800000304', '0', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', '2025-12-20 01:13:26', '2025-12-20 01:13:26', 'admin', '2025-12-20 01:13:26', '', NULL, '银行B审批员');

-- ----------------------------
-- Table structure for sys_user_post
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_post`;
CREATE TABLE `sys_user_post`  (
  `user_id` bigint(20) NOT NULL COMMENT '用户ID',
  `post_id` bigint(20) NOT NULL COMMENT '岗位ID',
  PRIMARY KEY (`user_id`, `post_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '用户与岗位关联表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_user_post
-- ----------------------------
INSERT INTO `sys_user_post` VALUES (1, 1);
INSERT INTO `sys_user_post` VALUES (2, 2);

-- ----------------------------
-- Table structure for sys_user_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_role`;
CREATE TABLE `sys_user_role`  (
  `user_id` bigint(20) NOT NULL COMMENT '用户ID',
  `role_id` bigint(20) NOT NULL COMMENT '角色ID',
  PRIMARY KEY (`user_id`, `role_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '用户和角色关联表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_user_role
-- ----------------------------
INSERT INTO `sys_user_role` VALUES (1, 1);
INSERT INTO `sys_user_role` VALUES (2, 2);
INSERT INTO `sys_user_role` VALUES (100, 10);
INSERT INTO `sys_user_role` VALUES (101, 11);
INSERT INTO `sys_user_role` VALUES (102, 10);
INSERT INTO `sys_user_role` VALUES (103, 11);
INSERT INTO `sys_user_role` VALUES (200, 20);
INSERT INTO `sys_user_role` VALUES (201, 21);
INSERT INTO `sys_user_role` VALUES (202, 20);
INSERT INTO `sys_user_role` VALUES (203, 21);
INSERT INTO `sys_user_role` VALUES (300, 30);
INSERT INTO `sys_user_role` VALUES (300, 31);
INSERT INTO `sys_user_role` VALUES (301, 31);
INSERT INTO `sys_user_role` VALUES (302, 30);
INSERT INTO `sys_user_role` VALUES (302, 31);
INSERT INTO `sys_user_role` VALUES (303, 31);

-- ----------------------------
-- View structure for v_bank_loan_summary
-- ----------------------------
DROP VIEW IF EXISTS `v_bank_loan_summary`;
CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `v_bank_loan_summary` AS select `bi`.`bank_id` AS `bank_id`,`bi`.`bank_name` AS `bank_name`,`bi`.`bank_type` AS `bank_type`,count(`spl`.`link_id`) AS `total_loans`,sum(`spl`.`loan_amount`) AS `total_amount`,avg(`spl`.`loan_amount`) AS `avg_amount`,avg(`spl`.`interest_rate`) AS `avg_interest_rate`,count((case when (`spl`.`loan_status` = 'APPROVED') then 1 end)) AS `approved_count`,count((case when (`spl`.`loan_status` = 'REJECTED') then 1 end)) AS `rejected_count`,round(((count((case when (`spl`.`loan_status` = 'APPROVED') then 1 end)) * 100.0) / count(`spl`.`link_id`)),2) AS `approval_rate` from (`dc_bank_institution` `bi` left join `dc_service_period_loan` `spl` on((`bi`.`bank_id` = `spl`.`bank_institution_id`))) where (`bi`.`status` = '0') group by `bi`.`bank_id`,`bi`.`bank_name`,`bi`.`bank_type`;

-- ----------------------------
-- View structure for v_loan_statistics
-- ----------------------------
DROP VIEW IF EXISTS `v_loan_statistics`;
CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `v_loan_statistics` AS select `sp`.`service_period_id` AS `service_period_id`,`sp`.`period_number` AS `period_number`,`sp`.`service_start_date` AS `service_start_date`,`sp`.`service_end_date` AS `service_end_date`,count(`spl`.`link_id`) AS `total_loans`,sum((case when (`spl`.`loan_status` = 'APPROVED') then 1 else 0 end)) AS `approved_loans`,sum((case when (`spl`.`loan_status` = 'REJECTED') then 1 else 0 end)) AS `rejected_loans`,sum((case when (`spl`.`loan_status` = 'ACTIVE') then 1 else 0 end)) AS `active_loans`,sum(`spl`.`loan_amount`) AS `total_loan_amount`,avg(`spl`.`loan_amount`) AS `avg_loan_amount`,sum(`spl`.`monthly_payment`) AS `total_monthly_payment`,avg(`spl`.`interest_rate`) AS `avg_interest_rate`,avg(`spl`.`loan_term_months`) AS `avg_loan_term`,count(distinct `spl`.`bank_institution_id`) AS `bank_count` from (`dc_service_period` `sp` left join `dc_service_period_loan` `spl` on((`sp`.`service_period_id` = `spl`.`service_period_id`))) group by `sp`.`service_period_id`,`sp`.`period_number`,`sp`.`service_start_date`,`sp`.`service_end_date`;

-- ----------------------------
-- View structure for v_validation_log_summary
-- ----------------------------
DROP VIEW IF EXISTS `v_validation_log_summary`;
CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `v_validation_log_summary` AS select cast(`dc_validation_log`.`log_time` as date) AS `log_date`,`dc_validation_log`.`log_level` AS `log_level`,`dc_validation_log`.`log_type` AS `log_type`,count(0) AS `log_count`,avg(`dc_validation_log`.`execution_duration`) AS `avg_duration`,max(`dc_validation_log`.`execution_duration`) AS `max_duration`,min(`dc_validation_log`.`execution_duration`) AS `min_duration` from `dc_validation_log` where (`dc_validation_log`.`execution_duration` is not null) group by cast(`dc_validation_log`.`log_time` as date),`dc_validation_log`.`log_level`,`dc_validation_log`.`log_type` order by `log_date` desc,`log_count` desc;

-- ----------------------------
-- Procedure structure for sp_cleanup_validation_logs
-- ----------------------------
DROP PROCEDURE IF EXISTS `sp_cleanup_validation_logs`;
delimiter ;;
CREATE PROCEDURE `sp_cleanup_validation_logs`(IN days_to_keep INT)
BEGIN
    DECLARE done INT DEFAULT FALSE;
    DECLARE cleanup_date DATE;
    
    -- 计算清理日期
    SET cleanup_date = DATE_SUB(CURDATE(), INTERVAL days_to_keep DAY);
    
    -- 删除过期日志
    DELETE FROM `dc_validation_log` 
    WHERE DATE(log_time) < cleanup_date;
    
    -- 返回清理结果
    SELECT ROW_COUNT() as deleted_rows, cleanup_date as cleanup_before_date;
END
;;
delimiter ;

SET FOREIGN_KEY_CHECKS = 1;
