Creates a new model with specified name and schema in the repository.
A smart pointer to the created model.