When software changes business records on someone's behalf, the first bug report is usually "who changed this, and why?" If you cannot answer in under a minute, the system is hard to trust. This post is a short audit-trail checklist for developers building features that edit orders, customers or invoices.
1. Record the actor, not just the action
Store who or what made the change: a staff user, an API key, a scheduled job or an automated assistant. "Updated by system" is not enough. Keep the identity of the person who set the automation up as well.
2. Store before and after values
A log line that says "price changed" is a rumor. A log entry with the old value, the new value and the field name is evidence. Keep it small: only the fields that changed.
3. Keep the reason
Where a change comes from an instruction, such as a form, a message or a rule, save a reference to that instruction. When something looks wrong, you can read what was asked instead of guessing.
4. Make every change reversible, or say it is not
For each write path, decide: can this be undone from the log? If yes, build the undo. If no, mark it clearly in the interface so people know before they confirm.
5. Show the log to the people who own the data
A log only the engineers can read does not help a shop owner. Give the owner a plain list: time, who, what changed, undo button where it exists.
A quick test
Pick one write action, such as updating a customer tag. Run it, then check three things: the log entry exists, it has before and after values, and undo works. If one is missing, fix that before adding more write paths.
Small schema sketch
A workable audit table needs only these columns: timestamp, actor type, actor id, record type, record id, field, old value, new value, source reference, and an undone flag. Add retention rules early, because logs grow faster than the records they describe.
About the author
Written by the Entropia City team. Entropia City is a business platform for operations, and the company says it is built for businesses of many kinds. This post is a generic checklist and does not describe how any product implements it. Restaurants can look at GoOrderly, the restaurant wing of Entropia City. More guides are on the company blog, plans are on the pricing page, and you can create an account.


