18 lines
557 B
GraphQL
18 lines
557 B
GraphQL
type StaffAvailabilityStats @table(name: "staff_availability_stats", key: ["staffId"]) {
|
|
id: UUID! @default(expr: "uuidV4()")
|
|
|
|
staffId: UUID!
|
|
staff: Staff! @ref(fields: "staffId", references: "id")
|
|
|
|
needWorkIndex: Int
|
|
utilizationPercentage: Int
|
|
predictedAvailabilityScore: Int
|
|
scheduledHoursThisPeriod: Int
|
|
desiredHoursThisPeriod: Int
|
|
lastShiftDate: Timestamp
|
|
acceptanceRate: Int
|
|
|
|
createdAt: Timestamp @default(expr: "request.time")
|
|
updatedAt: Timestamp @default(expr: "request.time")
|
|
createdBy: String @default(expr: "auth.uid")
|
|
} |