I am currently working with a rather large db (amount of tables). This db can easily be divided or segmented for the associated functionality of the data that in stored within the entities. For example…address, party (user or business), categories, products, and so on.
My question is how should I layout Yii to interact with this? Originally I created a module for each of those groups (address, party, categories, products, and so on) but now I am wondering if I am using a module in the wrong manner.
Should I keep all my models together under the main app and then create modules that tie in the functionality for different things. Such as listing products with my current approach I would be utilizing party (business), categories, products, and maybe even address modules. Now I am thinking this should all be one module pulling from the main app models, but then I would have duplicating models. One under the main app and another in the module.
Can someone pull me out of this web of confusion and set me on the right path? This confusion is clear in my head but not sure my question is easy to understand. This of course is a design and methodology question and not one about coding.