--
-- Table structure for table `ne_config_backup`
--
CREATE TABLE IF NOT EXISTS `ne_config_backup` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `ne_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '网元类型',
  `ne_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '网元ID',
  `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '-' COMMENT '压缩包名称',
  `path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '压缩包位置',
  `remark` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '备注',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '创建者',
  `create_time` bigint DEFAULT '0' COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '更新者',
  `update_time` bigint DEFAULT '0' COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `idx_cb_type_id` (`ne_type`,`ne_id`) USING BTREE COMMENT '网元类型_网元ID'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='网元_配置文件备份记录';

-- ----------------------------
-- COLUMN for ne_config_backup
-- ----------------------------
ALTER TABLE `ne_config_backup` DROP INDEX `idx_ne_type_id`;
ALTER TABLE `ne_config_backup` MODIFY COLUMN `id` bigint(20) NOT NULL FIRST;
ALTER TABLE `ne_config_backup` ADD INDEX `idx_cb_type_id`(`ne_type`, `ne_id`) USING BTREE COMMENT '网元类型_网元ID';
ALTER TABLE `ne_config_backup` MODIFY COLUMN `id` bigint(20) NOT NULL AUTO_INCREMENT;

-- Dump completed on 2025-02-14 15:26:56
