Files
be.ems/build/database/lite/upgrade/upg_ne_license.sql
2025-05-20 11:29:13 +08:00

38 lines
1.0 KiB
SQL

-- ----------------------------
-- 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),
"capability" integer,
"serial_num" text(32),
"expiry_date" text(32),
"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 ADD COLUMN capability integer;
-- ----------------------------
-- Records of ne_license
-- ----------------------------
INSERT OR IGNORE INTO "ne_license" VALUES (1, 'OMC', '001', '', '', 0, '', '', '0', '', 'system', 1713928436971, '', 0);