title: I have a query to get 2 things from my DB, but its getting everything. Someone knows what is wrong here?
body: <p>This is my query:</p>
  
  <p><a href="https://i.stack.imgur.com/wrCtg.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>I'm using include and attributes to choose what I want:</p>
  
  <pre><code>const providers = await User.findAll({
    where: { provider: true },
    attributes: ['id', 'name', 'email', 'avatar_id'],
    include: [
      {
        model: File,
        as: 'avatar',
        attributes: ['name', 'path'],
      },
    ],
  });
  return res.json(providers);
  </code></pre>