History

History

The object model that contains data that will be inserted into the history table to record data changes that occur in the tables in the system.

Constructor

new History()

Source:
Properties:
Name Type Attributes Description
id String

UUIDv4 which represents the history ID.

users_id String

UUIDv4 which represents the user's ID refering to Users.

endpoint String

endpoint that refers to the API route.

action String

HTTP method used by the client.

dataBefore Object <optional>

Snapshot of data before change.

dataAfter Object

Snapshot of data after change.

createdAt Date

Time when it happened.