Need to clone schema in _createModel, since model may override schema properties
Refactored relations so that the Model/Collection class is defined when creating an instance