Models and schemas for users and auth tokens
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package models
|
||||
|
||||
import java.time.Instant
|
||||
|
||||
case class User(id: Option[Int], username: String, gid: String, passwordDigest: Option[String])
|
||||
|
||||
case class AuthToken(id: Option[Int], userId: Int, token: String, createdAt: Instant, expiresAt: Instant)
|
||||
Reference in New Issue
Block a user