Awee

app:record:history

Retrieves the immutable audit log for a record, ordered oldest first

Retrieves the immutable audit log for a record, ordered oldest first

Options

NameTypeDescription
org_idstringThe organisation ID that scopes the operation
schemastringThe name of the schema (database) that contains the table
tablestringThe name of the table the record belongs to
idstringThe unique identifier of the record whose history to retrieve

Outputs

NameTypeDescription
itemsRecordVersionThe list of historical versions of the record, oldest first
  ↳ idstringIs the unique identifier of this version entry (not the record itself).
  ↳ record_idstringIs the id of the record this snapshot belongs to.
  ↳ versionintIs the monotonic version of the record after this write. Starts at 1 on first insert and increments on every subsequent update or delete.
  ↳ opRecordOpIdentifies which write operation produced this snapshot.
  ↳ dataRecordIs the full record state after the operation. Empty on OpDelete when the record could not be re-read.
  ↳ user_idstringIs the user id taken from the write context; empty when not set.
  ↳ created_atTimeIs the UTC timestamp when this version was recorded.

How is this guide?

On this page