I was arguing with a friend of mine about using views (say MySQL, not the pattern MVC).
A question arose in the following way: A Model serves to represent a data structure, being able to read and write data in a table through it. So, could I use a model in an MVC structure that represents a view SQL (so it usually represents a table)?
For example, if I have a view in MySQL, I can represent the same through a model in a framework like CakePHP , or Laravel, or Django?
I say this because models usually have methods for writing data. And views are just ways to visualize data.
If I did a model representing a view , could it be violating the principle of model