Upgrade to ktorm 3.0.0, remove email field from users

This commit is contained in:
2020-06-18 16:33:18 +02:00
parent 3221b490ea
commit 214286a6eb
17 changed files with 90 additions and 225 deletions
+3 -4
View File
@@ -1,15 +1,14 @@
package be.vandewalleh.entities
import com.fasterxml.jackson.annotation.JsonProperty
import me.liuwj.ktorm.entity.*
import java.time.LocalDateTime
interface User : Entity<User> {
companion object : Entity.Factory<User>()
val id: Int
var username: String
var email: String
@get:JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
var password: String
var createdAt: LocalDateTime
var lastLogin: LocalDateTime?
}