Add database for local usage

pull/3/head^2
luevard 1 year ago committed by arthur.valin
parent cb9edc7492
commit 59faa48897

@ -32,6 +32,11 @@
<artifactId>ktor-server-core-jvm</artifactId>
<version>${ktor_version}</version>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.7.1</version>
</dependency>
<dependency>
<groupId>io.ktor</groupId>
<artifactId>ktor-server-netty-jvm</artifactId>

@ -1,11 +1,12 @@
package allin.entities
import org.ktorm.schema.Table
import org.ktorm.schema.double
import org.ktorm.schema.int
import org.ktorm.schema.varchar
object UserEntity : Table<Nothing>("user") {
object UserEntity : Table<Nothing>("utilisateur") {
val id = int("id").primaryKey()
val username = varchar("username")
val password = varchar("password")
val nbCoins = double("nbCoins")
}
Loading…
Cancel
Save