sql: 更新表索引命名

This commit is contained in:
TsMask
2025-02-20 21:11:54 +08:00
parent 333b9fb053
commit 0bfd3e2b85
10 changed files with 24 additions and 12 deletions

View File

@@ -18,7 +18,7 @@ CREATE TABLE `kpi_c_report` (
`kpi_values` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin COMMENT 'KPI values JSON String',
`created_at` bigint DEFAULT '0' COMMENT 'Creation time 接收到的timestamp秒级存储毫秒时间戳',
PRIMARY KEY (`id`) USING BTREE,
KEY `idx_uid_at` (`rm_uid`,`created_at`) USING BTREE
KEY `idx_c_uid_at` (`rm_uid`,`created_at`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='KPI_自定义指标数据记录基础表结构';
SET FOREIGN_KEY_CHECKS = 1;