⚡ Optimized audit, event logging system
✨ Audit logs ✨ Admin edit user permissions
This commit is contained in:
13
pkg/internal/models/audit.go
Normal file
13
pkg/internal/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