初步实现审计

This commit is contained in:
2025-09-28 00:13:47 +08:00
parent b177781fa1
commit 1c7e13b965
9 changed files with 324 additions and 27 deletions

View File

@@ -159,6 +159,7 @@ func (ps *PostgresStorage) creatingHyperTable() error {
{models.PlanExecutionLog{}, "started_at"},
{models.TaskExecutionLog{}, "started_at"},
{models.PendingCollection{}, "created_at"},
{models.UserActionLog{}, "time"},
}
for _, table := range tablesToConvert {
@@ -187,6 +188,7 @@ func (ps *PostgresStorage) applyCompressionPolicies() error {
{models.PlanExecutionLog{}, "plan_id"},
{models.TaskExecutionLog{}, "task_id"},
{models.PendingCollection{}, "device_id"},
{models.UserActionLog{}, "user_id"},
}
for _, policy := range policies {