질문&답변
사용자 차단 로직 구성에 대한 질문
다음과 같이 하니 block 테이블이 이렇게 생성이 되었습니다. 이게 맞는걸까요? 아니면 위에 것이 맞는걸까요? db. User . belongsToMany (db. User , { through : "block" , as : "Blocker" , foreignKey : "BlockerId" }); db. User . belongsToMany (db. User , { through : "block" , as : "Blocked" , foreignKey : "BlockedId" });
- 좋아요수
- 0
- 댓글수
- 4
- 조회수
- 1293





