This might be a bit tricky, in schema.js, getAppDataValue would have to be able to create the model. This would create a cyclic dependency between Schema and Model.
Unless... Not sure about this, in model.js->getInitialData, it uses getAppData to get the initial data. What if there, it checked out the schema and saw that the type was a model, should it convert it?
This might be a bit tricky, in schema.js, getAppDataValue would have to be able to create the model. This would create a cyclic dependency between Schema and Model.