I have an application that will store data locally for a user. I want the app to be used while offline as well. I am fully aware and I have implemented Cloudant Sync with a Loopback nodejs backend on Bluemix. However, am struggling with how to design both the app data and Cloudant sync process. My mobile app developed in IOS swift.

Here is my struggle --The database will be fairly large with related tables, it will store images and various amounts of data --Syncing will occur when app is running or in the background --Users data will need to be shared, i.e a user can see other users information but will also have roles and permissions

Questions Should I use the One Database per user design, if so why and how? --If this is the way to go, how would I set that up using a Loopback nodejs Backend