Domain Model
Sync State
Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string.uuid | Yes | — | Id |
| createdAt | string.date-time | Yes | — | Created at |
| updatedAt | string.date-time | Yes | — | Updated at |
| workspaceId | string.uuid | Yes | — | ID of the associated workspace |
| externalConnectionId | string.uuid | Yes | — | ID of the associated external connection |
| localRecordType | string | Yes | — | Local record type |
| localRecordId | string.uuid | Yes | — | ID of the associated local record |
| externalRecordType | string | Yes | — | External record type |
| externalRecordId | string | Yes | — | ID of the associated external record |
| syncDirection | enum(bidirectional, push, pull, ignore) | Yes | — | Sync direction |
| fieldSnapshotJson | object | Yes | — | Field snapshot json |
| lastSyncedAt | unknown | Yes | — | Last synced at |
| lastSyncOrigin | enum(local, external) | Yes | — | Last sync origin |
| syncStatus | enum(synced, pending, error, conflict) | Yes | — | Sync status |
| errorMessage | unknown | Yes | — | Error message |
Create Schema
Fields accepted when creating a new record:
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| workspaceId | string.uuid | Yes | — | ID of the associated workspace |
| externalConnectionId | string.uuid | Yes | — | ID of the associated external connection |
| localRecordType | string | Yes | — | Local record type |
| localRecordId | string.uuid | Yes | — | ID of the associated local record |
| externalRecordType | string | Yes | — | External record type |
| externalRecordId | string | Yes | — | ID of the associated external record |
| syncDirection | enum(bidirectional, push, pull, ignore) | Yes | "bidirectional" | Sync direction |