[Database Design]:How to share resources among accounts? -


using google doc, able share documents others. wonder how implement underlying in terms of db design?

the simplest way imagine use joining table keeps many-to-many relationship between resource , accounts share.

however, wonder if there well-known pattern this? if account has hundred resources, hundred joining tables seem not scale way, each resource have write specific code. there thing rbac(role based access control) sharing problem?

thank you


Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -