feat: Integrate Data Connect and Implement Staff List View Directory
This commit is contained in:
42
apps/web/dataconnect/schema/application.gql
Normal file
42
apps/web/dataconnect/schema/application.gql
Normal file
@@ -0,0 +1,42 @@
|
||||
enum ApplicationStatus {
|
||||
PENDING
|
||||
ACCEPTED
|
||||
REJECTED
|
||||
CONFIRMED
|
||||
CHECKED_IN
|
||||
CHECKED_OUT
|
||||
LATE
|
||||
NO_SHOW
|
||||
}
|
||||
|
||||
enum ApplicationOrigin {
|
||||
STAFF
|
||||
EMPLOYER #like vendor
|
||||
}
|
||||
|
||||
#position
|
||||
type Application @table(name: "applications") {
|
||||
id: UUID! @default(expr: "uuidV4()")
|
||||
|
||||
shiftId: UUID!
|
||||
shift: Shift! @ref(fields: "shiftId", references: "id")
|
||||
|
||||
staffId: UUID!
|
||||
staff: Staff! @ref(fields: "staffId", references: "id")
|
||||
|
||||
roleId: UUID!
|
||||
shiftRole: ShiftRole! @ref(
|
||||
fields: ["shiftId", "roleId"],
|
||||
references: ["shiftId", "roleId"]
|
||||
)
|
||||
|
||||
status: ApplicationStatus!
|
||||
appliedAt: Timestamp @default(expr: "request.time")
|
||||
checkInTime: Timestamp
|
||||
checkOutTime: Timestamp
|
||||
origin: ApplicationOrigin!
|
||||
|
||||
createdAt: Timestamp @default(expr: "request.time")
|
||||
updatedAt: Timestamp @default(expr: "request.time")
|
||||
createdBy: String
|
||||
}
|
||||
Reference in New Issue
Block a user