Passport/pkg/internal/models/audit.go
LittleSheep 8c89d89382 Optimized audit, event logging system
 Audit logs
 Admin edit user permissions
2024-07-03 22:57:17 +08:00

14 lines
323 B
Go

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"`
}