# What are arithmetic curves?

Suppose we are given a curve $$C$$ such that the natural morphism $$C\to \mathrm{Spec}\:\mathbb Z$$ is integral (resp. flat or surjective). Is it true that in all three cases $$C$$ is affine? Are there examples of unreduced curves with (one of) these properties?