title: Difference between HasOne and BelongsTo in Sequelize ORM
body: <p>I am developing a <a href="http://sailsjs.org/" rel="noreferrer">sails.js</a> app with <a href="http://docs.sequelizejs.com/" rel="noreferrer">sequelize</a> ORM. I am a little confused as to when BelongsTo and HasOne need to be used.</p>
  <p>The documentation states that :</p>
  <blockquote>
  <p><strong>BelongsTo</strong> associations are associations where the foreign key for the
  one-to-one relation exists on the source model.</p>
  <p><strong>HasOne</strong> associations are associations where the foreign key for the
  one-to-one relation exists on the target model.</p>
  </blockquote>
  <p>Is there any other difference apart from the the place where these are specified? Does the behavior still continue to be the same in either cases?</p>