MemberPulse
EntitiesSystem

Audit Log

System audit trail entity

System audit trail entity

Records all significant actions for security and compliance.

Fields

Core Fields

FieldTypeRequiredDescription
idUUIDAutoPrimary key
actionenumYescreate, update, delete, login, impersonate
resourceTypestringYesEntity type affected
resourceIdUUIDNoEntity ID affected

Actor Fields

FieldTypeRequiredDescription
actorIdUUIDYesUser who performed action
impersonatorIdUUIDNoAdmin ID if impersonating
ipAddressstringNoClient IP address
userAgentstringNoBrowser/client info

Change Tracking

FieldTypeRequiredDescription
changesjsonNoDiff of changes

Changes structure:

{
  "fieldName": {
    "oldValue": "previous",
    "newValue": "current"
  }
}

System Fields

FieldTypeRequiredDescription
createdAtdatetimeAutoAction timestamp

Logged Actions

ActionWhen Logged
createNew entity created
updateEntity modified
deleteEntity deleted
loginUser login (success/failure)
impersonateAdmin impersonating member
exportData exported
password_changePassword updated
mfa_changeMFA enabled/disabled

Retention

  • Logs retained for 2 years
  • Immutable (cannot be modified or deleted)
  • Used for compliance and security audits

Features

Audit Log

Acceptance Criteria

Frontend
  • Admin/client UI can view and manage Audit Log records where applicable.
Backend / API
  • CRUD operations exist for Audit Log (create, read, update, delete/archive).
Permissions
  • Access is restricted to appropriate roles (tenant-scoped).
Business Rules
  • Fields and relationships documented on this page are enforced for Audit Log.
Error Handling
  • Invalid payloads return field-level validation errors.

On this page