Changes are a part of four eyes check feature which is used for when an entity needs to be created, updated or deleted but the operation needs to be approved by another individual.
| Attribute | Description | Format |
|---|---|---|
| id | Unique identifier for the change. | UUID e.g., 5def2f43-2c81-4230-85b2-c8a62f7460c9 |
| userId | Identifier of the user who made the change. | UUID e.g., 5def2f43-2c81-4230-85b2-c8a62f7460c9 |
| tableName | Name of the table where the change occurred. | String e.g., ledger.account |
| entityId | Identifier of the entity that was changed. | UUID e.g., 5def2f43-2c81-4230-85b2-c8a62f7460c9 |
| type | Type of the change. | CREATE, UPDATE, DELETE |
| createdDate | Date and time when the change was created. | ISO 8601 Timestamp e.g., 2024-01-01T00:00:00.000000Z |
| reviewedDate | Date and time when the change was reviewed. | ISO 8601 Timestamp e.g., 2024-01-01T00:00:00.000000Z |
| fieldChanges | List of field changes made in the entity. | Array of field changes objects, containing attributes fieldName, newValue, oldValue, status, |
| reviewerId | User ID of the reviewer who reviewed the change. | UUID e.g., 5def2f43-2c81-4230-85b2-c8a62f7460c9 |
| comment | Comment provided during the review. | String |
| status | Current status of the change. | PENDING, APPROVED, PARTIALLY_APPROVED, REJECTED |
| state | Current state of the change. | INITIATED, PROCESSING, FAILED, APPLIED |
| stateResult | Result or outcome of the change state. | String |