sql: 重构网元跟踪任务功能

This commit is contained in:
TsMask
2025-04-18 16:55:51 +08:00
parent 43965222b1
commit 1a3188336d
14 changed files with 154 additions and 63 deletions

View File

@@ -4,21 +4,31 @@
DROP TABLE IF EXISTS "trace_data";
CREATE TABLE "trace_data" (
"id" integer NOT NULL,
"task_id" integer(11) NOT NULL,
"trace_id" text(16) NOT NULL,
"imsi" text(16),
"msisdn" text(16),
"src_addr" text(128),
"dst_addr" text(128),
"if_type" integer(11),
"msg_type" integer(11),
"msg_direct" integer(11),
"length" integer(11),
"timestamp" integer(20),
"if_type" text(16),
"msg_type" integer,
"msg_direct" integer,
"msg_ne" text(16),
"msg_event" text(128),
"length" integer,
"timestamp" integer,
"raw_msg" text,
"dec_msg" text,
PRIMARY KEY ("id")
);
-- ----------------------------
-- Indexes structure for table trace_data
-- ----------------------------
CREATE INDEX "idx_task_id_time"
ON "trace_data" (
"trace_id" ASC,
"timestamp" ASC
);
-- ----------------------------
-- Records of trace_data
-- ----------------------------