본문 바로가기

TIL

내일배움캠프 4기_Node숙련, 개인과제 30일차 TIL

728x90

내일배움캠프 4기_Node숙련, 개인과제 30일차 TIL


https://pangeei-h.tistory.com/entry/Nodejs-%EC%88%99%EB%A0%A8-%EC%A3%BC%EC%B0%A8-%EA%B0%9C%EC%9D%B8-%EA%B3%BC%EC%A0%9C3

 

Node.js 숙련 주차 개인 과제_3

Node.js 숙련 주차 개인 과제_3 📌 게시글 API 📌 Comment 모델 생성(Terminal) npx sequelize model:generate --name Comment --attributes comment:string,userId:integer,postId:integer Id → commentId 수정 userId를 외래키로 user모델과

pangeei-h.tistory.com


댓글 기능구현했다.

좋아요 기능도 postId와 userId를 외래키로 넣어서 구현해보면 될 것 같다!