Generate UserGame model and set up relationships.