we have fixtures ladies and gentleman
This commit is contained in:
@@ -20,10 +20,10 @@ func NewAudit(r *http.Request, u *User) *AuditMeta {
|
||||
|
||||
// AuditInfo contains metadata for audit logging
|
||||
type AuditInfo struct {
|
||||
Action string // e.g., "seasons.create", "users.update"
|
||||
ResourceType string // e.g., "season", "user"
|
||||
ResourceID any // Primary key value (int, string, etc.)
|
||||
Details map[string]any // Changed fields or additional metadata
|
||||
Action string // e.g., "seasons.create", "users.update"
|
||||
ResourceType string // e.g., "season", "user"
|
||||
ResourceID any // Primary key value (int, string, etc.)
|
||||
Details any // Changed fields or additional metadata
|
||||
}
|
||||
|
||||
// extractTableName gets the bun table name from a model type using reflection
|
||||
|
||||
Reference in New Issue
Block a user