Model is a MVC Layer that work with Database. This is basically a Class which is linked with a table to execute diffident operation.
Here are some major responsibility of Model:
1.Create a connection with Database table through Model Class
2.Execute Model Installer
3.Execute SQL in database
4.Join Table
5.Check data validate
6.Execute Call Back Function
7.Execute Model Specific function
Note:
•Table must contain a primary key with name "id"
•Table field name must be lowercase
•In Model class do not use the table prefix.
•In database always use table prefix.