In the context of classical algebraic geometry we have the following definition.
A variety (say affine over an algebraic closed field $k$) $X\subset\mathbb{A}^n_k$ is said to be defined over a ring $A\subset k$ if we can find polinomials $f_1,...,f_k\in A[x]$ such that $X=V(f_1,...,f_k)$. In this case the specific set of polynomials can be thought as the chosen $A$-structure for $X$ and now if we want to reduce $X$ mod a prime ideal $P\subset A$ we just take $$\bar{X}=V(\bar{f}_1,...,\bar{f}_k)\subset \mathbb{A}^n_{\overline{k(P)}}$$ And this reduction depends in general of the choose of $A$-structure.
I want to understand how this concepts translate to the lenguage of schemes.
A first approach for this would be to define an $A$-structure of an scheme $X$ to be a morphism $X\rightarrow \text{Spec}(A)$, and a reduction mod $P$ to be the fiber of this morphism at $P$. The problem with this definition is that, as $\mathbb{Z}$ is a final object, every scheme $X$ would come with a unique $\mathbb{Z}$ structure and of course this is not a property we would want. Also, if we take the variety $\text{Spec} \ \mathbb{C}[x,y]/(f(x,y))$, then the reduction mod $p$ would be $\text{Spec} \ \mathbb{C}[x,y]/(f(x,y))\otimes_\mathbb{Z} \mathbb{Z}/p\mathbb{Z}$ and this do not coincide with the definition in the classical context (I guess).
So, what is the usual definition for this concept?