add db interaction layer
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2020-04-04 23:21:17 +02:00
parent 97b5923c1e
commit af4307c6a4
11 changed files with 158 additions and 425 deletions

View File

@ -0,0 +1,14 @@
package com.kmalbz.database.dao
import org.jetbrains.exposed.sql.*
import org.jetbrains.exposed.sql.`java-time`.date
import java.time.LocalDate
object ResultObjects : Table() {
val id: Column<Int> = integer("id").autoIncrement()
val tag: Column<String> = varchar("tag",32)
val date: Column<LocalDate> = date("date")
val decision: Column<Boolean> = bool("decision")
val confidence: Column<Double> = double("confidence")
override val primaryKey = PrimaryKey(id, name = "PK_ResultObject_Id")
}