Now that we have a successful database connection, we can go ahead to create data models that will control our interaction with our database.
In our application, we will need two data models:
- The User model: This will contain the schema for our user collection
- The Post model: This will contain the schema for our post collection