Appearance
ShiftDefinitionState
Type: Object
A reusable shift template — a start/end clock time and the weekdays it recurs on. Tenant-scoped; work centers reference it via their shift profiles rather than restating times.
Fields
| Name | Type | Args | Description | Deprecated |
|---|---|---|---|---|
| activeDays | [Int!]! | ISO-8601 weekdays the shift runs on (1 = Monday … 7 = Sunday). At least one day is required; each day refers to the day the shift starts on. | ||
| createdAt | ISO8601! | ISO-8601 timestamp of when this shift definition was first persisted. | ||
| endTime | String! | Local clock time the shift ends, as 24-hour "HH:mm" (e.g. "06:00"). May be earlier than startTime, which means the shift runs past midnight. | ||
| id | ShiftDefinitionID! | TypeID of this shift definition (prefix "shd", e.g. "shd_01K…"). | ||
| isOvernight | Boolean! | Derived: true when endTime is earlier than startTime, i.e. the shift spans midnight. | ||
| name | String! | Human-readable label for the shift (e.g. "Early", "Night"). Must not be blank. | ||
| startTime | String! | Local clock time the shift starts, as 24-hour "HH:mm" (e.g. "22:00"). Wall-clock only — it carries no date and no time zone. | ||
| updatedAt | ISO8601! | ISO-8601 timestamp of the last successful write to this shift definition; equal to createdAt until it is first updated. |