inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

이원영님의 게시글

이원영 이원영

@ilgong

수강평 작성수
6
평균평점
5.0

게시글 1

질문&답변

board 테이블에 userId라는 키값

typeorm 에서 ManyToOne 을 사용할 때 Many(board)쪽 테이블에 relation 된 테이블(user)의 id 를 foreign key 로 생성해주는 것 같습니다. 이때 userId 로 생성되는 것이고요. https://orkhan.gitbook.io/typeorm/docs/many-to-one-one-to-many-relations#:~:text=Here%20we%20added,and%20foreign%20key .

좋아요수
0
댓글수
1
조회수
347