title: Firebase/NoSQL Database Structure
body: <p>I am trying to structure a nosql database for the first time. I have a user table which contains: name and email address. Now each user can have more than 1 device.</p>
  
  <p>Each device has multiple basically has an array of readings.  </p>
  
  <p>Here is what my current structure looks like:</p>
  
  <p><a href="https://i.stack.imgur.com/fUvuA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fUvuA.png" alt="enter image description here"></a></p>
  
  <p>How can i improve this structure? </p>
  
  <p>ps: I am using angularjs with angularfire.</p>