rog.log
로그인
rog.log
로그인
TypeORM Relation Options
roglog
·
2021년 4월 1일
팔로우
0
Nullable
on_delete
relation
typeOrm
0
onDelete
삭제 시 데이터베이스에서 종속적으로 일어날 액션
delete types ( Ex - 사진을 가지고 있는 주인을 삭제하면)
CASCADE: 연쇄적으로 삭제
ex) 사진들도 삭제 됨
SET NULL: null값으로 바꿈
ex) 사진의 주인 부분의 값은 null이 됨
nullable
null값이 가능함
cascade
onUpdate
deferrable
primary
lazy
eager
persistence
roglog
Full Stack Developer 📚
팔로우
이전 포스트
@ManyToMany
다음 포스트
TypeORM Relation Options
0개의 댓글
댓글 작성