Next, we are going to look at the Mongoose models. As we have seen earlier, we have three collections in the database and we have three Mongoose models associated with these collections. You can find the models inside the servermodels folder.The servermodelsuser.ts has the models and password encryption and validation logic present. servermodels hread.ts has the model to work with thread collection, and servermodelsmessage.ts has the model to work with message collection.