Domain Model
Automation Rule Change
Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string.uuid | Yes | — | Id |
| ruleId | string | Yes | — | ID of the associated rule |
| changedByUserId | string | Yes | — | ID of the associated changed by user |
| changeType | enum(created, updated, enabled, disabled, deleted) | Yes | — | Change type |
| previousConfig | unknown | Yes | — | Previous config |
| newConfig | unknown | Yes | — | New config |
| reason | unknown | Yes | — | Reason |
| workspaceId | string | Yes | — | ID of the associated workspace |
| createdAt | string.date-time | Yes | — | Created at |
Create Schema
Fields accepted when creating a new record:
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| ruleId | string | Yes | — | ID of the associated rule |
| changedByUserId | string | Yes | — | ID of the associated changed by user |
| changeType | enum(created, updated, enabled, disabled, deleted) | Yes | — | Change type |
| previousConfig | object | No | — | Previous config |
| newConfig | object | No | — | New config |
| reason | string | No | — | Reason |
| workspaceId | string | Yes | — | ID of the associated workspace |