관리자 - 추천 라이브 크리에이터 API

This commit is contained in:
2023-08-07 03:09:44 +09:00
parent 14b25bdfc3
commit 34590347a6
8 changed files with 310 additions and 4 deletions

View File

@@ -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)

View File

@@ -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>