Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Manufacturing Execution System 2023 R2

audit_trail

  • Last UpdatedNov 20, 2024
  • 1 minute read

Note: This table is currently not used.

The audit_trail table provides a generic audit trail of who inserted/edited/deleted important data, and when. Used to facilitate 21 CFR Part 11 compliance.

Field

Datatype

PK

Nulls?

Description

logged_at

datetime

N

N

When entry was logged

user_id

string40

N

N

User doing this insert, update or delete

change_type

int32

N

N

Enumeration of the type of the change this records:

0 = delete

1 = insert

2 = update

table_name

string40

N

N

Table being changed

row_id

int32

N

N

Link to row_id of the original table/row

column_name

string40

N

Y

Column name – only used for updates

old_value

string1700

N

Y

Old value for the given table and column converted to a string if necessary. Only used for updates. May be null for updates also.

new_value

string1700

N

Y

New value for the given table and column converted to a string if necessary. Only used for updates. May be null for updates also.

origin

string40

N

Y

To specify which MES application caused the audit trail entry (e.g., Operator, Supervisor etc). Null for external applications

comments

string254

N

Y

Optional comments field to detail reasons for the user’s action

delete_detail

nvarchar(max)

N

Y

XML string including deleted row’s last values for all fields.

log_id

ID 1

Y

N

Identify audit trail entry

Index on table_name, row_id.

TitleResults for “How to create a CRG?”Also Available in