Schema for audit log entries.
Tracks administrative actions performed in PhoenixKit, providing a complete audit trail of sensitive operations.
Fields
target_user_uuid- The UUID of the user affected by the actionadmin_user_uuid- The UUID of the admin who performed the actionaction- The type of action performed (e.g., "admin_password_reset")ip_address- The IP address from which the action was performeduser_agent- The user agent string of the clientmetadata- Additional metadata about the action (JSONB)inserted_at- Timestamp when the log entry was created
Summary
Types
Functions
Creates a changeset for audit log entry.
Required Fields
:target_user_uuid- UUID of the affected user:admin_user_uuid- UUID of the admin performing the action:action- Type of action performed
Optional Fields
:ip_address- IP address of the admin:user_agent- User agent string:metadata- Additional metadata (JSONB)
Returns the list of valid action types.