Add database for local usage

pull/3/head
luevard 1 year ago committed by luevard
parent aecce83607
commit 221c2a4d83

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

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