🚚 Auth kit and parser of nexus userinfo token
This commit is contained in:
13
pkg/authkit/models/audit.go
Normal file
13
pkg/authkit/models/audit.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package models
|
||||
|
||||
import "gorm.io/datatypes"
|
||||
|
||||
type AuditRecord struct {
|
||||
BaseModel
|
||||
|
||||
Action string `json:"action"`
|
||||
Metadata datatypes.JSONMap `json:"metadata"`
|
||||
UserAgent string `json:"user_agent"`
|
||||
IpAddress string `json:"ip_address"`
|
||||
AccountID uint `json:"account_id"`
|
||||
}
|
Reference in New Issue
Block a user