title: Implementing Mongoose models
body: <p>I'm very new to mongoose, I've looked at a few tutorials and I am familiar with the types in mongoose, however am confused as to how I can model this:</p>
  
  <p>I have a sensor node with the following attributes:<br>
   1) node ID<br>
   2) location</p>
  
  <p>I have locations with the following attributes:
   1)Name of location<br>
   2)List of node IDs at that location</p>
  
  <p>I also need a readings model that has the following attributes:<br>
   1) number of ticks : Int<br>
   2) node ID (of the node this reading came from)</p>
  
  <p>I can design simple models in mongoose, however there are relationships between all three of these models I want to define, and I'm not sure how I can model them so that they are connected, e.g. Node ID in readings refers so some ID in the node model</p>