Monday, March 25, 2013

Model Structure Question

I have to create a dual sided site (buyers / sellers) so the logged in User is 1 or the other.

About 45 model / controllers with 20 for buyer only, 20 for seller only and 5 shared for interacting with one another.

What is the best way to go about this?

 

If I have just a User then that associates everything with a User even though only half would actually be used for either "User".

 

Would it be better to create a Buyer / Seller model / controller and directly associate the models for each.

 

$this->User->Seller->Items

$this->Buyer->Orders

 

Ideas? Thoughts? Suggestions?

 

Thanks

Dave

No comments: