OneToOne 테이블 간 1:1 관계일 때 사용한다. 이 예시에선 유저와 유저 프로필에 대한 예제를 이용하겠다. // User Entity @OneToOne(() => ProfileModel, (profile) => profile.user) profile: ProfileModel // ProfileEntity @OneToOne(() => UserModel, (user) => user.profile) @JoinColumn() author: UserModel UserModel에서 ProfileModel 타입의 profile을 만든다. @OneToOne() 어노테이션을 적어준다. 첫 번째 인자는 콜백함수 형태로 ProfileModel을 받아준다. 두 번째 인자는 콜백함수 형태로 해당 profile의 user..