콘텐츠 API 추가
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package kr.co.vividnext.sodalive.content
|
||||
|
||||
import java.time.LocalDateTime
|
||||
import javax.persistence.Entity
|
||||
import javax.persistence.GeneratedValue
|
||||
import javax.persistence.GenerationType
|
||||
import javax.persistence.Id
|
||||
import javax.persistence.PrePersist
|
||||
|
||||
@Entity
|
||||
data class PlaybackTracking(
|
||||
val memberId: Long,
|
||||
val contentId: Long,
|
||||
val isPreview: Boolean,
|
||||
val playDate: LocalDateTime
|
||||
) {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
var id: Long? = null
|
||||
var createdAt: LocalDateTime? = null
|
||||
|
||||
@PrePersist
|
||||
fun prePersist() {
|
||||
createdAt = LocalDateTime.now()
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user