Where are the Models in code? For Products for example. I see an M_Product Table in the db

How is the connection between the code and database tables done? Is there a doc for this? Or are they pointers to where I should be looking.

Thank you in advance