Motivation
Let $\mathcal{C}$ be the category of commutative unital rings, and let $R \in \mathcal{C}$. The category of commutative unital R-algebras can be defined as follows:
- Objects: morphisms of $\mathcal{C}$ of the form $R \to A$
- Morphisms: commutative triangles in $\mathcal{C}$ of the form $\begin{array}{ccc} R & \to & A\\ & \searrow & \downarrow \\ & & B \end{array}$
Question
Is this construction useful in general? Are there other examples of the above construction (or its dual) yielding a useful/interesting/well-known category, if we let $\mathcal{C}$ be some category other than $\operatorname{CRing}$?