mutation createBusiness(
  $businessName: String!,
  $contactName: String,
  $userId: String!,
  $companyLogoUrl: String,
  $phone: String,
  $email: String,
  $hubBuilding: String,
  $address: String,
  $city: String,
  $area: BusinessArea,
  $sector: BusinessSector,
  $rateGroup: BusinessRateGroup!,
  $status: BusinessStatus!,
  $notes: String
) @auth(level: USER) {
  business_insert(
    data: {
      businessName: $businessName,
      contactName: $contactName,
      userId: $userId,
      companyLogoUrl: $companyLogoUrl,
      phone: $phone,
      email: $email,
      hubBuilding: $hubBuilding,
      address: $address,
      city: $city,
      area: $area,
      sector: $sector,
      rateGroup: $rateGroup,
      status: $status,
      notes: $notes
    }
  ) 
}

mutation updateBusiness(
  $id: UUID!,
  $businessName: String,
  $contactName: String,
  $companyLogoUrl: String,
  $phone: String,
  $email: String,
  $hubBuilding: String,
  $address: String,
  $city: String,
  $area: BusinessArea,
  $sector: BusinessSector,
  $rateGroup: BusinessRateGroup,
  $status: BusinessStatus,
  $notes: String
) @auth(level: USER) {
  business_update(
    id: $id,
    data: {
      businessName: $businessName,
      contactName: $contactName,
      companyLogoUrl: $companyLogoUrl,
      phone: $phone,
      email: $email,
      hubBuilding: $hubBuilding,
      address: $address,
      city: $city,
      area: $area,
      sector: $sector,
      rateGroup: $rateGroup,
      status: $status,
      notes: $notes
    }
  ) 
}

mutation deleteBusiness($id: UUID!) @auth(level: USER) {
  business_delete(id: $id) 
}