You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
515 B
Kotlin

package moe.odango.index.entity
import io.requery.Entity
import io.requery.Key
import io.requery.Persistable
import moe.odango.index.utils.EntityHelper
import moe.odango.index.utils.helper
import java.util.*
@Entity
interface Tag : Persistable {
@get:Key
val id: UUID
val aniDbId: Long?
val parentId: UUID
val name: String
val description: String
val spoiler: Boolean
companion object : EntityHelper<TagEntity> by helper(::TagEntity, {
setId(UUID.randomUUID())
})
}