Skip to content

Commit

Permalink
fix: file (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
hajeu authored Jul 1, 2024
1 parent a26cfb5 commit d146f0e
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ class Board(
@Column(name = "board_category")
val boardCategory: BoardCategory,

@ElementCollection
@CollectionTable(name = "file_urls", joinColumns = [JoinColumn(name = "board_id")])
@Column(name = "file_urls")
val fileUrls: MutableList<String> = ArrayList(),

@ManyToOne
@JoinColumn(name = "author_id")
val author: User,
Expand All @@ -43,6 +38,9 @@ class Board(
@OneToMany(mappedBy = "board", fetch = LAZY, cascade = [CascadeType.ALL], orphanRemoval = true)
val likes: MutableList<Like> = ArrayList(),

@OneToMany(mappedBy = "board", fetch = LAZY, cascade = [CascadeType.ALL], orphanRemoval = true)
val files: MutableList<File> = ArrayList(),

@Column(name = "is_pinned")
var isPinned: Boolean = false,
): BaseIdTimestampEntity();

0 comments on commit d146f0e

Please sign in to comment.