> ## Documentation Index
> Fetch the complete documentation index at: https://www.ghostwriter.wiki/llms.txt
> Use this file to discover all available pages before exploring further.

# Oplog Models

The **Oplog**  application contains everything related to operational logging for projects.

## Sanitization Audit Models

`OplogSanitization` is an immutable audit record for a completed, user-requested activity-log sanitization. It belongs to an
`Oplog` and stores the database timestamp, the requesting user and display-name snapshot, and the selected fields. An activity log
can have many sanitization records through its `sanitizations` relationship.

`OplogEntry.updated_at` is maintained by PostgreSQL for inserts and material entry updates. It is indexed with the entry's activity
log foreign key so the application can efficiently compare the newest entry update with the newest sanitization without storing a
denormalized timestamp on `Oplog`. Tag-only changes do not affect this timestamp because tags are not entry content sanitized by this
feature.

<Frame>
  <img src="https://mintcdn.com/specterops-2/hxAceaiaqVHSIa3R/images/development/image-9.png?fit=max&auto=format&n=hxAceaiaqVHSIa3R&q=85&s=2fd0087ad449df02fc85c29d723c9517" alt="" width="395" height="596" data-path="images/development/image-9.png" />
</Frame>
