Extending the user model for your no-code backend REST API
Next, we will look at extending the Users model with extra fields.
Go to TODOLISTS service, and open the Users model. Switch to the Fields tab.
![Services page](/assets/image/tutorial/users_model_collapsed.png)
![Users model with default fields](/assets/image/tutorial/users_model_fields.png)
Notice the default fields.
Field | Required | Default Value | Modifiable |
---|---|---|---|
Username | True | N/A | True |
Password | True | N/A | True |
Role | False | Standard Application User | False |
Enabled | False | True | True |
True | N/A | True |
We will add two extra fields, FIRSTNAME and LASTNAME. Set Data Type to Varchar, and Length to 100, which should be enough to allow for most names.
![Users model, extra fields](/assets/image/tutorial/users_model_extra_fields.png)
Click Update Service and wait for the changes to be deployed.
![Update service button](/assets/image/tutorial/update_service_button.png)
![Publish confirmation modal](/assets/image/tutorial/ready_to_publish.png)
![Publish successful modal](/assets/image/tutorial/changes_published.png)