sql: 更新数据库脚本数据

This commit is contained in:
TsMask
2025-08-22 18:49:02 +08:00
parent 34f8456721
commit 18157cc9db
10 changed files with 46 additions and 25 deletions

View File

@@ -18,7 +18,7 @@ CREATE TABLE IF NOT EXISTS `kpi_report` (
`created_at` bigint(20) NULL DEFAULT NULL,
`tenant_id` varchar(32) NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `idx_timestamp`(`created_at`) USING BTREE,
INDEX `idx_timestamp`(`rm_uid` DESC, `created_at` DESC) USING BTREE,
INDEX `idx_uid_datetime`(`rm_uid`, `date`, `start_time`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;