generated from pricelees/issue-pr-template
27 lines
633 B
Kotlin
27 lines
633 B
Kotlin
package roomescape.theme.infrastructure.persistence
|
|
|
|
import jakarta.persistence.Column
|
|
import jakarta.persistence.Entity
|
|
import jakarta.persistence.Id
|
|
import jakarta.persistence.Table
|
|
import roomescape.common.entity.BaseEntity
|
|
|
|
@Entity
|
|
@Table(name = "themes")
|
|
class ThemeEntity(
|
|
@Id
|
|
@Column(name = "theme_id")
|
|
private var _id: Long?,
|
|
|
|
@Column(name = "name", nullable = false)
|
|
var name: String,
|
|
|
|
@Column(name = "description", nullable = false)
|
|
var description: String,
|
|
|
|
@Column(name = "thumbnail", nullable = false)
|
|
var thumbnail: String,
|
|
) : BaseEntity() {
|
|
override fun getId(): Long? = _id
|
|
}
|