-
카테고리
-
세부 분야
풀스택
-
해결 여부
미해결
질문있습니다!
22.08.05 15:50 작성 조회수 104
0
db.User.hasOne(db.Info, { foreignKey: 'UserId', sourceKey: 'id'});
db.Info.belongsTo(db.User, { foreignKey: 'UserId', targetKey: 'id'});
와
db.User.hasOne(db.Info);
db.Info.belongsTo(db.User);
의 차이는 뭔가요
DB의 테이블에 는 동일하게 표시됩니다.
답변을 작성해보세요.
1
답변 1