title: Feathers.js / Sequelize -> Service with relations between two models
body: <p>I've got feathers.js functioning with mysql via sequelize. This is working, I can collect data from tables. Next step is to define 'joins' in the models.</p>
  
  <p>I have a table with a column 'status_id' and 'country_id'. These columns reference to an id in a metadata table. In SQL I would right:</p>
  
  <pre><code>SELECT status.description, country.description, detail 
  FROM details 
  INNER JOIN metadata status 
      ON (details.status_id = status.id AND status.type = 'status' 
  INNER JOIN metadata country 
      ON (details.country_id =country.id AND country.type = 'country')
  </code></pre>
  
  <p>This metadata table won't be big in this case so hence this approach. It does give flexibility I need.</p>
  
  <p>What do I need to do to make this in feathters.js?</p>