Merge branch 'lichang' into lite

This commit is contained in:
TsMask
2025-05-23 16:05:37 +08:00
195 changed files with 4924 additions and 3996 deletions

View File

@@ -1,17 +0,0 @@
-- ----------------------------
-- Table structure for 4a_log
-- ----------------------------
DROP TABLE IF EXISTS "4a_log";
CREATE TABLE "4a_log" (
"LogTime" text,
"SubUser" text(32),
"App" text(64),
"Sip" text(32),
"AppModule" text(32),
"OpType" text(255),
"OpText" text(255)
);
-- ----------------------------
-- Records of 4a_log
-- ----------------------------

View File

@@ -1,27 +0,0 @@
-- ----------------------------
-- Table structure for alarm_relation
-- ----------------------------
DROP TABLE IF EXISTS "alarm_relation";
CREATE TABLE "alarm_relation" (
"id" integer NOT NULL,
"created_at" text(3),
"updated_at" text(3),
"deleted_at" text(3),
"root_alarm_id" text(64),
"alarm_id" text(64),
"relation_type" text(64),
"add_info" text(64),
PRIMARY KEY ("id")
);
-- ----------------------------
-- Indexes structure for table alarm_relation
-- ----------------------------
CREATE INDEX "idx_alarm_relation_deleted_at"
ON "alarm_relation" (
"deleted_at" ASC
);
-- ----------------------------
-- Records of alarm_relation
-- ----------------------------

View File

@@ -1,25 +0,0 @@
-- ----------------------------
-- Table structure for alarm_subscribe
-- ----------------------------
DROP TABLE IF EXISTS "alarm_subscribe";
CREATE TABLE "alarm_subscribe" (
"id" integer NOT NULL,
"created_at" text(3),
"updated_at" text(3),
"deleted_at" text(3),
"user" text(64),
"callback_url" text(255),
PRIMARY KEY ("id")
);
-- ----------------------------
-- Indexes structure for table alarm_subscribe
-- ----------------------------
CREATE INDEX "idx_alarm_subscribe_deleted_at"
ON "alarm_subscribe" (
"deleted_at" ASC
);
-- ----------------------------
-- Records of alarm_subscribe
-- ----------------------------

View File

@@ -1,20 +0,0 @@
-- ----------------------------
-- Table structure for cert_info
-- ----------------------------
DROP TABLE IF EXISTS "cert_info";
CREATE TABLE "cert_info" (
"id" integer NOT NULL,
"file_name" text(64),
"key_length" integer(11),
"key_algorithm" text(16),
"cert_format" text(16),
"cert_expiration" text(24),
"created_at" text,
"updated_at" text,
"deleted_at" text,
PRIMARY KEY ("id")
);
-- ----------------------------
-- Records of cert_info
-- ----------------------------

View File

@@ -1,17 +0,0 @@
-- ----------------------------
-- Table structure for event_log
-- ----------------------------
DROP TABLE IF EXISTS "event_log";
CREATE TABLE "event_log" (
"id" integer NOT NULL,
"ne_type" text(16),
"ne_id" text(32) NOT NULL,
"event" text(255) NOT NULL,
"event_time" text,
"log_time" text,
PRIMARY KEY ("id")
);
-- ----------------------------
-- Records of event_log
-- ----------------------------

View File

@@ -0,0 +1,31 @@
-- ----------------------------
-- Table structure for kpi_c_report_ausf
-- ----------------------------
DROP TABLE IF EXISTS "kpi_c_report_ausf";
CREATE TABLE "kpi_c_report_ausf" (
"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_ausf
-- ----------------------------
CREATE INDEX "idx_c_ausf_uid_at"
ON "kpi_c_report_ausf" (
"rm_uid" ASC,
"created_at" ASC
);
-- ----------------------------
-- Records of kpi_c_report_ausf
-- ----------------------------

View File

@@ -0,0 +1,31 @@
-- ----------------------------
-- Table structure for kpi_c_report_cbc
-- ----------------------------
DROP TABLE IF EXISTS "kpi_c_report_cbc";
CREATE TABLE "kpi_c_report_cbc" (
"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_cbc
-- ----------------------------
CREATE INDEX "idx_c_cbc_uid_at"
ON "kpi_c_report_cbc" (
"rm_uid" ASC,
"created_at" ASC
);
-- ----------------------------
-- Records of kpi_c_report_cbc
-- ----------------------------

View File

@@ -0,0 +1,31 @@
-- ----------------------------
-- Table structure for kpi_c_report_hlr
-- ----------------------------
DROP TABLE IF EXISTS "kpi_c_report_hlr";
CREATE TABLE "kpi_c_report_hlr" (
"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_hlr
-- ----------------------------
CREATE INDEX "idx_c_hlr_uid_at"
ON "kpi_c_report_hlr" (
"rm_uid" ASC,
"created_at" ASC
);
-- ----------------------------
-- Records of kpi_c_report_hlr
-- ----------------------------

View File

@@ -0,0 +1,31 @@
-- ----------------------------
-- Table structure for kpi_c_report_mocngw
-- ----------------------------
DROP TABLE IF EXISTS "kpi_c_report_mocngw";
CREATE TABLE "kpi_c_report_mocngw" (
"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_mocngw
-- ----------------------------
CREATE INDEX "idx_c_mocngw_uid_at"
ON "kpi_c_report_mocngw" (
"rm_uid" ASC,
"created_at" ASC
);
-- ----------------------------
-- Records of kpi_c_report_mocngw
-- ----------------------------

View File

@@ -0,0 +1,31 @@
-- ----------------------------
-- Table structure for kpi_c_report_nssf
-- ----------------------------
DROP TABLE IF EXISTS "kpi_c_report_nssf";
CREATE TABLE "kpi_c_report_nssf" (
"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_nssf
-- ----------------------------
CREATE INDEX "idx_c_nssf_uid_at"
ON "kpi_c_report_nssf" (
"rm_uid" ASC,
"created_at" ASC
);
-- ----------------------------
-- Records of kpi_c_report_nssf
-- ----------------------------

View File

@@ -0,0 +1,31 @@
-- ----------------------------
-- Table structure for kpi_c_report_pcf
-- ----------------------------
DROP TABLE IF EXISTS "kpi_c_report_pcf";
CREATE TABLE "kpi_c_report_pcf" (
"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_pcf
-- ----------------------------
CREATE INDEX "idx_c_pcf_uid_at"
ON "kpi_c_report_pcf" (
"rm_uid" ASC,
"created_at" ASC
);
-- ----------------------------
-- Records of kpi_c_report_pcf
-- ----------------------------

View File

@@ -0,0 +1,31 @@
-- ----------------------------
-- Table structure for kpi_c_report_smsc
-- ----------------------------
DROP TABLE IF EXISTS "kpi_c_report_smsc";
CREATE TABLE "kpi_c_report_smsc" (
"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_smsc
-- ----------------------------
CREATE INDEX "idx_c_smsc_uid_at"
ON "kpi_c_report_smsc" (
"rm_uid" ASC,
"created_at" ASC
);
-- ----------------------------
-- Records of kpi_c_report_smsc
-- ----------------------------

View File

@@ -1,25 +0,0 @@
-- ----------------------------
-- Table structure for measure_data
-- ----------------------------
DROP TABLE IF EXISTS "measure_data";
CREATE TABLE "measure_data" (
"id" integer NOT NULL,
"date" text,
"task_id" integer(11),
"ne_name" text(64),
"rm_uid" text(64),
"ne_type" text(16),
"granul_option" text(255),
"kpi_code" text(32),
"kpi_id" text(64),
"kpi_ext" text(32),
"start_time" text,
"end_time" text,
"value" integer(20),
"timestamp" text,
PRIMARY KEY ("id")
);
-- ----------------------------
-- Records of measure_data
-- ----------------------------

View File

@@ -1,26 +0,0 @@
-- ----------------------------
-- Table structure for measure_task
-- ----------------------------
DROP TABLE IF EXISTS "measure_task";
CREATE TABLE "measure_task" (
"id" integer NOT NULL,
"ne_type" text(16),
"ne_ids" text,
"kpi_set" text,
"start_time" text(32),
"end_time" text(32),
"periods" text,
"schedule" text,
"granul_option" text(255) NOT NULL,
"status" text(255) NOT NULL,
"account_id" text(32),
"comment" text(255),
"create_time" text,
"update_time" text,
"delete_time" text,
PRIMARY KEY ("id")
);
-- ----------------------------
-- Records of measure_task
-- ----------------------------

View File

@@ -1,20 +0,0 @@
-- ----------------------------
-- Table structure for measure_threshold
-- ----------------------------
DROP TABLE IF EXISTS "measure_threshold";
CREATE TABLE "measure_threshold" (
"id" integer NOT NULL,
"ne_type" text(16),
"kpi_set" text(1024),
"threshold" integer(20),
"status" text(255),
"orig_severity" text(255),
"alarm_code" text(16),
"alarm_flag" integer(4),
"create_time" text,
PRIMARY KEY ("id")
);
-- ----------------------------
-- Records of measure_threshold
-- ----------------------------

View File

@@ -1,23 +0,0 @@
-- ----------------------------
-- Table structure for nbi_alarm_log
-- ----------------------------
DROP TABLE IF EXISTS "nbi_alarm_log";
CREATE TABLE "nbi_alarm_log" (
"id" integer NOT NULL,
"op_user" text(16),
"src_ip" text(64) NOT NULL,
"ne_type" text(16),
"ne_id" text(32),
"alarm_seq" integer(11) NOT NULL,
"alarm_id" text(32),
"alarm_code" integer(11),
"alarm_status" integer(11),
"event_time" text(32),
"log_time" text NOT NULL,
"a_id" integer(11) NOT NULL,
PRIMARY KEY ("id")
);
-- ----------------------------
-- Records of nbi_alarm_log
-- ----------------------------

View File

@@ -1,26 +0,0 @@
-- ----------------------------
-- Table structure for nbi_cm
-- ----------------------------
DROP TABLE IF EXISTS "nbi_cm";
CREATE TABLE "nbi_cm" (
"id" integer NOT NULL,
"timestamp" text,
"time_zone" text(10),
"vendor_name" text(65),
"ne_type" text(16),
"cm_version" text(32),
"rm_uid" text(32),
"ne_id" text(32),
"user_label" text(64),
"object_type" text(32),
"pv_flag" text(255),
"vm_id" text(128),
"vnf_instance_id" text(64),
"value_json" text,
"status" text(255) NOT NULL,
PRIMARY KEY ("id")
);
-- ----------------------------
-- Records of nbi_cm
-- ----------------------------

View File

@@ -1,37 +0,0 @@
-- ----------------------------
-- Table structure for nbi_operation_log
-- ----------------------------
DROP TABLE IF EXISTS "nbi_operation_log";
CREATE TABLE "nbi_operation_log" (
"id" integer NOT NULL,
"src_ip" text(64),
"op_user" text(32),
"dst_ip" text(64),
"op_type" text(32),
"op_proto" text(32),
"op_params" text(255),
"op_result" text(64),
"op_time" text,
"log_time" text,
"created_at" text,
"pri" text,
"vendor" text,
"ne_name" text,
"rm_uid" text,
"ne_type" text,
"log_type" text,
"user_name" text,
"terminal_ip" text,
"start_time" text,
"end_time" text,
"oper_type" text,
"risk_level" text,
"oper_content" text,
"oper_result" text,
"failure_cause" text,
PRIMARY KEY ("id")
);
-- ----------------------------
-- Records of nbi_operation_log
-- ----------------------------

View File

@@ -1,24 +0,0 @@
-- ----------------------------
-- Table structure for nbi_pm
-- ----------------------------
DROP TABLE IF EXISTS "nbi_pm";
CREATE TABLE "nbi_pm" (
"id" integer NOT NULL,
"date" text,
"index" integer(11),
"start_time" text,
"time_zone" text(16),
"ne_name" text(64),
"pm_version" text(16),
"period" text(6),
"rm_uid" text(64),
"ne_type" text(16),
"dn" text(255),
"datas" text,
"timestamp" text,
PRIMARY KEY ("id")
);
-- ----------------------------
-- Records of nbi_pm
-- ----------------------------

View File

@@ -1,24 +0,0 @@
-- ----------------------------
-- Table structure for nbi_secure_log
-- ----------------------------
DROP TABLE IF EXISTS "nbi_secure_log";
CREATE TABLE "nbi_secure_log" (
"id" integer NOT NULL,
"created_at" text(3),
"pri" text,
"vendor" text,
"ne_name" text,
"rm_uid" text,
"ne_type" text,
"log_type" text,
"event_name" text,
"start_time" text,
"user_name" text,
"terminal_ip" text,
"oper_result" text,
PRIMARY KEY ("id")
);
-- ----------------------------
-- Records of nbi_secure_log
-- ----------------------------

View File

@@ -1,16 +0,0 @@
-- ----------------------------
-- Table structure for ne_check
-- ----------------------------
DROP TABLE IF EXISTS "ne_check";
CREATE TABLE "ne_check" (
"id" integer(10) NOT NULL,
"status" integer(4),
"result" text(64),
"create_time" text,
"ne_type" text(32),
PRIMARY KEY ("id")
);
-- ----------------------------
-- Records of ne_check
-- ----------------------------

View File

@@ -1,29 +0,0 @@
-- ----------------------------
-- Table structure for ne_link
-- ----------------------------
DROP TABLE IF EXISTS "ne_link";
CREATE TABLE "ne_link" (
"id" integer NOT NULL,
"ne_type" text(32) NOT NULL,
"ne_id" text(32) NOT NULL,
"rm_uid" text(40),
"interface" text(16),
"status" text(255),
"created_at" text,
"updated_at" text,
"deleted_at" text,
PRIMARY KEY ("id")
);
-- ----------------------------
-- Indexes structure for table ne_link
-- ----------------------------
CREATE UNIQUE INDEX "idx_netype_neid"
ON "ne_link" (
"ne_type" ASC,
"ne_id" ASC
);
-- ----------------------------
-- Records of ne_link
-- ----------------------------

View File

@@ -1,18 +0,0 @@
-- ----------------------------
-- Table structure for ne_pool
-- ----------------------------
DROP TABLE IF EXISTS "ne_pool";
CREATE TABLE "ne_pool" (
"id" integer NOT NULL,
"name" text(255),
"ne_type" text(50) NOT NULL,
"ne_id" text(50) NOT NULL,
"rm_uid" text(50),
"balance" integer(11),
"update_time" text,
PRIMARY KEY ("id", "ne_type", "ne_id")
);
-- ----------------------------
-- Records of ne_pool
-- ----------------------------

View File

@@ -1,26 +0,0 @@
-- ----------------------------
-- Table structure for northbound_cm
-- ----------------------------
DROP TABLE IF EXISTS "northbound_cm";
CREATE TABLE "northbound_cm" (
"id" integer NOT NULL,
"timestamp" text,
"time_zone" text(10),
"vendor_name" text(65),
"ne_type" text(16),
"cm_version" text(32),
"rm_uid" text(32),
"ne_id" text(32),
"user_label" text(64),
"object_type" text(32),
"pv_flag" text(255),
"vm_id" text(128),
"vnf_instance_id" text(64),
"value_json" text,
"status" text(255) NOT NULL,
PRIMARY KEY ("id")
);
-- ----------------------------
-- Records of northbound_cm
-- ----------------------------

View File

@@ -1,24 +0,0 @@
-- ----------------------------
-- Table structure for northbound_pm
-- ----------------------------
DROP TABLE IF EXISTS "northbound_pm";
CREATE TABLE "northbound_pm" (
"id" integer NOT NULL,
"date" text,
"index" integer(11),
"start_time" text,
"time_zone" text(16),
"ne_name" text(64),
"pm_version" text(16),
"period" text(6),
"rm_uid" text(64),
"ne_type" text(16),
"dn" text(255),
"datas" text,
"timestamp" text,
PRIMARY KEY ("id")
);
-- ----------------------------
-- Records of northbound_pm
-- ----------------------------

View File

@@ -1,17 +0,0 @@
-- ----------------------------
-- Table structure for param_value
-- ----------------------------
DROP TABLE IF EXISTS "param_value";
CREATE TABLE "param_value" (
"id" integer(11) NOT NULL,
"ne_type" text(32),
"ne_id" text(64) NOT NULL,
"flag" integer(4) NOT NULL,
"top_tag" text(32) NOT NULL,
"value_json" text,
PRIMARY KEY ("id")
);
-- ----------------------------
-- Records of param_value
-- ----------------------------

View File

@@ -1,23 +0,0 @@
-- ----------------------------
-- Table structure for pm_custom_data
-- ----------------------------
DROP TABLE IF EXISTS "pm_custom_data";
CREATE TABLE "pm_custom_data" (
"id" integer NOT NULL,
"date" text,
"ne_name" text(64),
"rm_uid" text(64),
"ne_type" text(16),
"granul_option" text(255),
"object_type" text(32),
"kpi_id" text(64),
"start_time" text,
"end_time" text,
"value" integer,
"timestamp" text,
PRIMARY KEY ("id")
);
-- ----------------------------
-- Records of pm_custom_data
-- ----------------------------

View File

@@ -1,21 +0,0 @@
-- ----------------------------
-- Table structure for pm_template
-- ----------------------------
DROP TABLE IF EXISTS "pm_template";
CREATE TABLE "pm_template" (
"id" integer NOT NULL,
"name" text(64),
"ne_type" text(16),
"object_type" text(16) NOT NULL,
"kpi_set" text,
"created_user" text(32),
"description" text(255),
"created_time" text,
"updata_time" text,
"kpi_id" text(64),
PRIMARY KEY ("id")
);
-- ----------------------------
-- Records of pm_template
-- ----------------------------

View File

@@ -23,7 +23,6 @@ ON "ue_event_mme" (
"timestamp" ASC
);
-- ----------------------------
-- Records of ue_event_mme
-- ----------------------------