Different Data Types

Hello Bubble Community I am New To bubble and would really need help with my project
i am creating a network with two different user types…(company and Staff)

i want to know how to create different user types in the database…bubble comes default with user data type, but for the company user would also have its own sub data things like…name…about…and other things.

i have tried to make a data custom data “company” but how to make this data type a user type data and link it to its Custom data to give access to its own data fields is what i am greatly confused on, or maybe i am going it in a totally wrong way lol

please i need help and i have read similar answers but not aware to relate it to solve my issues as i am still new and need help in the simplest way possible
thanks for the help and i really appreciate

Create the company datatype and create all the fields you need (company name, address, etc.)

For the staff datatype, if you want staff to be able to log in, then use the “User” datatype which Bubble automatically creates. You just need to modify it with the fields you need.

To connect the User (ie staff) and Company, create a field called “company” and select the Company datatype as its source. This links the staff member to a specific company.

I’d suggest you do all the Bubble tutorials/videos and then review some of the how to create clone entries, and also do some of the videos done by some of the consultants. You’ll need to have a good grounding in database structure and how Bubble works.

Thank you Ed727
i reaplly appreciate your response i totally understand these aspect and i have to cennect it like this

“To connect the User (ie staff) and Company, create a field called “company” and select the Company datatype as its source. This links the staff member to a specific company.”

want i really want to know is how to set up data type for the company as a user and link it to the Custom Data (company) as you cant set up a Custom data type user?

The User datatype is a special datatype that has functions like login, password, etc. I don’t believe you can create a second and separate user datatype, since it wouldn’t have those special functions.

If the “company” user does not need to login, then it does not need to be a User datatype. But if it does – for example if you want a company-wide login and password, then it would need to be a User datatype.

If I had two different types of users and both required logins and other functions that only the User datatype can provide, I would work with the User datatype for both, but set it up in one of the below ways:

  1. Create the fields needed for each type within the User datatype. Some fields will be blank if they don’t apply to the specific user, but it doesn’t matter. In your input and display, when you are showing one type of user, you can set it up to only show the fields related to that user.
  2. You can create Company and Staff datatypes in addition to a central User datatype. Then link each User entry to its corresponding entry for Company and Staff. This is a little more complex however because now you have three datatypes.

In my app I have a few different types of users, but they are all combined in the User datatype. I identify what type of user they are with “yes/no” fields and that also flows through to the privacy settings so I can control what users have access to.