OptionaltableName of the conceptual audit table (used as label in entries). Default: 'audit_log'.
OptionaltrackIf provided, only these fields are captured in newValues/oldValues.
OptionaluserField name on the model that holds the current user identifier.
@Auditclass decorator — automatically record model lifecycle events to an in-memory audit log.When applied to a model class the decorator registers beforeCreate, beforeUpdate, and beforeDestroy hooks (via ModelClass.addHook) that append structured entries to a per-class log.
Example: