Summary
In this chapter, we have looked at how schemas and models relate to your data. You should now understand the roles of both schemas and models.
We have looked at how to create simple schemas and the types of data they can contain. We have also seen that it is possible to extend this if the native types are not enough. On top of this we have learned about compiling the schemas into models and had a glimpse at how powerful this set of tools can be.
In the MongoosePM project, you should now have added a User schema and a Project schema, and built models of both of these.
In the next chapter, we're going to see how we use these schemas and models to create, read, update, and delete data.