mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-21 04:49:10 +02:00
[management] Add account ID index to activity events (#3946)
This commit is contained in:
@@ -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 is the ID of an object that was effected by the event (e.g., a peer)
|
||||||
TargetID string
|
TargetID string
|
||||||
// AccountID is the ID of an account where the event happened
|
// 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 of the event, e.g. deleted peer information like name, IP, etc
|
||||||
Meta map[string]any `gorm:"serializer:json"`
|
Meta map[string]any `gorm:"serializer:json"`
|
||||||
|
|||||||
Reference in New Issue
Block a user