Partitioned user data with optional multi-user access


My background is CouchDB/PouchDB. I’ve a system where each user has their own DB (which to me is an attractive level of separation). A key feature I’ve implemented with *ouchDB is that a user’s DB may become multi-user, in other words, a user may invite N collaborators into their DB.

Likewise, a user may ‘switch’ databases from their DB to a DB to which they are a collaborative guest.

It is not clear how this is possible with Realm, which otherwise looks very promising.

Is there a proven strategy for such a design?

The sounds of silence are a definitive answer.