UserLogin Data Type

User model. (Database annotations)

Available Since
1.0
Properties
name data type constraints description
password string required The user password.
username string   the username.
lastLogin number   the lastLogin.
role Role   the role.
id string   the id.
version number   Entity version.
person Person   Returns the person bound to this user.
initialLogin boolean required the initialLogin.
salt string   the salt.

Example

{
  "password" : "...",
  "username" : "...",
  "lastLogin" : 12345,
  "role" : "USER",
  "id" : "...",
  "version" : 12345,
  "person" : {
    "mobiles" : [ {
      "mobileDescription" : "...",
      "uniqueId" : "...",
      "throttled" : true,
      "geofence" : true,
      "id" : "...",
      "version" : 12345
    }, {
      "mobileDescription" : "...",
      "uniqueId" : "...",
      "throttled" : true,
      "geofence" : true,
      "id" : "...",
      "version" : 12345
    } ],
    "geoLocation" : {
      "latitude" : 12345.0,
      "longitude" : 12345.0,
      "distance" : 12345.0,
      "lastUpdate" : "..."
    },
    "firstName" : "...",
    "lastName" : "...",
    "id" : "...",
    "version" : 12345
  },
  "initialLogin" : true,
  "salt" : "..."
}