feat(auth): implemented users and user auth

#5 [Story] Create User Sessions
This commit is contained in:
2025-10-26 11:24:05 +01:00
parent 03f1811ab4
commit 158238da80
13 changed files with 115 additions and 46 deletions

View File

@@ -0,0 +1,20 @@
package model.users
import java.util.UUID
case class User(
internalId: Long,
id: UUID,
name: String,
passwordHash: String
) {
def withName(newName: String): User = {
this.copy(name = newName)
}
private def withPasswordHash(newPasswordHash: String): User = {
this.copy(passwordHash = newPasswordHash)
}
}