views:

41

answers:

0

I am a large social networking site, say mynetwork.com. It will have a lot of features like albums, forums, jobs board and so on (Php + MySQL + Yii)

Now, the users of this site will be able to create networks for their own community which can be accessed by community-1.mynetwork.com or community-2.mynetwork.com etc.

So, I am not sure whats the best way to design the database. One way, I can come up with is to have a unique Id for each network and have a network_Id field in each table.

Is there any better way?