title: Sequelize: find latest record per group of id
body: <p>I'm trying to accomplish the same query on the link below but got no luck here:</p>
  
  <p><a href="https://dzone.com/articles/get-last-record-in-each-mysql-group" rel="noreferrer">https://dzone.com/articles/get-last-record-in-each-mysql-group</a></p>
  
  <p>Can you suggest the proper way of converting the raw query on the link above into sequelize ORM format?</p>