query listBusinesses @auth(level: USER) {
  businesses {
    id
    businessName
    contactName
    userId
    companyLogoUrl
    phone
    email
    hubBuilding
    address
    placeId
    latitude
    longitude
    city
    state
    street
    country
    zipCode
    area
    sector
    rateGroup
    status
    notes
    createdAt
    updatedAt
  }
}

query getBusinessesByUserId($userId: String!) @auth(level: USER) {
  businesses(where: { userId: { eq: $userId } }) {
    id
    businessName
    contactName
    userId
    companyLogoUrl
    phone
    email
    hubBuilding
    address
    placeId
    latitude
    longitude
    city
    state
    street
    country
    zipCode
    area
    sector
    rateGroup
    status
    notes
    createdAt
    updatedAt
  }
}

query getBusinessById($id: UUID!) @auth(level: USER) {
  business(id: $id) {
    id
    businessName
    contactName
    userId
    companyLogoUrl
    phone
    email
    hubBuilding
    address
    placeId
    latitude
    longitude
    city
    state
    street
    country
    zipCode
    area
    sector
    rateGroup
    status
    notes
    createdAt
    updatedAt
  }
}
