-- MariaDB dump 10.19  Distrib 10.6.16-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 `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_pk_id` (`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,
  KEY `idx_severity_status` (`alarm_status`,`orig_severity`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=202647 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
/*!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 2024-03-06 17:26:55
