title: Sequelize INNER JOIN
body: <p>I need to Inner Join with sequelize. I tried something but i cant understand it.Anyone help me for this ;</p>
  <p>I have two model that are Users and Payments. I want to get Users with payments data.</p>
  <p>I shared basicaly Example below
  Anyone explain for me ? and how can i make it ?</p>
  <p>Totaly need ' SELECT * FROM Users INNER JOIN Payments ON Users.id=Payments.user_id WHERE Users.email=?';</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>Users.findOne({
  where:{
  user_email:payload.email
  },
  include:[{
  model:Payments,
  where:['Payments.user_id = Users.id']
  }]
  })</code></pre>
  </div>
  </div>
  </p>
  <p><a href="https://i.stack.imgur.com/rI5th.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rI5th.png" alt="enter image description here" /></a></p>
  <p>Update:
  Added this.
  After gived Error: Include unexpected. Element has to be either a Model, an Association or an object.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>  Users.hasMany(Payments, { foreignKey: "user_id" });
    Payments.belongsTo(Users, { foreignKey: "id" });</code></pre>
  </div>
  </div>
  </p>