다른 모델을 include 하는 도중에
User is associated to User multiple times.
To identify the correct association, you must use the 'as' keyword to specify
요런 에러가 발생했다.
검색해보니 2개이상 연결된 관계는 include할때도 as를 작성해줘야 한다고 한다.
include: [
{
model: User,
as: 'guest',
attributes: ['blogId'],
},
],
처음 User 모델에서 생성할때 사용한 값을 적용하니 제대로 작동한다.