-- ----------------------------
-- Table structure for trace_data
-- ----------------------------
DROP TABLE IF EXISTS "trace_data";
CREATE TABLE "trace_data" (
  "id" integer NOT NULL,
  "trace_id" text(16) NOT NULL,
  "imsi" text(16),
  "msisdn" text(16),
  "src_addr" text(128),
  "dst_addr" text(128),
  "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,
  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
-- ----------------------------
