/*
 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: 07/08/2023 23:26:43
*/

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,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 19 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');
INSERT INTO `config` VALUES (2, 'LOG', 'logDuration', '{\"cn\": \"日志保留时间(天)\", \"en\": \"Log saved duration(day)\"}', '90', NULL, '2023-05-08 17:40:28');
INSERT INTO `config` VALUES (3, 'LOG', 'logCapacity', '{\"cn\": \"日志占用空间(MB)\", \"en\": \"Log occupation space(MB)\"}', '1344', NULL, '2023-08-02 17:20:39');
INSERT INTO `config` VALUES (4, 'PM', 'pmBackupTask', '{\"cn\": \"性能数据报表定期备份(天)\", \"en\": \"PM data backup task(day)\"}', '2', NULL, '2023-07-31 14:49:11');
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\":\"22\",\"unit\":\"hour\",\"status\":\"Active\"}', '2023-08-02 11:17:29');
INSERT INTO `config` VALUES (6, 'Alarm', 'displayFilter', '{\"cn\": \"告警显示过滤设置\", \"en\": \"Alarm filter setting\"}', '', '{}', '2023-07-27 15:02:23');
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');
INSERT INTO `config` VALUES (8, 'PM', 'keepPMCKpi', '{\"cn\": \"删除指标保留时长(天)\", \"en\": \"Keep custom pm kpi duration(day)\"}', '4', NULL, '2023-07-29 11:01:45');
INSERT INTO `config` VALUES (9, 'Security', 'sessionExpires', '{\"cn\": \"登录会话超时时长(秒)\", \"en\": \"User\'s session expires(second)\"}', '1800000', NULL, '2023-07-31 09:45:17');
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');
INSERT INTO `config` VALUES (17, 'Security', 'highRisk', '{\"cn\":\"高危指令设置\",\"en\":\"High risk instruction settings\"}', NULL, '{\"morningInfo\":\"请不要删除该字段\",\"nightInfo\":\"请不要在该时间删除字段\"}', '2023-08-03 19:16:45');
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-04 20:29:03');

SET FOREIGN_KEY_CHECKS = 1;
