We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8949391 commit eb8830dCopy full SHA for eb8830d
1 file changed
server/models/auditLog.go
@@ -10,8 +10,8 @@ import (
10
type AuditLog struct {
11
ID int64 `gorm:"primaryKey;autoIncrement" json:"id"`
12
UserID *int64 `gorm:"index" json:"user_id"`
13
- Username *string `gorm:"-" json:"username"`
14
- Email *string `gorm:"-" json:"email"`
+ Username *string `json:"username"`
+ Email *string `json:"email"`
15
Action string `gorm:"not null" json:"action"`
16
ResourceType string `gorm:"not null" json:"resourceType"`
17
ResourceID *int64 `json:"resourceId"`
0 commit comments