BundleAudioContent 제거

This commit is contained in:
2024-11-07 18:48:29 +09:00
parent efdf1d3eed
commit eee59855cc
5 changed files with 28 additions and 113 deletions

View File

@@ -9,8 +9,6 @@ import java.time.LocalDateTime
import javax.persistence.CascadeType
import javax.persistence.Column
import javax.persistence.Entity
import javax.persistence.EnumType
import javax.persistence.Enumerated
import javax.persistence.FetchType
import javax.persistence.JoinColumn
import javax.persistence.ManyToOne
@@ -18,10 +16,6 @@ import javax.persistence.OneToMany
import javax.persistence.OneToOne
import javax.persistence.Table
enum class AudioContentType {
INDIVIDUAL, BUNDLE
}
enum class SortType {
NEWEST, PRICE_HIGH, PRICE_LOW
}
@@ -36,8 +30,6 @@ data class AudioContent(
var releaseDate: LocalDateTime? = null,
val limited: Int? = null,
var remaining: Int? = null,
@Enumerated(value = EnumType.STRING)
val type: AudioContentType = AudioContentType.INDIVIDUAL,
val isGeneratePreview: Boolean = true,
var isOnlyRental: Boolean = false,
var isAdult: Boolean = false,
@@ -63,7 +55,4 @@ data class AudioContent(
@OneToMany(mappedBy = "audioContent", cascade = [CascadeType.ALL])
val audioContentHashTags: MutableList<AudioContentHashTag> = mutableListOf()
@OneToMany(mappedBy = "child", cascade = [CascadeType.ALL])
var children: MutableList<BundleAudioContent> = mutableListOf()
}