// user-controller.js
getUser: async (req, res, next) => {
try {
const userFind = await User.findByPk(req.params.id, {
attributes: {
exclude: ['email', 'password']
},
include: [
Tweet,
Reply,
Like,
{ model: User, as: 'Followers' },
{ model: User, as: 'Followings' }
],
nest: true
})