Audit Logging Blueprint

Immutable tamper-evident event log structure — every state change recorded with full before/after context

AuditEvent Schema
FieldTypeRequiredDescription
iduuidUnique audit event identifier
actor_idstringUser ID who performed the action
actor_namestringDisplay name of the actor at time of action
actionenumcreate | update | delete | import | export | approve | reject | login | logout | rollback | bulk_update | stock_movement | settings_change
entity_typestringEntity class affected (Product, Order, ImportBatch, etc.)
entity_idstringoptionalID of the specific entity instance affected
before_jsonstring (JSON)optionalSerialized state before the change — null for creates
after_jsonstring (JSON)optionalSerialized state after the change — null for deletes
ip_addressstringoptionalIP address of the request origin
user_agentstringoptionalBrowser/client user agent string
statusenumsuccess | failed | partial
notesstringoptionalOptional human-readable context or reason code
created_datedatetime (auto)Immutable creation timestamp — set by platform
Example Audit Events— click to expand before/after state
Immutability Guarantee

AuditEvent records are write-once. No update or delete operations are permitted on this entity. The Base44 entity layer enforces this via role-restricted operations — only create is permitted for any role. Rollback operations create new corrective AuditEvent records rather than modifying existing ones.