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

DROP TABLE IF EXISTS `trace_data`;
CREATE TABLE `trace_data` (
  `id` int NOT NULL AUTO_INCREMENT,
  `trace_id` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '跟踪任务ID',
  `imsi` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT 'UE类型 IMSI',
  `msisdn` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT 'UE类型 可能存在',
  `src_addr` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '源地址',
  `dst_addr` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '目标地址',
  `if_type` varchar(16) COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '接口类型，未分类',
  `msg_type` int DEFAULT NULL COMMENT '消息类型，0-req, 1-rsp',
  `msg_direct` int DEFAULT NULL COMMENT '消息方向，0-recv,1-send',
  `msg_ne` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '消息网元',
  `msg_event` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '消息事件，e.g: CreateContextReq',
  `length` int DEFAULT NULL COMMENT '原始数据byte长度',
  `timestamp` bigint DEFAULT '0' COMMENT '纳秒时间戳',
  `raw_msg` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '原始数据byteBase64',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `idx_task_id_time` (`trace_id`,`timestamp`) COMMENT '任务DI时间'
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='跟踪_任务数据';

-- Dump completed on 2025-04-14 14:26:59
