관리자 - 추천 라이브 크리에이터 API
This commit is contained in:
@@ -11,8 +11,6 @@ import javax.persistence.ManyToOne
|
||||
|
||||
@Entity
|
||||
data class RecommendLiveCreatorBanner(
|
||||
@Column(nullable = false)
|
||||
var image: String,
|
||||
@Column(nullable = false)
|
||||
var startDate: LocalDateTime,
|
||||
@Column(nullable = false)
|
||||
@@ -20,7 +18,9 @@ data class RecommendLiveCreatorBanner(
|
||||
@Column(nullable = false)
|
||||
var isAdult: Boolean = false,
|
||||
@Column(nullable = false)
|
||||
var orders: Int = 1
|
||||
var orders: Int = 1,
|
||||
@Column(nullable = true)
|
||||
var image: String? = null
|
||||
) : BaseEntity() {
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
@JoinColumn(name = "creator_id", nullable = false)
|
||||
|
@@ -0,0 +1,7 @@
|
||||
package kr.co.vividnext.sodalive.live.recommend
|
||||
|
||||
import org.springframework.data.jpa.repository.JpaRepository
|
||||
import org.springframework.stereotype.Repository
|
||||
|
||||
@Repository
|
||||
interface RecommendLiveCreatorBannerRepository : JpaRepository<RecommendLiveCreatorBanner, Long>
|
Reference in New Issue
Block a user