forked from loafle/openapi-generator-original
25 lines
451 B
Scala
25 lines
451 B
Scala
package model
|
|
|
|
import play.api.libs.json._
|
|
|
|
/**
|
|
* A User who is purchasing from the pet store
|
|
* @param userStatus User Status
|
|
*/
|
|
|
|
case class User(
|
|
id: Option[Long],
|
|
username: Option[String],
|
|
firstName: Option[String],
|
|
lastName: Option[String],
|
|
email: Option[String],
|
|
password: Option[String],
|
|
phone: Option[String],
|
|
userStatus: Option[Int]
|
|
)
|
|
|
|
object User {
|
|
implicit lazy val userJsonFormat: Format[User] = Json.format[User]
|
|
}
|
|
|