📅  最后修改于: 2022-03-11 14:59:51.988000             🧑  作者: Mango
return Model.findAll({
group: [ '"Model".id' ],
attributes: ['id', [Sequelize.fn('count', Sequelize.col('"Likes".id')), 'likes_count']],
include: [{ attributes:sssss [], model: Like }],
});