Live on iOS and Android
All posts
Compliance Feb 20, 2026 4 min read

Digital Audit Trail: Why It Is Critical for Compliance

The role of a full audit trail and data lineage traceability in GDPR compliance.

When a restaurant chain is audited, the first question is: "When, by whom, and for what reason was this record changed?" If you can't answer, even the most perfect financial statement doesn't count as compliant. The digital audit trail is what answers that question.

In Gastrolie, every data change — a sale entry, a staff hours correction, a recipe cost update — is appended as a new audit_log row. The old value isn't deleted; the new value doesn't overwrite. The timeline just grows.

Two core pillars

  • Who/What/When: user identity, mutation type, timestamp — on every row. The old and new value of the changed field are stored alongside.
  • Immutable append-only: log records are written append-only; the application layer provides no path to update or delete an existing record.

GoBD §146 mandates this model for financial records in Germany. GDPR requires erasing personal data — so how do you erase personal data while preserving the audit trail? The answer: the data itself is anonymised (e.g. "Jan Schmidt" → "user_8374"), while the trail remains intact. That's the only way to satisfy both laws together.

Digital Audit Trail: Why It Is Critical for Compliance | Gastrolie