/*
 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: 22/01/2024 17:03:39
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for ue_event_amf
-- ----------------------------
CREATE TABLE IF NOT EXISTS `ue_event_amf`  (
  `id` int NOT NULL AUTO_INCREMENT,
  `ne_type` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `ne_name` varchar(64) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `rm_uid` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `timestamp` int DEFAULT NULL,
  `event_type` varchar(16) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'auth-result/detach/cm-state',
  `event_json` longtext COLLATE utf8mb4_general_ci,
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  KEY `id` (`id`) USING BTREE,
  KEY `idx_type_timestamp` (`ne_type`,`timestamp`,`event_type`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;

SET FOREIGN_KEY_CHECKS = 1;
