fn _add_to_audit_log(
    tx: &mut Transaction<'_>,
    event_type: EventType,
    object_type: ObjectType,
    details: EventDetails,
    occurred_at: EpochMillis
) -> Result<(), Error>