sanitizations relationship to retrieve its audit history. Each result
includes when the log was sanitized, who requested it, and the selected fields. The updatedAt value on an entry
changes when its content changes, so an automation can determine whether the latest sanitization remains current by
comparing the newest entry update with the newest sanitization:
- A log is currently sanitized when it has a sanitization record and its newest entry
updatedAtis earlier than or equal to that record’ssanitizedAt. - A log needs review when it has no sanitization record, or its newest entry
updatedAtis later thansanitizedAt.