feat: Integrate Data Connect and Implement Staff List View Directory
This commit is contained in:
47
apps/web/dataconnect/schema/shift.gql
Normal file
47
apps/web/dataconnect/schema/shift.gql
Normal file
@@ -0,0 +1,47 @@
|
||||
enum ShiftStatus {
|
||||
DRAFT
|
||||
FILLED
|
||||
PENDING
|
||||
ASSIGNED
|
||||
CONFIRMED
|
||||
OPEN
|
||||
IN_PROGRESS
|
||||
COMPLETED
|
||||
CANCELED
|
||||
}
|
||||
|
||||
type Shift @table(name: "shifts") {
|
||||
id: UUID! @default(expr: "uuidV4()")
|
||||
|
||||
title: String!
|
||||
|
||||
orderId: UUID!
|
||||
order: Order! @ref(fields: "orderId", references: "id")
|
||||
|
||||
date: Timestamp
|
||||
startTime: Timestamp
|
||||
endTime: Timestamp
|
||||
hours: Float
|
||||
cost: Float
|
||||
|
||||
location: String
|
||||
locationAddress: String
|
||||
latitude: Float
|
||||
longitude: Float
|
||||
description: String
|
||||
|
||||
status: ShiftStatus
|
||||
workersNeeded: Int
|
||||
filled: Int
|
||||
filledAt: Timestamp
|
||||
|
||||
# JSON list of managers (e.g. [{name, phone, avatar}, ...])
|
||||
managers: [Any!]
|
||||
|
||||
durationDays: Int
|
||||
|
||||
createdAt: Timestamp @default(expr: "request.time")
|
||||
updatedAt: Timestamp @default(expr: "request.time")
|
||||
createdBy: String
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user