Skip to content

Commit

Permalink
[#176] init(SharedType) : 보관함 상태 컬럼 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Ji-Ha committed Aug 16, 2022
1 parent 70e2c27 commit e508844
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/kotlin/com/yapp/web2/domain/folder/entity/Folder.kt
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ class Folder(
@OneToMany(mappedBy = "folder", cascade = [CascadeType.ALL])
var folders: MutableList<AccountFolder>? = mutableListOf()

// TODO: 2022/05/06 공유 북마크인지 확인하기 위해서 추가한 컬럼
var share: Boolean? = false
// 공유 상태 저장
var sharedType: SharedType = SharedType.CLOSED

var beforeSharedType: SharedType? = null

var rootFolderId: Long? = null

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.yapp.web2.domain.folder.entity

enum class SharedType {
INVITE, OPEN, CLOSED
}

0 comments on commit e508844

Please sign in to comment.