-- MariaDB dump 10.19  Distrib 10.6.15-MariaDB, for debian-linux-gnu (x86_64)
--
-- Host: 192.168.2.219    Database: omc_db
-- ------------------------------------------------------
-- Server version	10.3.38-MariaDB

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `4a_log`
--

DROP TABLE IF EXISTS `4a_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `4a_log` (
  `LogTime` datetime DEFAULT NULL ON UPDATE current_timestamp(),
  `SubUser` varchar(32) DEFAULT NULL,
  `App` varchar(64) DEFAULT NULL,
  `Sip` varchar(32) DEFAULT NULL,
  `AppModule` varchar(32) DEFAULT NULL,
  `OpType` enum('Login','Logout','AddPrivilege','DelPrivilege','UpdatePrivilege','View','Add','Update','Del','Other') DEFAULT 'Other',
  `OpText` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `alarm`
--

DROP TABLE IF EXISTS `alarm`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `alarm` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `alarm_seq` int(11) DEFAULT NULL,
  `alarm_id` varchar(32) NOT NULL,
  `alarm_title` varchar(255) DEFAULT NULL,
  `ne_type` varchar(32) DEFAULT NULL,
  `ne_id` varchar(64) NOT NULL,
  `alarm_code` int(11) DEFAULT NULL,
  `event_time` datetime DEFAULT NULL,
  `alarm_type` varchar(64) DEFAULT '',
  `orig_severity` enum('Critical','Major','Minor','Warning','Event') DEFAULT 'Minor' COMMENT '1: Critical, 2: Major, 3: Minor, 4: Warning, 5: Event(Only VNF)',
  `perceived_severity` enum('Critical','Major','Minor','Warning','Event') DEFAULT NULL COMMENT '1: Critical, 2: Major, 3: Minor, 4: Warning, 5: Event(Only VNF)',
  `pv_flag` varchar(10) DEFAULT NULL,
  `ne_name` varchar(32) DEFAULT NULL,
  `object_uid` varchar(64) DEFAULT NULL,
  `object_name` varchar(64) DEFAULT '0',
  `object_type` varchar(20) DEFAULT NULL,
  `location_info` varchar(2048) DEFAULT NULL,
  `province` varchar(32) DEFAULT NULL,
  `alarm_status` int(11) NOT NULL DEFAULT 1 COMMENT '0:clear, 1:active',
  `specific_problem` varchar(255) DEFAULT NULL,
  `specific_problem_id` varchar(100) DEFAULT NULL,
  `add_info` varchar(2048) DEFAULT NULL,
  `counter` int(11) DEFAULT 0,
  `latest_event_time` datetime DEFAULT NULL,
  `ack_state` tinyint(4) DEFAULT 0 COMMENT '0: Unacked, 1: Acked',
  `ack_time` datetime DEFAULT NULL,
  `ack_user` varchar(16) DEFAULT NULL,
  `clear_type` tinyint(4) DEFAULT 0 COMMENT '0: Unclear, 1: AutoClear, 2: ManualClear',
  `clear_time` datetime DEFAULT NULL,
  `clear_user` varchar(16) DEFAULT NULL,
  `timestamp` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `idx_uni_aid_ne_aseq` (`ne_type`,`ne_id`,`alarm_id`,`alarm_seq`) USING BTREE,
  KEY `idx_event_time` (`event_time`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=144625 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `alarm_define`
--

DROP TABLE IF EXISTS `alarm_define`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `alarm_define` (
  `alarm_id` varchar(32) NOT NULL,
  `alarm_code` int(11) DEFAULT NULL,
  `alarm_title_cn` varchar(255) DEFAULT NULL,
  `alarm_title` varchar(255) DEFAULT NULL,
  `ne_type` varchar(32) DEFAULT NULL,
  `alarm_type` varchar(64) DEFAULT '',
  `orig_severity` enum('Critical','Major','Minor','Warning','Event') DEFAULT 'Warning' COMMENT 'Critical, Major, Minor, Warning, Event(Only VNF)',
  `object_uid` varchar(28) DEFAULT NULL,
  `object_name` varchar(64) DEFAULT '0',
  `object_type` varchar(20) DEFAULT NULL,
  `location_info` varchar(255) DEFAULT NULL,
  `specific_problem` varchar(255) DEFAULT NULL,
  `specific_problem_id` varchar(32) DEFAULT NULL,
  `add_info` varchar(255) DEFAULT NULL,
  `threshold` bigint(20) DEFAULT NULL,
  `status` enum('Inactive','Active') DEFAULT 'Active',
  PRIMARY KEY (`alarm_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `alarm_forward_log`
--

DROP TABLE IF EXISTS `alarm_forward_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `alarm_forward_log` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ne_type` varchar(32) DEFAULT NULL,
  `ne_id` varchar(32) DEFAULT NULL,
  `alarm_id` varchar(32) DEFAULT NULL,
  `alarm_title` varchar(255) DEFAULT NULL,
  `alarm_seq` varchar(20) DEFAULT NULL,
  `event_time` datetime DEFAULT NULL,
  `to_user` varchar(255) DEFAULT NULL,
  `oper_result` varchar(255) DEFAULT NULL,
  `log_time` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=208548 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `alarm_log`
--

DROP TABLE IF EXISTS `alarm_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `alarm_log` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ne_type` varchar(16) DEFAULT NULL,
  `ne_id` varchar(64) NOT NULL DEFAULT '0',
  `alarm_seq` int(11) DEFAULT NULL,
  `alarm_id` varchar(32) NOT NULL DEFAULT '0',
  `alarm_code` int(11) DEFAULT 0,
  `alarm_status` smallint(6) DEFAULT NULL,
  `event_time` datetime DEFAULT NULL,
  `log_time` datetime NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=127853 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `alarm_relation`
--

DROP TABLE IF EXISTS `alarm_relation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `alarm_relation` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `created_at` datetime(3) DEFAULT NULL,
  `updated_at` datetime(3) DEFAULT NULL,
  `deleted_at` datetime(3) DEFAULT NULL,
  `root_alarm_id` varchar(64) DEFAULT NULL,
  `alarm_id` varchar(64) DEFAULT NULL,
  `relation_type` varchar(64) DEFAULT NULL,
  `add_info` varchar(64) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `idx_alarm_relation_deleted_at` (`deleted_at`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `alarm_subscribe`
--

DROP TABLE IF EXISTS `alarm_subscribe`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `alarm_subscribe` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `created_at` datetime(3) DEFAULT NULL,
  `updated_at` datetime(3) DEFAULT NULL,
  `deleted_at` datetime(3) DEFAULT NULL,
  `user` varchar(64) DEFAULT NULL,
  `callback_url` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `idx_alarm_subscribe_deleted_at` (`deleted_at`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `cert_info`
--

DROP TABLE IF EXISTS `cert_info`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cert_info` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `file_name` varchar(64) DEFAULT NULL,
  `key_length` int(11) DEFAULT NULL,
  `key_algorithm` varchar(16) DEFAULT NULL,
  `cert_format` varchar(16) DEFAULT '',
  `cert_expiration` varchar(24) DEFAULT NULL,
  `created_at` datetime DEFAULT current_timestamp(),
  `updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `deleted_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=58 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `cm_title`
--

DROP TABLE IF EXISTS `cm_title`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cm_title` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ne_type` varchar(16) DEFAULT NULL,
  `object` varchar(32) DEFAULT NULL,
  `code` varchar(32) DEFAULT NULL,
  `cm_en` varchar(128) DEFAULT NULL,
  `cm_cn` varchar(128) DEFAULT NULL,
  `description` varchar(1024) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=3056 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `config`
--

DROP TABLE IF EXISTS `config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `config` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `module_name` varchar(32) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
  `config_tag` varchar(32) NOT NULL,
  `title_json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `value` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  `value_json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `update_time` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `comment` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `idx_uni_mod_tag` (`module_name`,`config_tag`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=42 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `event_log`
--

DROP TABLE IF EXISTS `event_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `event_log` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ne_type` varchar(16) DEFAULT NULL,
  `ne_id` varchar(32) NOT NULL,
  `event` varchar(255) NOT NULL,
  `event_time` datetime DEFAULT NULL,
  `log_time` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1292 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `gold_kpi`
--

DROP TABLE IF EXISTS `gold_kpi`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `gold_kpi` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` date NOT NULL,
  `index` smallint(6) NOT NULL,
  `start_time` datetime DEFAULT NULL,
  `end_time` datetime DEFAULT NULL,
  `ne_name` varchar(64) DEFAULT '',
  `rm_uid` varchar(64) DEFAULT NULL,
  `ne_type` varchar(16) DEFAULT NULL,
  `kpi_id` varchar(16) DEFAULT NULL,
  `value` bigint(20) DEFAULT 0,
  `error` varchar(255) DEFAULT NULL,
  `timestamp` datetime DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  KEY `idx_st_nt_id` (`start_time`,`ne_type`,`rm_uid`) USING BTREE,
  KEY `idx_starttime` (`start_time`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=7123113 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `group`
--

DROP TABLE IF EXISTS `group`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `description` varchar(255) DEFAULT NULL,
  `create_time` datetime DEFAULT current_timestamp(),
  PRIMARY KEY (`name`) USING BTREE,
  KEY `fk_account_id` (`id`) USING BTREE,
  KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=80 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `kpi_title`
--

DROP TABLE IF EXISTS `kpi_title`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `kpi_title` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ne_type` varchar(16) DEFAULT NULL,
  `kpi_id` varchar(16) DEFAULT NULL,
  `title_json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `cn_title` varchar(255) DEFAULT NULL,
  `en_title` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=94 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `measure_data`
--

DROP TABLE IF EXISTS `measure_data`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `measure_data` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` date DEFAULT NULL,
  `task_id` int(11) DEFAULT NULL,
  `ne_name` varchar(64) DEFAULT NULL,
  `rm_uid` varchar(64) DEFAULT NULL,
  `ne_type` varchar(16) DEFAULT NULL,
  `granul_option` enum('15M','30M','60M','24H') DEFAULT '15M',
  `kpi_code` varchar(32) DEFAULT NULL,
  `kpi_id` varchar(64) DEFAULT NULL,
  `kpi_ext` varchar(32) DEFAULT NULL,
  `start_time` datetime DEFAULT NULL,
  `end_time` datetime DEFAULT NULL,
  `value` bigint(20) DEFAULT 0,
  `timestamp` datetime DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=323089 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `measure_task`
--

DROP TABLE IF EXISTS `measure_task`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `measure_task` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ne_type` varchar(16) DEFAULT NULL,
  `ne_ids` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT '[]',
  `kpi_set` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT '[]',
  `start_time` varchar(32) DEFAULT NULL,
  `end_time` varchar(32) DEFAULT NULL,
  `periods` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT '[]',
  `schedule` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT '[]',
  `granul_option` enum('15M','30M','60M','24H') NOT NULL DEFAULT '15M',
  `status` enum('Inactive','Active','Suspend','Deleted') NOT NULL DEFAULT 'Inactive',
  `account_id` varchar(32) DEFAULT NULL,
  `comment` varchar(255) DEFAULT NULL,
  `create_time` datetime DEFAULT current_timestamp(),
  `update_time` datetime DEFAULT NULL,
  `delete_time` datetime DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=83 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `measure_threshold`
--

DROP TABLE IF EXISTS `measure_threshold`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `measure_threshold` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ne_type` varchar(16) DEFAULT NULL,
  `kpi_set` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `threshold` bigint(20) DEFAULT 0,
  `status` enum('Active','Inactive','Deleted') DEFAULT 'Active',
  `orig_severity` enum('Critical','Major','Minor','Warning','Event') DEFAULT NULL,
  `alarm_code` varchar(16) DEFAULT '10200',
  `alarm_flag` tinyint(4) DEFAULT 0,
  `create_time` datetime DEFAULT current_timestamp(),
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `measure_title`
--

DROP TABLE IF EXISTS `measure_title`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `measure_title` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ne_type` varchar(16) DEFAULT NULL,
  `kpi_code` varchar(32) DEFAULT NULL,
  `kpi_id` varchar(64) DEFAULT NULL,
  `pseudo` enum('false','true') DEFAULT 'false',
  `object_type` varchar(16) DEFAULT NULL,
  `period` varchar(8) DEFAULT '',
  `title_json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=3912 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `menu`
--

DROP TABLE IF EXISTS `menu`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `menu` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `group_name` varchar(16) DEFAULT NULL,
  `menu_tag` varchar(64) DEFAULT '',
  `sort_id` int(11) DEFAULT NULL,
  `lang_tag` varchar(16) DEFAULT NULL,
  `menu_json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=77 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mml_command`
--

DROP TABLE IF EXISTS `mml_command`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mml_command` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ne_type` varchar(16) DEFAULT NULL,
  `category` varchar(32) DEFAULT NULL,
  `cat_display` varchar(64) DEFAULT NULL,
  `operation` varchar(10) DEFAULT NULL,
  `object` varchar(16) DEFAULT NULL,
  `mml_display` varchar(64) DEFAULT NULL,
  `param_json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  KEY `id` (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1626 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mml_http_map`
--

DROP TABLE IF EXISTS `mml_http_map`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mml_http_map` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ne_type` varchar(16) DEFAULT NULL,
  `operation` varchar(10) DEFAULT NULL,
  `object` varchar(16) DEFAULT NULL,
  `method` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `uri` varchar(255) DEFAULT NULL,
  `ext_uri` varchar(255) DEFAULT NULL,
  `param_tag` varchar(10) DEFAULT NULL,
  `params` varchar(255) DEFAULT NULL,
  `input` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `output` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  KEY `id` (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mml_log`
--

DROP TABLE IF EXISTS `mml_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mml_log` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user` varchar(32) DEFAULT NULL,
  `ip` varchar(64) DEFAULT NULL,
  `ne_type` varchar(32) DEFAULT NULL,
  `ne_id` varchar(32) DEFAULT NULL,
  `mml` varchar(1024) DEFAULT NULL,
  `result` varchar(2048) DEFAULT NULL,
  `log_time` datetime DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=99 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mml_subscriber`
--

DROP TABLE IF EXISTS `mml_subscriber`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mml_subscriber` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ne_type` varchar(16) DEFAULT NULL,
  `category` varchar(32) DEFAULT NULL,
  `cat_display` varchar(64) DEFAULT NULL,
  `operation` varchar(10) DEFAULT NULL,
  `object` varchar(16) DEFAULT NULL,
  `mml_display` varchar(128) DEFAULT NULL,
  `param_json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  KEY `id` (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=234 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `mml_system`
--

DROP TABLE IF EXISTS `mml_system`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mml_system` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ne_type` varchar(16) DEFAULT NULL,
  `category` varchar(32) DEFAULT NULL,
  `cat_display` varchar(64) DEFAULT NULL,
  `operation` varchar(10) DEFAULT NULL,
  `object` varchar(16) DEFAULT NULL,
  `mml_display` varchar(128) DEFAULT NULL,
  `param_json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  KEY `id` (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=777 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `monitor_base`
--

DROP TABLE IF EXISTS `monitor_base`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `monitor_base` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  `updated_at` datetime DEFAULT NULL COMMENT '更新时间',
  `cpu` float DEFAULT NULL COMMENT 'cpu使用率',
  `load_usage` float DEFAULT NULL COMMENT 'cpu平均使用率',
  `cpu_load1` float DEFAULT NULL COMMENT 'cpu使用1分钟',
  `cpu_load5` float DEFAULT NULL COMMENT 'cpu使用5分钟',
  `cpu_load15` float DEFAULT NULL COMMENT 'cpu使用15分钟',
  `memory` float DEFAULT NULL COMMENT '内存使用率',
  `db_size` int(11) unsigned DEFAULT NULL COMMENT '数据库使用空间K',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=51627 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='监控_基本信息';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `monitor_io`
--

DROP TABLE IF EXISTS `monitor_io`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `monitor_io` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  `updated_at` datetime DEFAULT NULL COMMENT '更新时间',
  `name` varchar(50) DEFAULT NULL COMMENT '磁盘名',
  `read` int(11) DEFAULT NULL COMMENT '读取K',
  `write` int(11) DEFAULT NULL COMMENT '写入K',
  `count` int(11) DEFAULT NULL COMMENT '次数',
  `time` int(11) DEFAULT NULL COMMENT '耗时',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=100901 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='监控_磁盘IO';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `monitor_network`
--

DROP TABLE IF EXISTS `monitor_network`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `monitor_network` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  `updated_at` datetime DEFAULT NULL COMMENT '更新时间',
  `name` varchar(50) DEFAULT NULL COMMENT '网卡名',
  `up` float DEFAULT NULL COMMENT '上行',
  `down` float DEFAULT NULL COMMENT '下行',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=360248 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='监控_网络IO';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `monitor_warn`
--

DROP TABLE IF EXISTS `monitor_warn`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `monitor_warn` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  `updated_at` datetime DEFAULT NULL COMMENT '更新时间',
  `title` varchar(50) DEFAULT NULL COMMENT '类型标题',
  `warn_type` varchar(50) DEFAULT NULL COMMENT '告警类型',
  `value` varchar(50) DEFAULT NULL COMMENT '阈值',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='监控_指标阈值告警';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `nbi_alarm_log`
--

DROP TABLE IF EXISTS `nbi_alarm_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `nbi_alarm_log` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `op_user` varchar(16) DEFAULT NULL,
  `src_ip` varchar(64) NOT NULL DEFAULT '0',
  `ne_type` varchar(16) DEFAULT NULL,
  `ne_id` varchar(32) DEFAULT NULL,
  `alarm_seq` int(11) NOT NULL DEFAULT 0,
  `alarm_id` varchar(32) DEFAULT NULL,
  `alarm_code` int(11) DEFAULT 0,
  `alarm_status` int(11) DEFAULT NULL COMMENT '0/1: 清除告警/活动告警',
  `event_time` varchar(32) DEFAULT NULL,
  `log_time` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `a_id` int(11) NOT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2133 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `nbi_cm`
--

DROP TABLE IF EXISTS `nbi_cm`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `nbi_cm` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `timestamp` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `time_zone` varchar(10) DEFAULT NULL,
  `vendor_name` varchar(65) DEFAULT NULL,
  `ne_type` varchar(16) DEFAULT NULL,
  `cm_version` varchar(32) DEFAULT NULL,
  `rm_uid` varchar(32) DEFAULT NULL,
  `ne_id` varchar(32) DEFAULT NULL,
  `user_label` varchar(64) DEFAULT NULL,
  `object_type` varchar(32) DEFAULT NULL,
  `pv_flag` enum('PNF','VNF') DEFAULT 'PNF',
  `vm_id` varchar(128) DEFAULT '0',
  `vnf_instance_id` varchar(64) DEFAULT NULL,
  `value_json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `status` enum('Original','Created','Updated','Deleted') NOT NULL DEFAULT 'Original',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=311439 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `nbi_operation_log`
--

DROP TABLE IF EXISTS `nbi_operation_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `nbi_operation_log` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `src_ip` varchar(64) DEFAULT NULL,
  `op_user` varchar(32) DEFAULT NULL,
  `dst_ip` varchar(64) DEFAULT NULL,
  `op_type` varchar(32) DEFAULT NULL,
  `op_proto` varchar(32) DEFAULT NULL,
  `op_params` varchar(255) DEFAULT NULL,
  `op_result` varchar(64) DEFAULT NULL,
  `op_time` datetime DEFAULT NULL,
  `log_time` datetime DEFAULT current_timestamp(),
  `created_at` datetime DEFAULT NULL,
  `pri` longtext DEFAULT NULL,
  `vendor` longtext DEFAULT NULL,
  `ne_name` longtext DEFAULT NULL,
  `rm_uid` longtext DEFAULT NULL,
  `ne_type` longtext DEFAULT NULL,
  `log_type` longtext DEFAULT NULL,
  `user_name` longtext DEFAULT NULL,
  `terminal_ip` longtext DEFAULT NULL,
  `start_time` longtext DEFAULT NULL,
  `end_time` longtext DEFAULT NULL,
  `oper_type` longtext DEFAULT NULL,
  `risk_level` longtext DEFAULT NULL,
  `oper_content` longtext DEFAULT NULL,
  `oper_result` longtext DEFAULT NULL,
  `failure_cause` longtext DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=647 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `nbi_pm`
--

DROP TABLE IF EXISTS `nbi_pm`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `nbi_pm` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` date DEFAULT NULL,
  `index` int(11) DEFAULT NULL,
  `start_time` datetime DEFAULT NULL,
  `time_zone` varchar(16) DEFAULT NULL,
  `ne_name` varchar(64) DEFAULT NULL,
  `pm_version` varchar(16) DEFAULT NULL,
  `period` varchar(6) DEFAULT NULL,
  `rm_uid` varchar(64) DEFAULT NULL,
  `ne_type` varchar(16) DEFAULT NULL,
  `dn` varchar(255) DEFAULT NULL,
  `datas` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `timestamp` datetime DEFAULT current_timestamp(),
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=22349 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `nbi_secure_log`
--

DROP TABLE IF EXISTS `nbi_secure_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `nbi_secure_log` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `created_at` datetime(3) DEFAULT NULL,
  `pri` longtext DEFAULT NULL,
  `vendor` longtext DEFAULT NULL,
  `ne_name` longtext DEFAULT NULL,
  `rm_uid` longtext DEFAULT NULL,
  `ne_type` longtext DEFAULT NULL,
  `log_type` longtext DEFAULT NULL,
  `event_name` longtext DEFAULT NULL,
  `start_time` longtext DEFAULT NULL,
  `user_name` longtext DEFAULT NULL,
  `terminal_ip` longtext DEFAULT NULL,
  `oper_result` longtext DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ne_backup`
--

DROP TABLE IF EXISTS `ne_backup`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ne_backup` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ne_type` varchar(32) NOT NULL,
  `ne_id` varchar(32) NOT NULL DEFAULT '',
  `file_name` varchar(64) DEFAULT NULL,
  `path` varchar(128) DEFAULT '',
  `md5_sum` varchar(64) DEFAULT NULL,
  `create_time` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=105 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ne_check`
--

DROP TABLE IF EXISTS `ne_check`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ne_check` (
  `id` int(10) NOT NULL,
  `status` tinyint(4) DEFAULT NULL COMMENT '//0-不健康 1-健康',
  `result` varchar(64) DEFAULT NULL,
  `create_time` datetime DEFAULT NULL,
  `ne_type` varchar(32) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ne_info`
--

DROP TABLE IF EXISTS `ne_info`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ne_info` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ne_type` varchar(32) NOT NULL,
  `ne_id` varchar(32) NOT NULL DEFAULT '',
  `rm_uid` varchar(40) DEFAULT NULL,
  `ne_name` varchar(64) DEFAULT NULL,
  `ip` varchar(128) DEFAULT '',
  `port` int(11) DEFAULT NULL,
  `pv_flag` enum('PNF','VNF') DEFAULT 'PNF',
  `province` varchar(32) DEFAULT NULL,
  `vendor_name` varchar(64) DEFAULT NULL,
  `dn` varchar(255) DEFAULT NULL,
  `ne_address` varchar(64) DEFAULT NULL,
  `status` int(11) DEFAULT 0 COMMENT '0: 在线 1: 下线 2: 备用 3: 工程 ',
  `update_time` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`,`ne_type`,`ne_id`) USING BTREE,
  UNIQUE KEY `idx_netype_neid` (`ne_type`,`ne_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=194 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ne_license`
--

DROP TABLE IF EXISTS `ne_license`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ne_license` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ne_type` varchar(16) DEFAULT NULL,
  `ne_id` varchar(32) DEFAULT '',
  `serial_no` varchar(16) DEFAULT NULL,
  `capcity` int(11) DEFAULT NULL,
  `used` int(11) DEFAULT NULL,
  `feature_enabled` varchar(64) DEFAULT NULL,
  `expiration_date` varchar(16) DEFAULT NULL,
  `status` enum('ACTIVE','INACTIVE','PENDING') DEFAULT 'ACTIVE',
  `path` varchar(128) DEFAULT NULL,
  `file_name` varchar(64) DEFAULT NULL,
  `comment` varchar(255) DEFAULT NULL,
  `created_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ne_license_cm`
--

DROP TABLE IF EXISTS `ne_license_cm`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ne_license_cm` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ne_type` varchar(16) DEFAULT NULL,
  `ne_id` varchar(32) DEFAULT '',
  `serial_no` varchar(16) DEFAULT NULL,
  `capcity` int(11) DEFAULT NULL,
  `used` int(11) DEFAULT NULL,
  `feature_enabled` varchar(64) DEFAULT NULL,
  `expiration_date` varchar(16) DEFAULT NULL,
  `status` enum('ACTIVE','INACTIVE','PENDING') DEFAULT NULL,
  `created_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ne_link`
--

DROP TABLE IF EXISTS `ne_link`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ne_link` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ne_type` varchar(32) NOT NULL,
  `ne_id` varchar(32) NOT NULL DEFAULT '',
  `rm_uid` varchar(40) DEFAULT NULL,
  `interface` varchar(16) DEFAULT NULL,
  `status` enum('UP','DOWN','STANDBY') DEFAULT 'UP' COMMENT 'UP, DOWN, STANDBY',
  `created_at` datetime DEFAULT current_timestamp(),
  `updated_at` datetime DEFAULT current_timestamp(),
  `deleted_at` datetime DEFAULT current_timestamp(),
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `idx_netype_neid` (`ne_type`,`ne_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=167 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ne_pool`
--

DROP TABLE IF EXISTS `ne_pool`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ne_pool` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `ne_type` varchar(50) NOT NULL,
  `ne_id` varchar(50) NOT NULL DEFAULT '',
  `rm_uid` varchar(50) DEFAULT NULL,
  `balance` int(11) DEFAULT NULL,
  `update_time` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`,`ne_type`,`ne_id`) USING BTREE,
  UNIQUE KEY `idx_netype_neid` (`ne_type`,`ne_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=200 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ne_software`
--

DROP TABLE IF EXISTS `ne_software`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ne_software` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ne_type` varchar(32) DEFAULT NULL,
  `file_name` varchar(64) DEFAULT NULL,
  `path` varchar(128) DEFAULT '',
  `version` varchar(32) DEFAULT NULL,
  `md5_sum` varchar(64) DEFAULT NULL,
  `status` enum('Uploaded','Inactive','Active') DEFAULT NULL,
  `comment` varchar(255) DEFAULT NULL,
  `update_time` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `patch_time` datetime DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=59 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ne_state`
--

DROP TABLE IF EXISTS `ne_state`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ne_state` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ne_type` varchar(16) DEFAULT NULL,
  `ne_id` varchar(32) DEFAULT NULL,
  `version` varchar(16) DEFAULT NULL,
  `capability` varchar(64) DEFAULT NULL,
  `serial_num` varchar(16) DEFAULT NULL,
  `expiry_date` date DEFAULT NULL,
  `cpu_usage` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `mem_usage` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `disk_space` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `timestamp` datetime DEFAULT current_timestamp(),
  PRIMARY KEY (`id`) USING BTREE,
  KEY `idx_ne_type_id` (`ne_type`,`ne_id`) USING BTREE,
  KEY `idx_timestamp` (`timestamp`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2565223 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ne_version`
--

DROP TABLE IF EXISTS `ne_version`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ne_version` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ne_type` varchar(32) DEFAULT NULL,
  `ne_id` varchar(32) DEFAULT NULL,
  `version` varchar(32) DEFAULT NULL,
  `file_path` varchar(255) DEFAULT NULL,
  `pre_version` varchar(32) DEFAULT NULL,
  `pre_file` varchar(255) DEFAULT NULL,
  `new_version` varchar(32) DEFAULT NULL,
  `new_file` varchar(255) DEFAULT NULL,
  `status` enum('Uploaded','Inactive','Active') DEFAULT NULL,
  `update_time` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `northbound_cm`
--

DROP TABLE IF EXISTS `northbound_cm`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `northbound_cm` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `timestamp` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `time_zone` varchar(10) DEFAULT NULL,
  `vendor_name` varchar(65) DEFAULT NULL,
  `ne_type` varchar(16) DEFAULT NULL,
  `cm_version` varchar(32) DEFAULT NULL,
  `rm_uid` varchar(32) DEFAULT NULL,
  `ne_id` varchar(32) DEFAULT NULL,
  `user_label` varchar(64) DEFAULT NULL,
  `object_type` varchar(32) DEFAULT NULL,
  `pv_flag` enum('PNF','VNF') DEFAULT 'PNF',
  `vm_id` varchar(128) DEFAULT '0',
  `vnf_instance_id` varchar(64) DEFAULT NULL,
  `value_json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `status` enum('Original','Created','Updated','Deleted') NOT NULL DEFAULT 'Original',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `northbound_pm`
--

DROP TABLE IF EXISTS `northbound_pm`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `northbound_pm` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` date DEFAULT NULL,
  `index` int(11) DEFAULT NULL,
  `start_time` datetime DEFAULT NULL,
  `time_zone` varchar(16) DEFAULT NULL,
  `ne_name` varchar(64) DEFAULT NULL,
  `pm_version` varchar(16) DEFAULT NULL,
  `period` varchar(6) DEFAULT NULL,
  `rm_uid` varchar(64) DEFAULT NULL,
  `ne_type` varchar(16) DEFAULT NULL,
  `dn` varchar(255) DEFAULT NULL,
  `datas` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `timestamp` datetime DEFAULT current_timestamp(),
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=37506 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `operation_log`
--

DROP TABLE IF EXISTS `operation_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `operation_log` (
  `op_id` int(11) NOT NULL AUTO_INCREMENT,
  `account_name` varchar(32) NOT NULL,
  `account_type` varchar(16) NOT NULL COMMENT 'group_name',
  `op_ip` varchar(64) DEFAULT NULL,
  `subsys_tag` varchar(32) DEFAULT NULL,
  `op_type` varchar(32) DEFAULT NULL,
  `op_content` text DEFAULT NULL,
  `op_result` varchar(64) DEFAULT NULL,
  `begin_time` datetime DEFAULT NULL,
  `end_time` datetime DEFAULT NULL,
  `vnf_flag` tinyint(4) DEFAULT NULL,
  `log_time` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`op_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=7512 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `param_config`
--

DROP TABLE IF EXISTS `param_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `param_config` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ne_type` varchar(32) DEFAULT NULL,
  `ne_id` varchar(32) DEFAULT NULL,
  `top_tag` varchar(32) DEFAULT NULL,
  `top_display` varchar(40) DEFAULT NULL,
  `method` varchar(64) DEFAULT NULL COMMENT 'method allow: "get", "get,post,put", "delete"',
  `param_json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  KEY `id` (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=492 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `param_value`
--

DROP TABLE IF EXISTS `param_value`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `param_value` (
  `id` int(11) NOT NULL,
  `ne_type` varchar(32) DEFAULT NULL,
  `ne_id` varchar(64) NOT NULL DEFAULT '',
  `flag` tinyint(4) NOT NULL DEFAULT 1 COMMENT '0: before update, 1: current',
  `top_tag` varchar(32) NOT NULL,
  `value_json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `permission`
--

DROP TABLE IF EXISTS `permission`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `permission` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `permission_name` varchar(32) NOT NULL,
  `method` varchar(10) DEFAULT '*',
  `module` varchar(32) DEFAULT '*',
  `management` varchar(32) DEFAULT '*',
  `element` varchar(10) DEFAULT '*',
  `object` varchar(16) DEFAULT '*',
  `description` varchar(255) DEFAULT NULL,
  `created_at` datetime DEFAULT current_timestamp(),
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`,`permission_name`) USING BTREE,
  UNIQUE KEY `id` (`id`) USING BTREE,
  UNIQUE KEY `permission_name` (`permission_name`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='del-已使用sys_menu权限标识';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `pm_custom_data`
--

DROP TABLE IF EXISTS `pm_custom_data`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `pm_custom_data` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` date DEFAULT NULL,
  `ne_name` varchar(64) DEFAULT NULL,
  `rm_uid` varchar(64) DEFAULT NULL,
  `ne_type` varchar(16) DEFAULT NULL,
  `granul_option` enum('15M','30M','60M','24H') DEFAULT '15M',
  `object_type` varchar(32) DEFAULT NULL,
  `kpi_id` varchar(64) DEFAULT NULL,
  `start_time` datetime DEFAULT NULL,
  `end_time` datetime DEFAULT NULL,
  `value` float DEFAULT 0,
  `timestamp` datetime DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=321904 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `pm_custom_title`
--

DROP TABLE IF EXISTS `pm_custom_title`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `pm_custom_title` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ne_type` varchar(16) DEFAULT NULL,
  `kpi_code` varchar(32) DEFAULT NULL,
  `kpi_id` varchar(64) DEFAULT NULL,
  `kpi_set` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `expression` varchar(1024) DEFAULT NULL,
  `object_type` varchar(16) DEFAULT NULL,
  `period` varchar(8) DEFAULT NULL,
  `status` enum('Active','Deleted') DEFAULT NULL,
  `title` varchar(255) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `update_time` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `pm_template`
--

DROP TABLE IF EXISTS `pm_template`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `pm_template` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(64) DEFAULT NULL COMMENT '对象模板名称',
  `ne_type` varchar(16) DEFAULT NULL COMMENT '网元类型',
  `object_type` varchar(16) NOT NULL COMMENT '测量对象类型',
  `kpi_set` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '测量对象通配',
  `created_user` varchar(32) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `created_time` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `updata_time` datetime DEFAULT NULL,
  `kpi_id` varchar(64) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `role`
--

DROP TABLE IF EXISTS `role`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `role` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `role_name` varchar(255) NOT NULL,
  `description` varchar(255) DEFAULT NULL,
  `create_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`,`role_name`) USING BTREE,
  KEY `role_name` (`role_name`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='del-已使用sys_role';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `role_permission`
--

DROP TABLE IF EXISTS `role_permission`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `role_permission` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `r_name` varchar(255) DEFAULT NULL,
  `p_name` varchar(255) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `create_at` datetime DEFAULT current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `r_name` (`r_name`),
  KEY `role_permission_ibfk_2` (`p_name`),
  CONSTRAINT `role_permission_ibfk_1` FOREIGN KEY (`r_name`) REFERENCES `role` (`role_name`),
  CONSTRAINT `role_permission_ibfk_2` FOREIGN KEY (`p_name`) REFERENCES `permission` (`permission_name`)
) ENGINE=InnoDB AUTO_INCREMENT=72 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='del-已使用sys_menu菜单权限标识';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `rs_subscribe`
--

DROP TABLE IF EXISTS `rs_subscribe`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `rs_subscribe` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `created_at` datetime(3) DEFAULT NULL,
  `updated_at` datetime(3) DEFAULT NULL,
  `deleted_at` datetime(3) DEFAULT NULL,
  `user` varchar(64) DEFAULT NULL,
  `event_type` varchar(255) DEFAULT NULL,
  `ne_type` varchar(64) DEFAULT NULL,
  `object_type` varchar(64) DEFAULT NULL,
  `callback_url` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `idx_rs_subscribe_deleted_at` (`deleted_at`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `security_log`
--

DROP TABLE IF EXISTS `security_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `security_log` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `account_name` varchar(32) NOT NULL,
  `account_type` varchar(16) NOT NULL COMMENT 'group_name',
  `op_ip` varchar(64) DEFAULT NULL,
  `op_type` tinyint(4) DEFAULT NULL COMMENT '// 0-Login 1-Logout 2-Add 3-Update 4-Delete 5-Lock 6-Unlock',
  `op_content` text DEFAULT NULL,
  `op_result` tinyint(4) DEFAULT NULL,
  `op_time` datetime DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=604 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `session`
--

DROP TABLE IF EXISTS `session`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `session` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `account_id` varchar(32) DEFAULT NULL,
  `name` varchar(32) DEFAULT NULL,
  `host` varchar(32) DEFAULT NULL,
  `access_token` varchar(255) DEFAULT NULL,
  `expires` int(11) DEFAULT NULL,
  `status` enum('online','offline') DEFAULT 'online',
  `login_time` datetime DEFAULT current_timestamp(),
  `shake_time` datetime DEFAULT NULL,
  `logout_time` datetime DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1177 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `sys_backup`
--

DROP TABLE IF EXISTS `sys_backup`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sys_backup` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  `updated_at` datetime DEFAULT NULL COMMENT '更新时间',
  `backup_type` varchar(50) DEFAULT NULL COMMENT '备份类型 0文件资源 1数据库',
  `backup_way` varchar(50) DEFAULT NULL COMMENT '备份方式 0手动备份 1周期备份',
  `name` varchar(50) DEFAULT NULL COMMENT '文件名',
  `path` varchar(200) DEFAULT NULL COMMENT '文件路径',
  `backup_time` datetime DEFAULT NULL COMMENT '备份时间',
  `backup_medium` varchar(200) DEFAULT NULL COMMENT '备份介质',
  `backup_value` varchar(50) DEFAULT NULL COMMENT '备份内容',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='系统文件数据备份';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `sys_config`
--

DROP TABLE IF EXISTS `sys_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sys_config` (
  `config_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '参数主键',
  `config_name` varchar(50) DEFAULT '' COMMENT '参数名称',
  `config_key` varchar(50) DEFAULT '' COMMENT '参数键名',
  `config_value` varchar(50) DEFAULT '' COMMENT '参数键值',
  `config_type` char(1) DEFAULT 'N' COMMENT '系统内置（Y是 N否）',
  `create_by` varchar(50) DEFAULT '' COMMENT '创建者',
  `create_time` bigint(20) DEFAULT 0 COMMENT '创建时间',
  `update_by` varchar(50) DEFAULT '' COMMENT '更新者',
  `update_time` bigint(20) DEFAULT 0 COMMENT '更新时间',
  `remark` varchar(500) DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`config_id`)
) ENGINE=InnoDB AUTO_INCREMENT=102 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='参数配置表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `sys_dict_data`
--

DROP TABLE IF EXISTS `sys_dict_data`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sys_dict_data` (
  `dict_code` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '字典编码',
  `dict_sort` int(11) DEFAULT 0 COMMENT '字典排序',
  `dict_label` varchar(50) DEFAULT '' COMMENT '字典标签',
  `dict_value` varchar(50) DEFAULT '' COMMENT '字典键值',
  `dict_type` varchar(50) DEFAULT '' COMMENT '字典类型',
  `tag_class` varchar(50) DEFAULT NULL COMMENT '样式属性（样式扩展）',
  `tag_type` varchar(50) DEFAULT NULL COMMENT '标签类型（预设颜色）',
  `status` char(1) DEFAULT '0' COMMENT '状态（0停用 1正常）',
  `create_by` varchar(50) DEFAULT '' COMMENT '创建者',
  `create_time` bigint(20) DEFAULT 0 COMMENT '创建时间',
  `update_by` varchar(50) DEFAULT '' COMMENT '更新者',
  `update_time` bigint(20) DEFAULT 0 COMMENT '更新时间',
  `remark` varchar(500) DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`dict_code`)
) ENGINE=InnoDB AUTO_INCREMENT=100 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='字典数据表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `sys_dict_type`
--

DROP TABLE IF EXISTS `sys_dict_type`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sys_dict_type` (
  `dict_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '字典主键',
  `dict_name` varchar(50) DEFAULT '' COMMENT '字典名称',
  `dict_type` varchar(50) DEFAULT '' COMMENT '字典类型',
  `status` char(1) DEFAULT '0' COMMENT '状态（0停用 1正常）',
  `create_by` varchar(50) DEFAULT '' COMMENT '创建者',
  `create_time` bigint(20) DEFAULT 0 COMMENT '创建时间',
  `update_by` varchar(50) DEFAULT '' COMMENT '更新者',
  `update_time` bigint(20) DEFAULT 0 COMMENT '更新时间',
  `remark` varchar(500) DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`dict_id`),
  UNIQUE KEY `dict_type` (`dict_type`)
) ENGINE=InnoDB AUTO_INCREMENT=101 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='字典类型表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `sys_extended`
--

DROP TABLE IF EXISTS `sys_extended`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sys_extended` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  `updated_at` datetime DEFAULT NULL COMMENT '更新时间',
  `status` varchar(50) DEFAULT NULL COMMENT '状态',
  `host` varchar(50) DEFAULT NULL COMMENT '主机',
  `port` varchar(50) DEFAULT NULL COMMENT '端口',
  `remark` varchar(50) DEFAULT NULL COMMENT '说明',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='系统扩展性';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `sys_menu`
--

DROP TABLE IF EXISTS `sys_menu`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sys_menu` (
  `menu_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '菜单ID',
  `menu_name` varchar(50) NOT NULL COMMENT '菜单名称',
  `parent_id` bigint(20) DEFAULT 0 COMMENT '父菜单ID 默认0',
  `menu_sort` int(11) DEFAULT 0 COMMENT '显示顺序',
  `path` varchar(200) DEFAULT '' COMMENT '路由地址',
  `component` varchar(200) DEFAULT '' COMMENT '组件路径',
  `is_frame` char(1) DEFAULT '1' COMMENT '是否内部跳转（0否 1是）',
  `is_cache` char(1) DEFAULT '0' COMMENT '是否缓存（0不缓存 1缓存）',
  `menu_type` char(1) NOT NULL COMMENT '菜单类型（D目录 M菜单 B按钮）',
  `visible` char(1) DEFAULT '0' COMMENT '是否显示（0隐藏 1显示）',
  `status` char(1) DEFAULT '0' COMMENT '菜单状态（0停用 1正常）',
  `perms` varchar(100) DEFAULT NULL COMMENT '权限标识',
  `icon` varchar(100) DEFAULT '#' COMMENT '菜单图标（#无图标）',
  `create_by` varchar(50) DEFAULT '' COMMENT '创建者',
  `create_time` bigint(20) DEFAULT 0 COMMENT '创建时间',
  `update_by` varchar(50) DEFAULT '' COMMENT '更新者',
  `update_time` bigint(20) DEFAULT 0 COMMENT '更新时间',
  `remark` varchar(500) DEFAULT '' COMMENT '备注',
  PRIMARY KEY (`menu_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2077 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC COMMENT='菜单权限表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `sys_perf_data`
--

DROP TABLE IF EXISTS `sys_perf_data`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sys_perf_data` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主鍵',
  `create_time` datetime DEFAULT NULL COMMENT '創建時間',
  `dir_used` varchar(10) DEFAULT NULL COMMENT '文件目錄空間使用GB',
  `dir_list` text DEFAULT NULL COMMENT '文件目錄列表數據json',
  `db_info` varchar(255) DEFAULT NULL COMMENT '數據庫空間使用信息',
  `mem_used` varchar(5) DEFAULT NULL COMMENT '内存使用率%',
  `cpu_used` varchar(5) DEFAULT NULL COMMENT 'CPU使用率%',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='del-系统指标数据';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `sys_role`
--

DROP TABLE IF EXISTS `sys_role`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sys_role` (
  `role_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '角色ID',
  `role_name` varchar(30) NOT NULL COMMENT '角色名称',
  `role_key` varchar(50) NOT NULL COMMENT '角色键值',
  `role_sort` int(11) DEFAULT 0 COMMENT '显示顺序',
  `data_scope` char(1) DEFAULT '5' COMMENT '数据范围（1：全部数据权限 2：自定数据权限 3：本部门数据权限 4：本部门及以下数据权限 5：仅本人数据权限）',
  `menu_check_strictly` char(1) DEFAULT '1' COMMENT '菜单树选择项是否关联显示（0：父子不互相关联显示 1：父子互相关联显示）',
  `dept_check_strictly` char(1) DEFAULT '1' COMMENT '部门树选择项是否关联显示（0：父子不互相关联显示 1：父子互相关联显示 ）',
  `status` char(1) DEFAULT '0' COMMENT '角色状态（0停用 1正常）',
  `del_flag` char(1) DEFAULT '0' COMMENT '删除标志（0代表存在 1代表删除）',
  `create_by` varchar(50) DEFAULT '' COMMENT '创建者',
  `create_time` bigint(20) DEFAULT 0 COMMENT '创建时间',
  `update_by` varchar(50) DEFAULT '' COMMENT '更新者',
  `update_time` bigint(20) DEFAULT 0 COMMENT '更新时间',
  `remark` varchar(500) DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`role_id`)
) ENGINE=InnoDB AUTO_INCREMENT=116 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='角色信息表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `sys_role_menu`
--

DROP TABLE IF EXISTS `sys_role_menu`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
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`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='角色和菜单关联表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `sys_user_role`
--

DROP TABLE IF EXISTS `sys_user_role`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
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`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='用户和角色关联表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `system_log`
--

DROP TABLE IF EXISTS `system_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `system_log` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `process_type` enum('SYS','DB','OMC','NE') DEFAULT 'OMC',
  `process_name` varchar(32) NOT NULL,
  `user_name` varchar(30) DEFAULT NULL,
  `process_id` varchar(16) NOT NULL,
  `event` varchar(64) DEFAULT NULL,
  `start_time` datetime DEFAULT NULL,
  `end_time` datetime DEFAULT NULL,
  `log_time` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1294 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `title_info`
--

DROP TABLE IF EXISTS `title_info`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `title_info` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tag` varchar(15) DEFAULT NULL,
  `title_json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '某个title的各种语言显示内容的json格式',
  `remark` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `trace_data`
--

DROP TABLE IF EXISTS `trace_data`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `trace_data` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `task_id` int(11) DEFAULT NULL,
  `imsi` varchar(16) DEFAULT NULL,
  `msisdn` varchar(16) DEFAULT NULL,
  `src_addr` varchar(128) DEFAULT NULL,
  `dst_addr` varchar(128) DEFAULT NULL,
  `if_type` int(11) DEFAULT 0,
  `msg_type` int(11) DEFAULT NULL,
  `msg_direct` int(11) DEFAULT NULL,
  `timestamp` bigint(20) DEFAULT NULL,
  `raw_msg` blob DEFAULT NULL,
  `dec_msg` blob DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=311486 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `trace_info`
--

DROP TABLE IF EXISTS `trace_info`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `trace_info` (
  `ne_type` varchar(32) DEFAULT NULL,
  `interface` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `trace_task`
--

DROP TABLE IF EXISTS `trace_task`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `trace_task` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `trace_type` enum('Interface','Device','UE') DEFAULT NULL,
  `start_time` datetime DEFAULT NULL,
  `end_time` datetime DEFAULT NULL,
  `imsi` varchar(16) DEFAULT NULL,
  `msisdn` varchar(16) DEFAULT NULL,
  `src_ip` varchar(50) DEFAULT NULL,
  `dst_ip` varchar(50) DEFAULT NULL,
  `signal_port` smallint(6) DEFAULT NULL,
  `spc` varchar(30) DEFAULT NULL,
  `dpc` varchar(30) DEFAULT NULL,
  `ne_type` varchar(32) DEFAULT NULL,
  `ne_id` varchar(32) DEFAULT NULL,
  `ue_ip` varchar(50) DEFAULT NULL,
  `interfaces` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `status` enum('Inactive','Active','Failed') DEFAULT 'Inactive',
  `account_id` varchar(32) DEFAULT NULL,
  `comment` varchar(255) DEFAULT NULL,
  `succ_nes` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `fail_nes` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `update_time` datetime DEFAULT current_timestamp(),
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=89 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `u_auth_user`
--

DROP TABLE IF EXISTS `u_auth_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `u_auth_user` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `msisdn` varchar(16) DEFAULT NULL COMMENT '相当手机号',
  `imsi` varchar(50) DEFAULT NULL COMMENT 'SIM卡号',
  `amf` varchar(50) DEFAULT NULL COMMENT 'AMF',
  `status` varchar(50) DEFAULT NULL COMMENT '状态',
  `ki` varchar(50) DEFAULT NULL COMMENT 'ki',
  `algo_index` varchar(50) DEFAULT NULL COMMENT 'algoIndex',
  `opc` varchar(50) DEFAULT NULL COMMENT 'OPC',
  `ne_id` varchar(50) DEFAULT NULL COMMENT 'UDM网元标识-子系统',
  PRIMARY KEY (`id`),
  UNIQUE KEY `imsi_ne` (`imsi`,`ne_id`) USING HASH COMMENT 'imsi_neid唯一主键'
) ENGINE=InnoDB AUTO_INCREMENT=116299 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='UDM鉴权用户';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `u_sub_user`
--

DROP TABLE IF EXISTS `u_sub_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `u_sub_user` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `msisdn` varchar(50) DEFAULT NULL COMMENT '相当手机号',
  `imsi` varchar(50) DEFAULT NULL COMMENT 'SIM卡号',
  `ambr` varchar(50) DEFAULT NULL COMMENT 'SubUeAMBRTemp',
  `nssai` varchar(50) DEFAULT NULL COMMENT 'SubSNSSAITemp',
  `rat` varchar(50) DEFAULT NULL COMMENT 'rat',
  `arfb` varchar(50) DEFAULT NULL COMMENT 'forbiddenAreasTemp',
  `sar` varchar(50) DEFAULT NULL COMMENT 'serviceAreaRestrictTemp',
  `cn` varchar(50) DEFAULT NULL COMMENT 'cnType',
  `sm_data` varchar(50) DEFAULT NULL COMMENT 'smData',
  `smf_sel` varchar(50) DEFAULT NULL COMMENT 'smfSel',
  `eps_dat` varchar(50) DEFAULT NULL COMMENT 'Eps',
  `ne_id` varchar(50) DEFAULT '' COMMENT 'UDM网元标识-子系统',
  `eps_flag` varchar(50) DEFAULT NULL COMMENT 'epsFlag',
  `eps_odb` varchar(50) DEFAULT NULL COMMENT 'epsOdb',
  `hplmn_odb` varchar(50) DEFAULT NULL COMMENT 'hplmnOdb',
  `ard` varchar(50) DEFAULT NULL COMMENT 'Ard',
  `epstpl` varchar(50) DEFAULT NULL COMMENT 'Epstpl',
  `context_id` varchar(50) DEFAULT NULL COMMENT 'ContextId',
  `apn_context` varchar(50) DEFAULT NULL COMMENT 'apnContext',
  `static_ip` varchar(50) DEFAULT NULL COMMENT 'staticIpstatic_ip指给4G UE分配的静态IP，没有可不带此字段名',
  PRIMARY KEY (`id`),
  UNIQUE KEY `imsi_ne` (`imsi`,`ne_id`) USING HASH COMMENT 'imsi_ne唯一索引'
) ENGINE=InnoDB AUTO_INCREMENT=82327 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='UDM签约用户';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user`
--

DROP TABLE IF EXISTS `user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `account_id` varchar(32) NOT NULL,
  `name` varchar(10) DEFAULT NULL,
  `real_name` varchar(128) DEFAULT NULL,
  `sn` varchar(128) DEFAULT NULL,
  `gender` varchar(128) DEFAULT NULL,
  `email` varchar(128) DEFAULT NULL,
  `id_card_number` varchar(128) DEFAULT NULL,
  `description` varchar(128) DEFAULT NULL,
  `telephone_number` varchar(128) DEFAULT NULL,
  `phone` varchar(128) DEFAULT NULL,
  `mobile` varchar(128) DEFAULT NULL,
  `employee_number` varchar(128) DEFAULT NULL,
  `employee_type` varchar(128) DEFAULT NULL,
  `organize` varchar(128) DEFAULT NULL,
  `supporter_corp_name` varchar(128) DEFAULT NULL,
  `start_time` varchar(128) DEFAULT NULL,
  `end_time` varchar(128) DEFAULT NULL,
  `password` varchar(256) DEFAULT NULL,
  `password_sha512` varchar(1024) DEFAULT NULL,
  `change_password_flag` tinyint(4) unsigned zerofill DEFAULT 0000,
  `password_expiration` datetime DEFAULT NULL,
  `status` enum('Active','Closed','Locked','Pending') DEFAULT 'Active',
  `user_expiration` datetime DEFAULT NULL,
  `group_name` varchar(16) DEFAULT 'omc',
  `profile` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `create_time` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `update_time` datetime DEFAULT NULL,
  `unit` varchar(128) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `idx_uni_user_acc_id` (`account_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=202 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_menu`
--

DROP TABLE IF EXISTS `user_menu`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_menu` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `menu_tag` varchar(64) DEFAULT '',
  `sort_id` int(11) DEFAULT NULL,
  `lang_tag` varchar(16) DEFAULT NULL,
  `menu_json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC COMMENT='del-已使用sys_menu';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `user_role`
--

DROP TABLE IF EXISTS `user_role`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_role` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `u_name` varchar(255) DEFAULT NULL,
  `r_name` varchar(255) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `create_at` datetime DEFAULT current_timestamp(),
  PRIMARY KEY (`id`) USING BTREE,
  KEY `r_name` (`u_name`) USING BTREE,
  KEY `p_name` (`r_name`) USING BTREE,
  CONSTRAINT `user_role_rbfk1` FOREIGN KEY (`u_name`) REFERENCES `user` (`account_id`),
  CONSTRAINT `user_role_rbfk2` FOREIGN KEY (`r_name`) REFERENCES `role` (`role_name`)
) ENGINE=InnoDB AUTO_INCREMENT=54 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC COMMENT='del-已经使用sys_role_user';
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2023-10-11 13:59:03
