Files
KnockOutWhist-Web/knockoutwhistweb/app/model/users/User.scala
Janis 1d2c141bc8 chore(base): resolved merge-conflict
#5 [Story] Create User Sessions
2025-10-29 19:05:13 +01:00

21 lines
400 B
Scala

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)
}
}