Domain Model
Shift Assignment
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 |
| userId | string.uuid | Yes | — | ID of the associated user |
| shiftTemplateId | string.uuid | Yes | — | ID of the associated shift template |
| effectiveFrom | string | Yes | — | Effective from |
| effectiveTo | unknown | No | — | Effective to |
| overridePriority | number | Yes | — | Override priority |
Create Schema
Fields accepted when creating a new record:
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| workspaceId | string.uuid | No | — | ID of the associated workspace |
| userId | string.uuid | Yes | — | ID of the associated user |
| shiftTemplateId | string.uuid | Yes | — | ID of the associated shift template |
| effectiveFrom | string | Yes | — | Effective from |
| effectiveTo | unknown | No | — | Effective to |
| overridePriority | integer | No | — | Override priority |
Update Schema
All fields are optional when updating:
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| effectiveFrom | string | No | — | Effective from |
| effectiveTo | unknown | No | — | Effective to |
| overridePriority | integer | No | — | Override priority |