mq done, dao refactor, endpoints refactor
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
package com.kmalbz.database.model
|
||||
|
||||
import java.time.LocalDate
|
||||
import com.kmalbz.database.dao.ResultObjects
|
||||
import org.jetbrains.exposed.dao.IntEntity
|
||||
import org.jetbrains.exposed.dao.IntEntityClass
|
||||
import org.jetbrains.exposed.dao.id.EntityID
|
||||
|
||||
data class ResultObject(
|
||||
val id: Int,
|
||||
val tag: String,
|
||||
val date: LocalDate,
|
||||
val decision: Boolean,
|
||||
val confidence: Double
|
||||
)
|
||||
class ResultObject(id: EntityID<Int>): IntEntity(id) {
|
||||
companion object : IntEntityClass<ResultObject>(ResultObjects)
|
||||
var tag by ResultObjects.tag
|
||||
var date by ResultObjects.tag
|
||||
var decision by ResultObjects.decision
|
||||
var confidence by ResultObjects.confidence
|
||||
}
|
||||
Reference in New Issue
Block a user