Upgrade to ktorm 3.0.0, remove email field from users
This commit is contained in:
@@ -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?
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user