
mutation createStaffAvailability(
  $staffId: UUID!
  $day: DayOfWeek!
  $slot: AvailabilitySlot!
  $status: AvailabilityStatus
  $notes: String
) @auth(level: USER) {
  staffAvailability_insert(
    data: {
      staffId: $staffId
      day: $day
      slot: $slot
      status: $status
      notes: $notes
    }
  )
}

mutation updateStaffAvailability(
  $staffId: UUID!
  $day: DayOfWeek!
  $slot: AvailabilitySlot!
  $status: AvailabilityStatus
  $notes: String
) @auth(level: USER) {
  staffAvailability_update(
    key: { staffId: $staffId, day: $day, slot: $slot }
    data: {
      status: $status
      notes: $notes
    }
  )
}

mutation deleteStaffAvailability(
  $staffId: UUID!
  $day: DayOfWeek!
  $slot: AvailabilitySlot!
) @auth(level: USER) {
  staffAvailability_delete(
    key: { staffId: $staffId, day: $day, slot: $slot }
  )
}
