-- ----------------------------
-- Table structure for ne_license
-- ----------------------------
CREATE TABLE IF NOT EXISTS "ne_license" (
  "id" integer NOT NULL,
  "ne_type" text(32) NOT NULL,
  "ne_id" text(32) NOT NULL,
  "activation_request_code" text(255) NOT NULL,
  "license_path" text(255),
  "serial_num" text(32),
  "expiry_date" text(32),
  "ue_number" integer,
  "nb_number" integer,
  "status" text(32),
  "remark" text(255),
  "create_by" text(50),
  "create_time" integer,
  "update_by" text(50),
  "update_time" integer,
  PRIMARY KEY ("id")
);

-- ----------------------------
-- Indexes structure for table ne_license
-- ----------------------------
CREATE UNIQUE INDEX IF NOT EXISTS "uk_lic_type_id"
ON "ne_license" (
  "ne_type" ASC,
  "ne_id" ASC
);

-- ADD COLUMN
ALTER TABLE ne_license DROP COLUMN capability;
ALTER TABLE ne_license ADD COLUMN ue_number integer;
ALTER TABLE ne_license ADD COLUMN nb_number integer;

-- ----------------------------
-- Records of ne_license
-- ----------------------------
INSERT OR IGNORE INTO "ne_license" VALUES (1, 'OMC', '001', '', '', '', '', 0, 0, '0', '', 'system', 1713928436971, '', 0);
