/*
 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: 28/07/2023 00:25:12
*/

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 = 8 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)\"}', '1321', NULL, '2023-04-22 11:06:42');
INSERT INTO `config` VALUES (4, 'PM', 'pmBackupTask', '{\"cn\": \"性能数据报表定期备份(天)\", \"en\": \"PM data backup task(day)\"}', '1', NULL, '2023-07-07 14:09:55');
INSERT INTO `config` VALUES (5, 'Alarm', 'syncTaskPeriod', '{\"cn\": \"告警同步周期时长(小时)\", \"en\": \"Alarm sync task period(小时)\"}', '24', NULL, '2023-07-25 20:41:18');
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\"}', '', '{}', '2023-07-28 00:24:30');

SET FOREIGN_KEY_CHECKS = 1;
