query listStaff @auth(level: USER) {
  staffs {
    id
    userId
    fullName
    level
    role
    phone
    email
    photoUrl

    totalShifts
    averageRating
    onTimeRate
    noShowCount
    cancellationCount
    reliabilityScore
    xp
    badges
    isRecommended

    bio
    skills
    industries
    preferredLocations
    maxDistanceMiles
    languages
    itemsAttire

    ownerId
    createdAt
    department 
    hubId 
    manager 
    english 

    backgroundCheckStatus
    employmentType
    initial
    englishRequired
    city
    addres
  }
}

query getStaffById($id: UUID!) @auth(level: USER) {
  staff(id: $id) {
    id
    userId
    fullName
    role
    level
    phone
    email
    photoUrl

    totalShifts
    averageRating
    onTimeRate
    noShowCount
    cancellationCount
    reliabilityScore
    xp
    badges
    isRecommended

    bio
    skills
    industries
    preferredLocations
    maxDistanceMiles
    languages
    itemsAttire

    ownerId
    createdAt
    updatedAt
    createdBy
    department 
    hubId 
    manager 
    english 

    backgroundCheckStatus
    employmentType
    initial
    englishRequired
    city
    addres
  }
}

query getStaffByUserId($userId: String!) @auth(level: USER) {
  staffs(where: { userId: { eq: $userId } }) {
    id
    userId
    fullName
    level
    phone
    email
    photoUrl

    totalShifts
    averageRating
    onTimeRate
    noShowCount
    cancellationCount
    reliabilityScore
    xp
    badges
    isRecommended

    bio
    skills
    industries
    preferredLocations
    maxDistanceMiles
    languages
    itemsAttire

    ownerId
    createdAt
    updatedAt
    createdBy
    department 
    hubId 
    manager 
    english 

    backgroundCheckStatus
    employmentType
    initial
    englishRequired
    city
    addres
  }
}

query filterStaff(
  $ownerId: UUID
  $fullName: String
  $level: String
  $email: String
) @auth(level: USER) {
  staffs(
    where: {
      ownerId: { eq: $ownerId }
      fullName: { eq: $fullName }
      level: { eq: $level }
      email: { eq: $email }
    }
  ) {
    id
    userId
    fullName
    level
    phone
    email
    photoUrl
    averageRating
    reliabilityScore
    totalShifts
    ownerId
    isRecommended
    skills

    backgroundCheckStatus
    employmentType
    initial
    englishRequired
    city
    addres
  }
}
