It's going to depend on the personality of the dog, some will bond with kids and become protective of them - as well as put up with the kids pulling on their ears, their face, etc... Others might inadvertently hurt the kid if they get feisty and hyper. Also, you mentioned you will be living in an apartment in the city. You may want to check with the landlord if dogs are even allowed. They will typically want an extra deposit if so. Also, you will need to be considerate of the noise concerns regarding your neighbors. Constant barking or running around the place can disturb those living next to and below you. Also, are there nearby places you can walk the dog on a regular basis?