[be] audit logs #66
Labels
documentation
Improvements or additions to documentation
enhancement
New feature or request
question
Further information is requested
Audit Logs
Audit logging is a practice where every user action (such as delete, restore, or modify) is recorded in a separate audit log collection or table. This is useful for:
Debugging: Identify why certain data was deleted or restored.
Accountability: Determine which user performed an action and when.
Regulatory Compliance: Some laws (e.g., HIPAA for healthcare) require records of data changes.
Example Audit Log Schema:
Audit Example in Practice:
When a course is soft-deleted, an audit log entry is created:
(Explore this knowledge by chance when playing with ChatGpt 😃 )
The text was updated successfully, but these errors were encountered: