Add general models with relations.