The Model is where all the application’s data objects are stored. Eg: a User Model that contains a list of users, their attributes, and any logic associated specifically with that model.
A model doesn’t know anything about views or controllers. Models should be completely decoupled from the rest of your application.When controllers fetch data from servers or create new records, they wrap them in model instances. This means that our data is object oriented, and any functions or logic defined on the model can be called directly on the data.
The model here represents attributes associated with each todo item such as description and status. When a new todo item is created, it is stored in an instance of the model.