Implement role based shifts for crew
This commit is contained in:
parent
f69ca520c0
commit
a9ba0c55e1
3 changed files with 221 additions and 21 deletions
22
shared/types/schedule.d.ts
vendored
22
shared/types/schedule.d.ts
vendored
|
@ -23,7 +23,29 @@ export interface TimeSlot {
|
|||
interested?: number,
|
||||
}
|
||||
|
||||
export interface Shift {
|
||||
name: string,
|
||||
id: string,
|
||||
role: string,
|
||||
description?: string,
|
||||
slots: ShiftSlot[],
|
||||
}
|
||||
|
||||
export interface Role {
|
||||
name: string,
|
||||
id: string,
|
||||
description?: string,
|
||||
}
|
||||
|
||||
export interface ShiftSlot {
|
||||
id: string,
|
||||
start: string,
|
||||
end: string,
|
||||
}
|
||||
|
||||
export interface Schedule {
|
||||
locations: ScheduleLocation[],
|
||||
events: ScheduleEvent[],
|
||||
roles?: Role[],
|
||||
rota?: Shift[],
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue