feat: 添加kpi_c_report_nrf和kpi_report_nrf表的结构及索引

This commit is contained in:
TsMask
2025-09-16 14:32:10 +08:00
parent afe1ba484a
commit 8bf115b7c6
8 changed files with 224 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
-- ----------------------------
-- Table structure for kpi_c_report_nrf
-- ----------------------------
CREATE TABLE IF NOT EXISTS "kpi_c_report_nrf" (
"id" integer NOT NULL,
"ne_type" text(16),
"ne_name" text(64),
"rm_uid" text(64),
"date" text(10) NOT NULL,
"start_time" text(10),
"end_time" text(10),
"index" integer(11) NOT NULL,
"granularity" integer(11),
"kpi_values" text,
"created_at" integer(20),
PRIMARY KEY ("id")
);
-- ----------------------------
-- Indexes structure for table kpi_c_report_nrf
-- ----------------------------
CREATE INDEX IF NOT EXISTS "idx_c_nrf_uid_at"
ON "kpi_c_report_nrf" (
"rm_uid" ASC,
"created_at" ASC
);
-- ----------------------------
-- Records of kpi_c_report_nrf
-- ----------------------------

View File

@@ -0,0 +1,30 @@
-- ----------------------------
-- Table structure for kpi_report_nrf
-- ----------------------------
CREATE TABLE IF NOT EXISTS "kpi_report_nrf" (
"id" integer NOT NULL,
"ne_type" text(16),
"ne_name" text(64),
"rm_uid" text(64),
"date" text(10) NOT NULL,
"start_time" text(10),
"end_time" text(10),
"index" integer(11) NOT NULL,
"granularity" integer(11),
"kpi_values" text,
"created_at" integer(20),
PRIMARY KEY ("id")
);
-- ----------------------------
-- Indexes structure for table kpi_report_nrf
-- ----------------------------
CREATE INDEX IF NOT EXISTS "idx_nrf_uid_at"
ON "kpi_report_nrf" (
"rm_uid" ASC,
"created_at" ASC
);
-- ----------------------------
-- Records of kpi_report_nrf
-- ----------------------------