feat: setup logs retention by max file size

This commit is contained in:
fsylvain committed 2026-10-07 22:02:13 +02:00
1 parent 70c8492f4f
commit f914eae3c5
44 files changed
+2316 -161

No files matched your search

@@ -5,6 +5,7 @@ import "time"
type AuditSettings struct {
ID uint32 `gorm:"primaryKey"`
RetentionDays int `gorm:"not null"`
RetentionMaxGB int `gorm:"not null;default:0"`
LastCleanupAt *time.Time
LastCleanupRemoved int `gorm:"not null"`
}