콘텐츠 등록

- 구매옵션(모두, 소장만, 대여만) 추가
This commit is contained in:
2024-11-08 00:47:12 +09:00
parent eee59855cc
commit d94ef1eb25
3 changed files with 10 additions and 0 deletions

View File

@@ -9,6 +9,8 @@ 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
@@ -16,6 +18,10 @@ import javax.persistence.OneToMany
import javax.persistence.OneToOne
import javax.persistence.Table
enum class PurchaseOption {
BOTH, BUY_ONLY, RENT_ONLY
}
enum class SortType {
NEWEST, PRICE_HIGH, PRICE_LOW
}
@@ -30,6 +36,8 @@ data class AudioContent(
var releaseDate: LocalDateTime? = null,
val limited: Int? = null,
var remaining: Int? = null,
@Enumerated(value = EnumType.STRING)
val purchaseOption: PurchaseOption = PurchaseOption.BOTH,
val isGeneratePreview: Boolean = true,
var isOnlyRental: Boolean = false,
var isAdult: Boolean = false,