When doing real analysis, one way that we can ground ourselves is by constructing the real numbers (e.g. as Dedekind cuts), and then proving the basic properties of $\mathbb{R}$ from this construction. However, we can also start with the axioms of a complete ordered field, and it turns out these completely characterize $\mathbb{R}$. Even though we still need to construct $\mathbb{R}$ in order to show that a complete ordered field exists, we don't actually need to reason directly from this construction at any point while working with $\mathbb{R}$. We can disregard the construction as soon as we are done with it, working only from the complete ordered field axioms instead.
Similarly, although in set theory we need to construct $\mathbb{N}$, we can work with $\mathbb{N}$ directly assuming nothing but the Peano axioms. This is much nicer than working with a specific construction.
However, when it comes to $\mathbb{Z}$ and $\mathbb{Q}$, I have never seen them presented in this axiomatic way. If I want to prove basic facts about $\mathbb{Z}$ or $\mathbb{Q}$, I would have to do so directly from the usual constructions. This isn't very aesthetically pleasing to me.
I'm sure there are various ways to characterize $\mathbb{Z}$ and $\mathbb{Q}$ "axiomatically" (I don't mean first-order axioms here; neither the axioms of a complete ordered field nor the Peano axioms are first-order). My question is, is there a particular way of defining these structures that is particularly convenient, or particularly conducive to proving basic arithmetic facts? If you were asked to rigorously build up the theory of $\mathbb{Z}$ or $\mathbb{Q}$ from first principles, without reference to their constructions, where would you start?