What is the ecological niche for a deer?

The ecological niche for a deer is that it lives in a forest its a herbivore middle of the food chain and a prey to large carnivores