Implements Hunt basic create and get, and adds field validation to controllers
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
package net.halfbinary.scavengerhuntapi.model.domain
|
||||
|
||||
import java.util.UUID
|
||||
import net.halfbinary.scavengerhuntapi.model.HunterId
|
||||
import java.util.*
|
||||
|
||||
data class Hunter(
|
||||
val id: UUID = UUID.randomUUID(),
|
||||
val id: HunterId = UUID.randomUUID(),
|
||||
val email: String,
|
||||
val name: String,
|
||||
val password: String,
|
||||
|
||||
Reference in New Issue
Block a user