Skip to content

Data Model: Profile

digitalkyopo edited this page Oct 24, 2018 · 4 revisions

Data Model: Profile

Data needed for Profile Page

  • User data
  • Wizard data

User data

The user model requires a first name, last name, email, and password, and uses Loopback's default user model. The model is an object which contains the user properties and their corresponding values obtained from registration.

{
  "email": "string",
  "firstName": "string",
  "lastName": "string",
  "password": "string"
}

Wizard data

The wizard will gather additional data about the user after registering and add the data to the User model object.

...
"branch": "string",
"status": "string",
"separationDate": "date",
"serviceDisability": "string",
"disabilityRating": "number",
"employmentStatus": "string",
"lastEmployed": "date",
"maritalStatus": "string",
"militaryRank": "string",
"occupationCode": "string"
}

Profile page data view

The Profile page should display almost all of the available data from the User model. The displayed data won't exactly match the User model because the password will not be displayed in the profile, and for conditional portions of data such as "serviceDisability" and "disabilityRating", a disability rating won't apply if no service disability exists.

Profile edit

The Profile page will allow editing of the data property values if changes are needed. These can be performed per individual property using patch requests.

Clone this wiki locally