Self taught here so please bear with me. How does one define the ring of integers of the field $\mathbb{Q}(r)$, where $r$ is a root of the cubic $$x^3+px+q$$ as well as determining the fundamental units of this field, alongside determining which primes are irreducible and reducible (assuming it's a principal ideal domain).
If it helps, assume I know how to calculate the coefficients of the minimal polynomial to an element of the field with respect to whatever the basis is.