title: How to rename entity name in Sequelize result?
body: <p>How can i change entity name in sequelize result ?</p>
  
  <p>Result in postman
      "createDate": "2019-05-30",
      "companyHeader.companyName": "Testcomp"</p>
  
  <p>I want to rename 'companyHeader.companyName' -> 'companyName'</p>
  
  <p><strong>repository.js</strong></p>
  
  <pre><code>return await models.userHeader.findAndCountAll({
  // join t_userheader and t_companyheader with associate
  include: [
  {
  model: models.companyHeader,
  attributes: ["companyName"],
  // as : 'company'
  },
  ],
  attributes: ["id","userId", "userName", "usedCode", "createDate"],
  offset: offset,
  limit: pageAmount,
  order : [['createdate','DESC']],
  raw : true
  });
  </code></pre>