Skip to content
GitHubLinkedIn

Table history (auditing)

Auditing is a differentiator for data-heavy systems: it reduces “who changed what?” ambiguity and makes production support faster.

This page shows how to:

  • Add standard audit fields (created/changed by + timestamp)
  • Enable SQL Server system-versioned history and surface it in the GUI
  • Access to Thinkstore in Software Factory (SF).
  • SQL Server supports system-versioned (temporal) tables for your environment.
  • You can install and activate base models in the project branch.

Trace fields are provided as a base model in the Thinkstore.

  1. Open the Thinkstore: SF → menu → enrichments → Thinkstore
  2. Search for “trace fields”
  3. Download and install the model
  4. Choose a name/version (this is what you’ll see in Base Models)
  1. Model Overview → Branches → Base models
  2. Find the model you installed (e.g. “Trace fields”)
  3. Mark it as active
  4. Generate definition
  5. Create the complete model

You should now have four read-only fields in each table that are filled automatically.

Logging changes in the GUI (system versioning)

Section titled “Logging changes in the GUI (system versioning)”

SQL Server system-versioning can track row history automatically. With trace fields in place, you can also see who changed what and when.

  1. Open the Thinkstore: SF → menu → enrichments → Thinkstore
  2. Search for “Logging data available in the GUI”
  3. Download and install the model
  4. Choose a name/version (this is what you’ll see in Base Models)
  1. Model Overview → Branches → Base models
  2. Find the model you installed
  3. Mark it as active
  4. Generate definition
  5. In your Data Model, add details from the main table to the view [table_name]_history_overview
  6. Create the complete model

You should now have a GUI tab that shows history and highlights changed fields.

  • Open a record in the GUI and confirm audit fields exist and are read-only.
  • Change a field, save, and confirm the history tab shows the previous values.