Domain Model
Shift Template
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 |
| name | string | Yes | — | Name |
| startTime | string | Yes | — | Start time |
| endTime | string | Yes | — | End time |
| workingDays | boolean[] | Yes | — | Working days |
| isDefault | boolean | Yes | — | Is default |
| color | unknown | No | — | Color |
Create Schema
Fields accepted when creating a new record:
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| workspaceId | string.uuid | No | — | ID of the associated workspace |
| name | string | Yes | — | Name |
| startTime | string | Yes | — | Start time |
| endTime | string | Yes | — | End time |
| workingDays | boolean[] | Yes | — | Working days |
| isDefault | boolean | No | — | Is default |
| color | string | No | — | Color |
Update Schema
All fields are optional when updating:
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| name | string | No | — | Name |
| startTime | string | No | — | Start time |
| endTime | string | No | — | End time |
| workingDays | boolean[] | No | — | Working days |
| isDefault | boolean | No | — | Is default |
| color | string | No | — | Color |