/*
 Navicat Premium Data Transfer

 Source Server         : local_mariadb
 Source Server Type    : MariaDB
 Source Server Version : 100338 (10.3.38-MariaDB)
 Source Host           : localhost:33066
 Source Schema         : omc_db

 Target Server Type    : MariaDB
 Target Server Version : 100338 (10.3.38-MariaDB)
 File Encoding         : 65001

 Date: 16/08/2023 09:20:14
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for config
-- ----------------------------
DROP TABLE IF EXISTS `config`;
CREATE TABLE `config`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `module_name` varchar(32) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
  `config_tag` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `title_json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL,
  `value` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
  `value_json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL,
  `update_time` datetime NULL DEFAULT current_timestamp() ON UPDATE CURRENT_TIMESTAMP,
  `comment` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 31 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of config
-- ----------------------------
INSERT INTO `config` VALUES (1, 'Alarm', 'historyDuration', '{\"cn\": \"历史告警保留时间间隔(天)\", \"en\": \"History alarm duration(day)\"}', '90', NULL, '2023-07-25 20:41:18', NULL);
INSERT INTO `config` VALUES (2, 'LOG', 'logDuration', '{\"cn\": \"日志保留时间(天)\", \"en\": \"Log saved duration(day)\"}', '90', NULL, '2023-05-08 17:40:28', NULL);
INSERT INTO `config` VALUES (3, 'LOG', 'logCapacity', '{\"cn\": \"日志占用空间(MB)\", \"en\": \"Log occupation space(MB)\"}', '1344', NULL, '2023-08-02 17:20:39', NULL);
INSERT INTO `config` VALUES (4, 'PM', 'pmBackupTask', '{\"cn\": \"性能数据报表定期备份(天)\", \"en\": \"PM data backup task(day)\"}', '2', NULL, '2023-07-31 14:49:11', NULL);
INSERT INTO `config` VALUES (5, 'Alarm', 'syncTaskPeriod', '{\"cn\": \"告警同步周期时长(小时)\", \"en\": \"Alarm sync task period(小时)\"}', '24', '{\"alarmEnd\":\"2023-08-21 00:00:00\",\"alarmStart\":\"2023-08-08 00:00:00\",\"syncTaskPeriod\":\"23\",\"unit\":\"hour\"}', '2023-08-10 20:03:38', NULL);
INSERT INTO `config` VALUES (6, 'Alarm', 'displayFilter', '{\"cn\": \"告警显示过滤设置\", \"en\": \"Alarm filter setting\"}', '', '{}', '2023-07-27 15:02:23', NULL);
INSERT INTO `config` VALUES (7, 'Alarm', 'autoAlarmAck', '{\"cn\": \"告警自动确认设置\", \"en\": \"Alarm automatic ack setting\"}', '', '{\"alarm_status\":\"0\",\"alarm_type\":\"EquipmentAlarm\",\"orig_severity\":\"Major\",\"ack_user\":\"admin\"}', '2023-07-28 08:07:02', NULL);
INSERT INTO `config` VALUES (8, 'PM', 'keepPMCKpi', '{\"cn\": \"删除指标保留时长(天)\", \"en\": \"Keep custom pm kpi duration(day)\"}', '4', NULL, '2023-07-29 11:01:45', NULL);
INSERT INTO `config` VALUES (9, 'Security', 'sessionExpires', '{\"cn\": \"登录会话超时时长(秒)\", \"en\": \"User\'s session expires(second)\"}', '1800000', NULL, '2023-07-31 09:45:17', NULL);
INSERT INTO `config` VALUES (10, 'Alarm', 'forwardAlarm', '{\"cn\": \"告警前转接口设置\", \"en\": \"Alarm forward interface\"}', NULL, '[{\"interface\":\"Email\",\"to_user\":[\"371757574@qq.com\"]},{\"interface\":\"SMS\",\"to_user\":[\"11111112312\"]}]', '2023-08-03 11:42:21', NULL);
INSERT INTO `config` VALUES (17, 'Security', 'highRisk', '{\"cn\":\"高危指令设置\",\"en\":\"High risk instruction settings\"}', NULL, '[{\"timePart\":\"17:00:00,23:00:00\",\"text\":\"请不要重复\"}]', '2023-08-15 22:09:35', NULL);
INSERT INTO `config` VALUES (18, 'Gold', 'goldSet', '{\"cn\":\"黄金指标设置\",\"en\":\"Gold Index Setting\"}', NULL, '{\"goldWeek\":\"1\",\"omc_name\":\"23123\",\"login_url\":\"231231\",\"handshake_url\":\"321312\",\"grant_type\":\"321312\",\"user_name\":\"32131\",\"user_key\":\"22321\",\"max_data_len\":\"231\",\"kpi_report_url\":\"1231231\",\"time_out\":\"2131\"}', '2023-08-13 18:15:01', NULL);
INSERT INTO `config` VALUES (19, 'Security', 'userTimeSet', '{\"cn\":\"账号有效期设置\",\"en\":\"Account validity period setting\"}', '18000', NULL, '2023-08-10 14:18:57', NULL);
INSERT INTO `config` VALUES (20, 'Security', 'pwdStrong', '{\"cn\":\"密码强度设置\",\"en\":\"Account validity period setting\"}', NULL, '{\"pwdMinLength\":\"4\",\"pwdTime\":\"12\",\"strongNum\":\"1\",\"outTimeMsg\":\"密码有效期已过,请联系管理员进行修改密码\"}', '2023-08-14 20:18:21', NULL);
INSERT INTO `config` VALUES (22, 'Nbi', 'nbiSet', '{\"cn\":\"北向接口设置\",\"en\":\"Interface settings\"}', NULL, '{\"localIp\":\"21312\",\"localPort\":\"312\"}', '2023-08-13 18:48:38', NULL);
INSERT INTO `config` VALUES (25, 'SystemMonitor', 'cpuThreshold', '{\"cn\":\"CPU阈值及告警级别设置\",\"en\":\"threshold of CPU settings\"}', NULL, '{\"Major\":\"60\",\"Minor\":\"50\",\"Critical\":\"80\",\"Warning\":\"90\",\"Event\":\"75\"}', '2023-08-15 18:06:13', NULL);
INSERT INTO `config` VALUES (26, 'SystemMonitor', 'sampleTime', '{\"cn\":\"系统监控采样时间设置\",\"en\":\"settings\"}', NULL, '{\"sampleTime\":\"40\"}', '2023-08-15 18:02:49', NULL);
INSERT INTO `config` VALUES (27, 'SystemMonitor', 'fileThreshold', '{\"cn\":\"文件资源阈值及告警级别设置\",\"en\":\"threshold of file threshold settings\"}', NULL, '{\"type\":\"cpuThreshold\",\"Major\":\"12\",\"Minor\":\"\",\"Critical\":\"\",\"Warning\":\"\",\"Event\":\"\"}', '2023-08-15 18:44:18', NULL);
INSERT INTO `config` VALUES (28, 'SystemMonitor', 'RAMThreshold', '{\"cn\":\"内存阈值及告警级别设置\",\"en\":\"threshold of RAM threshold settings\"}', NULL, '{\"Major\":\"\", \"Minor\": \"\",\"Critical\": \"\",\"Warning\": \"\",\"Event\":\"\"}', '2023-08-15 17:34:22', NULL);
INSERT INTO `config` VALUES (29, 'SystemMonitor', 'storageThreshold', '{\"cn\":\"数据存储空间阈值及告警级别设置\",\"en\":\"threshold of data storage threshold settings\"}', NULL, '{\"Major\":\"\", \"Minor\": \"\",\"Critical\": \"\",\"Warning\": \"\",\"Event\":\"\"}', '2023-08-15 17:34:11', NULL);
INSERT INTO `config` VALUES (30, 'SystemMonitor', 'databaseThreshold', '{\"cn\":\"数据库阈值及告警级别设置\",\"en\":\"threshold of database settings\"}', NULL, '{\"Major\":\"\", \"Minor\": \"\",\"Critical\": \"\",\"Warning\": \"\",\"Event\":\"\"}', '2023-08-15 17:32:55', NULL);

SET FOREIGN_KEY_CHECKS = 1;
