sql: 自定义指标表缺少tenant_id

This commit is contained in:
TsMask
2025-01-07 09:47:39 +08:00
parent 6dceff6392
commit 039aa35b8e
5 changed files with 5 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ CREATE TABLE IF NOT EXISTS `kpi_report` (
`granularity` tinyint(4) NULL DEFAULT 60 COMMENT 'Time granualarity: 5/10/.../60/300 (second)',
`kpi_values` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL,
`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_uid_datetime`(`rm_uid`, `date`, `start_time`) USING BTREE