const result = await Article.findAll({
include:{
model:User,
attributes:[['username','author']]
},
where:{deleted:0},
attributes: ['id','title','description','keywords','content','tabId','createdAt','updatedAt'],
order:[
['id','desc']
],
raw:true
})
console.log(result)
I added a raw:true make the child param on the same layer.
but it got a prefix User..
how to remove it.