feat: UDM用户数据添加创建时间字段

This commit is contained in:
TsMask
2025-09-25 15:37:13 +08:00
parent cb7e7f574b
commit 17048e7248
24 changed files with 261 additions and 46 deletions

View File

@@ -4,8 +4,9 @@
DROP TABLE IF EXISTS "udm_auth";
CREATE TABLE "udm_auth" (
"id" integer NOT NULL,
"imsi" text(50) NOT NULL,
"create_time" integer,
"ne_id" text(50),
"imsi" text(50) NOT NULL,
"amf" text(50),
"status" text(50),
"ki" text(50),

View File

@@ -4,9 +4,10 @@
DROP TABLE IF EXISTS "udm_sub";
CREATE TABLE "udm_sub" (
"id" integer NOT NULL,
"create_time" integer,
"ne_id" text(50),
"imsi" text(50) NOT NULL,
"msisdn" text(50),
"ne_id" text(50),
"am_dat" text(1500),
"ambr" text(50),
"nssai" text(50),

View File

@@ -4,6 +4,7 @@
DROP TABLE IF EXISTS "udm_voip";
CREATE TABLE "udm_voip" (
"id" integer NOT NULL,
"create_time" integer,
"ne_id" text(50),
"username" text(50),
"password" text(128),

View File

@@ -4,9 +4,10 @@
DROP TABLE IF EXISTS "udm_volte_ims";
CREATE TABLE "udm_volte_ims" (
"id" integer NOT NULL,
"create_time" integer,
"ne_id" text(50),
"imsi" text(50) NOT NULL,
"msisdn" text(50),
"ne_id" text(50),
"tag" text(50),
"vni" text(128),
PRIMARY KEY ("id")

View File

@@ -0,0 +1,29 @@
-- ----------------------------
-- Table structure for udm_auth
-- ----------------------------
DROP TABLE IF EXISTS "udm_auth";
CREATE TABLE "udm_auth" (
"id" integer NOT NULL,
"create_time" integer,
"ne_id" text(50),
"imsi" text(50) NOT NULL,
"amf" text(50),
"status" text(50),
"ki" text(50),
"algo_index" text(50),
"opc" text(50),
PRIMARY KEY ("id")
);
-- ----------------------------
-- Indexes structure for table udm_auth
-- ----------------------------
CREATE UNIQUE INDEX "uk_auth_imsi_ne"
ON "udm_auth" (
"imsi" ASC,
"ne_id" ASC
);
-- ----------------------------
-- Records of udm_auth
-- ----------------------------

View File

@@ -0,0 +1,52 @@
-- ----------------------------
-- Table structure for udm_sub
-- ----------------------------
DROP TABLE IF EXISTS "udm_sub";
CREATE TABLE "udm_sub" (
"id" integer NOT NULL,
"create_time" integer,
"ne_id" text(50),
"imsi" text(50) NOT NULL,
"msisdn" text(50),
"am_dat" text(1500),
"ambr" text(50),
"nssai" text(50),
"rat" text(50),
"arfb" text(50),
"sar" text(50),
"cn_type" text(50),
"rfsp_index" text(50),
"reg_timer" text(50),
"ue_usage_type" text(50),
"active_time" text(50),
"mico" text(50),
"odb_ps" text(50),
"group_id" text(50),
"eps_dat" text(1500),
"eps_flag" text(50),
"eps_odb" text(50),
"hplmn_odb" text(50),
"ard" text(50),
"epstpl" text(50),
"context_id" text(50),
"apn_mum" text(50),
"apn_context" text(50),
"static_ip" text(50),
"sm_data" text(1500),
"smf_sel" text(50),
"cag" text(50),
PRIMARY KEY ("id")
);
-- ----------------------------
-- Indexes structure for table udm_sub
-- ----------------------------
CREATE UNIQUE INDEX "uk_sub_imsi_ne"
ON "udm_sub" (
"imsi" ASC,
"ne_id" ASC
);
-- ----------------------------
-- Records of udm_sub
-- ----------------------------

View File

@@ -0,0 +1,25 @@
-- ----------------------------
-- Table structure for udm_voip
-- ----------------------------
DROP TABLE IF EXISTS "udm_voip";
CREATE TABLE "udm_voip" (
"id" integer NOT NULL,
"create_time" integer,
"ne_id" text(50),
"username" text(50),
"password" text(128),
PRIMARY KEY ("id")
);
-- ----------------------------
-- Indexes structure for table udm_voip
-- ----------------------------
CREATE UNIQUE INDEX "uk_voip_user_ne"
ON "udm_voip" (
"username" ASC,
"ne_id" ASC
);
-- ----------------------------
-- Records of udm_voip
-- ----------------------------

View File

@@ -0,0 +1,32 @@
-- ----------------------------
-- Table structure for udm_volte_ims
-- ----------------------------
DROP TABLE IF EXISTS "udm_volte_ims";
CREATE TABLE "udm_volte_ims" (
"id" integer NOT NULL,
"create_time" integer,
"ne_id" text(50),
"imsi" text(50) NOT NULL,
"msisdn" text(50),
"tag" text(50),
"vni" text(128),
PRIMARY KEY ("id")
);
-- ----------------------------
-- Indexes structure for table udm_volte_ims
-- ----------------------------
CREATE INDEX "idx_volte_tag"
ON "udm_volte_ims" (
"tag" ASC
);
CREATE UNIQUE INDEX "uk_volte_imsi_ne"
ON "udm_volte_ims" (
"imsi" ASC,
"msisdn" ASC,
"ne_id" ASC
);
-- ----------------------------
-- Records of udm_volte_ims
-- ----------------------------