[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

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

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -