[eluser]UnforgiveNX[/eluser]
Hi all,
I'm trying to develop a model with CodeIgniter. I have three mysql tables; Users, Products and Comments. As you may imagine, users and products are stand-alone tables but comments table is related to users and product (who is commented and commented to which product).
I'm wondering what is the best practice to develop models.
Should I create
one model for each table, or
one model for each standalone table ?
I have seen some projects. For instance Dx_auth plugin uses seperate models for each database table (login_attempts, permissions, roles, ..). What if there would be only one "user" module?
What is the best practice?
Thank you