title: Couchdb / Pouchdb Relation between multiple users and multiple documents
body: <p>I have a problematic here:
  I'm builing a mobile app with ionic frmaework who needs to be able to work offline.</p>
  
  <p>I'd like to adopt the CouchDB / PouchDB solution. But to do that i need to know how to put my data in the noSQl datatbase (MySQL user before ...). So, nosql is new to me but it seems interesting.</p>
  
  <p>So my app has a connection part so a user database. And each user has documents who are attached to him. But many users can have many documents (sharing documents). And I want to replicate the data of one user (so his information + his documents on the mobile app).</p>
  
  <p>What I thought is this: </p>
  
  <p>One database per. One database for all Document with a server filtering to send only the documents that belongs to the user.</p>
  
  <p>And on the client side I'd juste have to call :</p>
  
  <pre><code>var localDB = new PouchDB("myuser");
  var remoteDB = new PouchDB("http://128.199.48.178:5984/myuser");
    localDB.sync(remoteDB, {
      live: true
    });
  </code></pre>
  
  <p>And like that on the client side I'd have something like that : </p>
  
  <pre><code>{
      username: "myuser",
      birthday : "Date",
      documents : [{
          "_id": "2",
          "szObject": "My Document",
      },
      {
          "_id": "85",
          "szObject": "My Document",
      }]
  }
  </code></pre>
  
  <p>Do you think something like that is possible using Couchdb and pouchdb, and if yes, am I thinking about it the right way? 
  I read it's not a problem to have one database per document, but I don't know if the replication will work like I imagine it</p>