/*
 Navicat Premium Data Transfer

 Source Server         : omc@192.168.2.223-psap
 Source Server Type    : MariaDB
 Source Server Version : 100622 (10.6.22-MariaDB-0ubuntu0.22.04.1)
 Source Host           : 192.168.2.223:33066
 Source Schema         : psap_db

 Target Server Type    : MariaDB
 Target Server Version : 100622 (10.6.22-MariaDB-0ubuntu0.22.04.1)
 File Encoding         : 65001

 Date: 08/07/2025 17:11:50
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for ne_config
-- ----------------------------
CREATE TABLE IF NOT EXISTS `ne_config`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ne_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '网元类型',
  `param_name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '参数名',
  `param_display` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '参数显示名',
  `param_type` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '参数类型 list列表单层 array数组多层',
  `param_json` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'accesss属性控制: 只读read-only/read/ro  读写read-write',
  `param_sort` int(11) NULL DEFAULT 0 COMMENT '参数排序',
  `param_perms` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '操作权限 get只读 put可编辑 delete可删除 post可新增',
  `update_time` bigint(20) NULL DEFAULT 0 COMMENT '更新时间',
  `visible` varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'public' COMMENT '可见性默认public 单独网元self 隐藏hide',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `idx_netype_paramname`(`ne_type`, `param_name`) USING BTREE COMMENT '网元_可选值'
) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '网元_参数配置可用属性值' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of ne_config
-- ----------------------------
INSERT IGNORE INTO `ne_config` VALUES (1, 'OMC', 'alarmEmailForward', 'Alarm Email Forward Interface', 'list', '[{\"access\":\"rw\",\"comment\":\"Is it enabled forward alarm with Email interface\",\"display\":\"Enable\",\"filter\":\"true;false\",\"name\":\"enable\",\"type\":\"bool\",\"value\":\"true\"},{\"access\":\"rw\",\"comment\":\"\",\"display\":\"Email List\",\"filter\":\"\",\"name\":\"emailList\",\"type\":\"string\",\"value\":\"\"},{\"access\":\"rw\",\"comment\":\"Email SMTP server\",\"display\":\"SMTP Server\",\"filter\":\"\",\"name\":\"smtp\",\"type\":\"string\",\"value\":\"\"},{\"access\":\"rw\",\"comment\":\"\",\"display\":\"Port\",\"filter\":\"0~65535\",\"name\":\"port\",\"type\":\"int\",\"value\":\"\"},{\"access\":\"rw\",\"comment\":\"\",\"display\":\"User\",\"filter\":\"\",\"name\":\"user\",\"type\":\"string\",\"value\":\"\"},{\"access\":\"rw\",\"comment\":\"\",\"display\":\"Password\",\"filter\":\"\",\"name\":\"password\",\"type\":\"string\",\"value\":\"\"},{\"access\":\"rw\",\"comment\":\"If skip TLS verify (true/false)\",\"display\":\"TLS Skip Verify\",\"filter\":\"true;false\",\"name\":\"tlsSkipVerify\",\"type\":\"bool\",\"value\":\"true\"}]', 3, '', 1751945000199, 'public');
INSERT IGNORE INTO `ne_config` VALUES (2, 'OMC', 'alarmSMSForward', 'Alarm SMS Forward Interface', 'list', '[{\"access\":\"rw\",\"comment\":\"Is it enabled forward alarm with SMS interface\",\"display\":\"Enabled\",\"filter\":\"true;false\",\"name\":\"enabled\",\"type\":\"bool\",\"value\":\"true\"},{\"access\":\"rw\",\"comment\":\"Multiple mobile separated by commas\",\"display\":\"Mobile List\",\"filter\":\"\",\"name\":\"mobileList\",\"type\":\"string\",\"value\":\"\"},{\"access\":\"rw\",\"comment\":\"The SMSC SMPP Address\",\"display\":\"SMSC Address\",\"filter\":\"\",\"name\":\"smscAddr\",\"type\":\"string\",\"value\":\"\"},{\"access\":\"rw\",\"comment\":\"\",\"display\":\"System ID\",\"filter\":\"\",\"name\":\"systemID\",\"type\":\"string\",\"value\":\"\"},{\"access\":\"rw\",\"comment\":\"\",\"display\":\"Password\",\"filter\":\"\",\"name\":\"password\",\"type\":\"string\",\"value\":\"\"},{\"access\":\"rw\",\"comment\":\"\",\"display\":\"System Type\",\"filter\":\"\",\"name\":\"systemType\",\"type\":\"string\",\"value\":\"\"},{\"access\":\"rw\",\"comment\":\"Short message coding type\",\"display\":\"Data Coding\",\"filter\":\"{\\\"0\\\":\\\"GSM7BIT\\\",\\\"1\\\":\\\"ASCII\\\",\\\"2\\\":\\\"BINARY8BIT1\\\",\\\"3\\\":\\\"LATIN1\\\",\\\"4\\\":\\\"BINARY8BIT2\\\",\\\"6\\\":\\\"CYRILLIC\\\",\\\"7\\\":\\\"HEBREW\\\",\\\"8\\\":\\\"UCS2\\\"}\",\"name\":\"dataCoding\",\"type\":\"enum\",\"value\":\"GSM7BIT\"},{\"access\":\"rw\",\"comment\":\"It is the source address, the length is between 3 and 20\",\"display\":\"Service Number\",\"filter\":\"3~20\",\"name\":\"serviceNumber\",\"type\":\"string\",\"value\":\"OMC\"}]', 4, '', 1751945000201, 'public');
INSERT IGNORE INTO `ne_config` VALUES (3, 'CBC', 'system', 'System Config', 'list', '[{\"access\":\"read-write\",\"comment\":\"\",\"display\":\"CBC Name\",\"filter\":\"0~64\",\"name\":\"name\",\"type\":\"string\",\"value\":\"CBC\"},{\"access\":\"read-write\",\"comment\":\"\",\"display\":\"NF Instance\",\"filter\":\"0~64\",\"name\":\"instance\",\"type\":\"string\",\"value\":\"CBC-001\"},{\"access\":\"read-write\",\"comment\":\"\",\"display\":\"SBI Server IP\",\"filter\":\"0~64\",\"name\":\"sbiIp\",\"type\":\"string\",\"value\":\"127.0.0.1\"},{\"access\":\"read-write\",\"comment\":\"0~65535\",\"display\":\"SBI Server Port\",\"filter\":\"0~65535\",\"name\":\"sbiPort\",\"type\":\"int\",\"value\":\"9090\"},{\"access\":\"read-write\",\"comment\":\"http or https\",\"display\":\"SBI Scheme\",\"filter\":\"{\\\"0\\\":\\\"http\\\",\\\"1\\\":\\\"https\\\"}\",\"name\":\"sbiScheme\",\"type\":\"enum\",\"value\":\"0\"}]', 1, '', 1724327154483, 'public');
INSERT IGNORE INTO `ne_config` VALUES (4, 'CBC', 'amfProfile', 'AMF Profile', 'array', '[{\"access\":\"read-only\",\"comment\":\"0~15\",\"display\":\"Index\",\"filter\":\"0~15\",\"name\":\"index\",\"type\":\"int\",\"value\":\"0\"},{\"access\":\"read-write\",\"comment\":\"\",\"display\":\"NF Name\",\"filter\":\"0~64\",\"name\":\"name\",\"type\":\"string\",\"value\":\"AMF\"},{\"access\":\"read-write\",\"comment\":\"\",\"display\":\"AMF URI\",\"filter\":\"0~64\",\"name\":\"uri\",\"type\":\"string\",\"value\":\"http://172.16.5.130:8080\"},{\"access\":\"read-write\",\"comment\":\"\",\"display\":\"PLMN ID\",\"filter\":\"^[0-9]{5,6}$\",\"name\":\"plmnId\",\"type\":\"regex\",\"value\":\"00101\"},{\"access\":\"read-write\",\"comment\":\"0~16777215\",\"display\":\"TAC\",\"filter\":\"0~8\",\"name\":\"tac\",\"type\":\"string\",\"value\":\"1\"}]', 3, '', 1724327154499, 'public');
INSERT IGNORE INTO `ne_config` VALUES (5, 'CBC', 'mmeProfile', 'MME Profile', 'array', '[{\"access\":\"read-only\",\"comment\":\"0~15\",\"display\":\"Index\",\"filter\":\"0~15\",\"name\":\"index\",\"type\":\"int\",\"value\":\"0\"},{\"access\":\"read-write\",\"comment\":\"\",\"display\":\"NF Name\",\"filter\":\"0~64\",\"name\":\"name\",\"type\":\"string\",\"value\":\"MME\"},{\"access\":\"read-write\",\"comment\":\"\",\"display\":\"MME URI\",\"filter\":\"0~64\",\"name\":\"uri\",\"type\":\"string\",\"value\":\"sctp://192.168.1.1:9090\"},{\"access\":\"read-write\",\"comment\":\"\",\"display\":\"PLMN ID\",\"filter\":\"^[0-9]{5,6}$\",\"name\":\"plmnId\",\"type\":\"regex\",\"value\":\"00101\"},{\"access\":\"read-write\",\"comment\":\"0~16777215\",\"display\":\"TAC\",\"filter\":\"0~8\",\"name\":\"tac\",\"type\":\"string\",\"value\":\"1\"}]', 5, '', 1724327154504, 'public');
INSERT IGNORE INTO `ne_config` VALUES (6, 'MF', 'system', 'System', 'list', '[{\"access\":\"read-only\",\"comment\":\"\",\"display\":\"Label\",\"filter\":\"\",\"name\":\"label\",\"type\":\"string\",\"value\":\"mf-core\"},{\"access\":\"read-only\",\"comment\":\"\",\"display\":\"Public Network IPv4\",\"filter\":\"\",\"name\":\"serviceIP\",\"type\":\"ipv4\",\"value\":\"172.16.5.110\"}]', 1, '', 1749800019447, 'public');
INSERT IGNORE INTO `ne_config` VALUES (7, 'MF', 'agents', 'Agent List', 'array', '[{\"access\":\"read-only\",\"comment\":\"0~10000\",\"display\":\"Index\",\"filter\":\"\",\"name\":\"index\",\"type\":\"int\",\"value\":\"0\"},{\"access\":\"read-write\",\"comment\":\"\",\"display\":\"Name\",\"filter\":\"^[0-9]{4,8}$\",\"name\":\"name\",\"type\":\"regex\",\"value\":\"1000\"},{\"access\":\"read-only\",\"comment\":\"Online Status\",\"display\":\"Online Status\",\"filter\":\"{\\\"0\\\":\\\"false\\\", \\\"1\\\":\\\"true\\\"}\",\"name\":\"online\",\"type\":\"bool\",\"value\":\"false\"},{\"access\":\"read-write\",\"comment\":\"email\",\"display\":\"Email\",\"filter\":\"\",\"name\":\"email\",\"type\":\"string\",\"value\":\"\"},{\"access\":\"read-write\",\"comment\":\"mobile\",\"display\":\"Mobile\",\"filter\":\"^[0-9]{4,20}$\",\"name\":\"mobile\",\"type\":\"regex\",\"value\":\"\"},{\"access\":\"read-only\",\"comment\":\"ip:port\",\"display\":\"Domain\",\"filter\":\"\",\"name\":\"domain\",\"type\":\"string\",\"value\":\"\"},{\"access\":\"read-only\",\"comment\":\"do not display\",\"display\":\"Password\",\"filter\":\"\",\"name\":\"password\",\"type\":\"string\",\"value\":\"\"}]', 3, '', 1749800019449, 'public');
INSERT IGNORE INTO `ne_config` VALUES (8, 'OMC', 'ticketTimeout', 'Ticket Timeout Settings', 'list', '[{\"access\":\"rw\",\"comment\":\"New ticket timeout in minutes, default is 60 minutes\",\"display\":\"New Ticket Timeout (min)\",\"filter\":\"0~1440\",\"name\":\"new\",\"type\":\"int\",\"value\":60},{\"access\":\"rw\",\"comment\":\"In progress ticket timeout in minutes, default is 60 minutes\",\"display\":\"In Progress Timeout (min)\",\"filter\":\"0~1440\",\"name\":\"inProgress\",\"type\":\"int\",\"value\":60},{\"access\":\"rw\",\"comment\":\"No answer 1 ticket timeout in minutes, default is 240 minutes\",\"display\":\"No Answer 1 Timeout (min)\",\"filter\":\"0~1440\",\"name\":\"noAnswer1\",\"type\":\"int\",\"value\":240},{\"access\":\"rw\",\"comment\":\"No answer 2 ticket timeout in minutes, default is 480 minutes\",\"display\":\"No Answer 2 Timeout (min)\",\"filter\":\"0~1440\",\"name\":\"noAnswer2\",\"type\":\"int\",\"value\":480},{\"access\":\"rw\",\"comment\":\"Nearly timeout in minutes, default is 20 minutes\",\"display\":\"Nearly Timeout (min)\",\"filter\":\"0~1440\",\"name\":\"nearlyTimeout\",\"type\":\"int\",\"value\":20}]', 7, '', 1751945000203, 'public');
INSERT IGNORE INTO `ne_config` VALUES (9, 'OMC', 'ticketNotification', 'Ticket Notification Settings', 'list', '[{\"access\":\"rw\",\"comment\":\"Is it enabled notifcation ticket with Email interface\",\"display\":\"Enabled\",\"filter\":\"true;false\",\"name\":\"enabled\",\"type\":\"bool\",\"value\":\"true\"},{\"access\":\"rw\",\"comment\":\"Email SMTP server\",\"display\":\"SMTP Host Server\",\"filter\":\"\",\"name\":\"host\",\"type\":\"string\",\"value\":\"\"},{\"access\":\"rw\",\"comment\":\"\",\"display\":\"Port\",\"filter\":\"0~65535\",\"name\":\"port\",\"type\":\"int\",\"value\":\"\"},{\"access\":\"rw\",\"comment\":\"\",\"display\":\"Username\",\"filter\":\"\",\"name\":\"username\",\"type\":\"string\",\"value\":\"\"},{\"access\":\"rw\",\"comment\":\"\",\"display\":\"Password\",\"filter\":\"\",\"name\":\"password\",\"type\":\"string\",\"value\":\"\"},{\"access\":\"rw\",\"comment\":\"If skip TLS verify (true/false)\",\"display\":\"TLS Skip Verify\",\"filter\":\"true;false\",\"name\":\"tlsSkipVerify\",\"type\":\"bool\",\"value\":\"true\"},{\"access\":\"rw\",\"comment\":\"The sender email address, default is omc@psap\",\"display\":\"From\",\"filter\":\"\",\"name\":\"from\",\"type\":\"string\",\"value\":\"omc@psap\"},{\"access\":\"rw\",\"comment\":\"The addition receiver email address, multiple addresses separated by commas\",\"display\":\"To\",\"filter\":\"\",\"name\":\"to\",\"type\":\"string\",\"value\":\"\"}]', 5, '', 1751945000202, 'public');

SET FOREIGN_KEY_CHECKS = 1;
