Models and schemas for users and auth tokens

This commit is contained in:
2026-07-09 16:12:09 +03:00
parent ef0d281dcb
commit e06c53a9ff
9 changed files with 105 additions and 1 deletions
+7
View File
@@ -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)