Insites Docs Developers guide Data and UsersUsersCreating a Database Field for all Users

Creating a Database Field for all Users

Last updated on June 26, 2024.

This guide shows you how to create a database field for all Users of your Insites web application.

Prerequisites

To follow the steps in this tutorial, you must understand the required directory structure for your codebase and the concept of users. You may visit the links below for more information:

Steps

Creating a database field (Property) for all Users is a one-step process. Create a file in the app directory with the properties you want the user to have. Let's take the example where you want to store a phone number:

Important

and are interchangeable terms. We use the the former because it is a widely-used naming convention. However, the latter term is what is used throughout the Insites codebase.

Next Steps

Congratulations! You have created a database field for all Users. Now you can learn how to namespace user properties using UserProfiles in Creating a User Profile.

Have a suggestion for this page?

Didn't quite find what you are looking for or have feedback on how we can make the content better then we would love to hear from you. Please provide us feedback and we will get back to you shortly.