feat: 基站状态补充randId字段信息

This commit is contained in:
TsMask
2025-10-23 14:13:54 +08:00
parent bbbbd626fb
commit bf9820a224
10 changed files with 93 additions and 42 deletions

View File

@@ -0,0 +1,36 @@
-- ----------------------------
-- Table structure for nb_state
-- ----------------------------
CREATE TABLE IF NOT EXISTS "nb_state" (
"id" integer NOT NULL,
"ne_type" text(32) NOT NULL,
"ne_id" text(32) NOT NULL,
"rm_uid" text(128),
"create_time" integer(20),
"address" text(255),
"name" text(64),
"position" text(64),
"nb_name" text(128),
"nb_id" integer,
"state" text(12),
"time" text(64),
PRIMARY KEY ("id")
);
-- ----------------------------
-- Indexes structure for table nb_state
-- ----------------------------
CREATE UNIQUE INDEX IF NOT EXISTS "uk_state_type_id_uid_at"
ON "nb_state" (
"ne_type" ASC,
"ne_id" ASC,
"rm_uid" ASC,
"create_time" ASC
);
-- ADD COLUMN
ALTER TABLE "nb_state" ADD COLUMN "nb_id" integer;
-- ----------------------------
-- Records of nb_state
-- ----------------------------