A category consists of a collection of objects and a collection of morphisms such that any morphism has a specified domain and codomain, there is the identity morphism for every object and such that there is a composition of morphisms in the usual sense. In my opinion "consists of" and "collection" are a bit vague, so I wondered how this could possibly be defined in set theory. As you can read below, I tried translating "consists of" as an ordered pair and "collection" as set in the case of small categories.
Consider for example a group $G$. Then it is well known that this can be viewed as a category with one object such that any morphism is given by a group element $g \in G$ and that the composition of $g,h \in G$ is given by group multiplication $gh$. Being nit picking, this is not correct since group elements alone certainly don't specify a domain and codomain, even though the context suggests what the domain and codomain are supposed to be. Here we are dealing with a small category, so I wondered whether one could (or whether this is done) by using triples.
I am neither well educated in set theory nor in category theory, so this is probably a naive question and approach, but perhaps one could say that a small category $C$ is an ordered pair of sets $(\mathsf{Ob}(C),\mathsf{Mor}(C))$ where any element of $\mathsf{Mor}(C)$ is given by a triple $(X,Y,f)$, where $X,Y$ are elements of $\mathsf{Ob}(C)$ and $f$ is a set such that the usual axioms are satisfied. If this were possible, one would always have a specified domain and codomain. This could also easily make precise that the opposite category is given by the objects of $C$ and as morphisms the triples $(Y,X,f)$ whenever $(X,Y,f) \in \mathsf{Mor}(C).$
This is obviously not possible when dealing with larger categories, so I wonder: Is this one way to define small categories or is even this naive suggestion false? Either way, is there a common way to define categories (large or small) in $\mathsf{ZFC}$?