Refactor: 이미지 최상위 폴더가 null이 가능하도록 수정 S11P21S002-217

This commit is contained in:
kimtaesoo7 2024-09-23 15:22:13 +09:00
parent a337b8cde2
commit f8e211db7a

View File

@ -51,7 +51,7 @@ public class Image extends BaseEntity {
* 속한 폴더
*/
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "folder_id", nullable = false)
@JoinColumn(name = "folder_id", nullable = true)
@JsonIgnore
private Folder folder;