[management] Add account ID index to activity events (#3946)

This commit is contained in:
Bethuel Mmbaga
2025-06-09 14:34:53 +03:00
committed by GitHub
parent 3c535cdd2b
commit de27d6df36

View File

@ -31,7 +31,7 @@ type Event struct {
// TargetID is the ID of an object that was effected by the event (e.g., a peer)
TargetID string
// AccountID is the ID of an account where the event happened
AccountID string
AccountID string `gorm:"index"`
// Meta of the event, e.g. deleted peer information like name, IP, etc
Meta map[string]any `gorm:"serializer:json"`