update staff entity schema and crud

This commit is contained in:
José Salazar
2025-11-27 09:32:52 -05:00
parent f76e93df22
commit 9b811a7bfd
3 changed files with 172 additions and 12 deletions

View File

@@ -3,12 +3,75 @@ query listStaff @auth(level: USER) {
id
employeeName
vendorId
vendorName
manager
contactNumber
email
department
hubLocation
track
position
profileType
employmentType
english
rating
reliabilityScore
backgroundCheckStatus
}
}
query getStaffById(
$id: UUID!
) @auth(level: USER) {
staff(id: $id) {
id
employeeName
vendorId
vendorName
manager
contactNumber
email
department
hubLocation
track
position
profileType
employmentType
english
rating
reliabilityScore
backgroundCheckStatus
}
}
query filterStaff(
$employeeName: String,
$vendorId: UUID,
$department: StaffDepartment,
$employmentType: EmploymentType,
$english: EnglishLevel,
$backgroundCheckStatus: BackgroundCheckStatus
) @auth(level: USER) {
staffs(
where: {
employeeName: { eq: $employeeName }
vendorId: { eq: $vendorId }
department: { eq: $department }
employmentType: { eq: $employmentType }
english: { eq: $english }
backgroundCheckStatus: { eq: $backgroundCheckStatus }
}
) {
id
employeeName
vendorId
vendorName
department
position
employmentType
english
rating
reliabilityScore
backgroundCheckStatus
certifications
}
}