ERP: Employee Users Within A Company Account

Hello Friends,
New to Bubble, with the intention of designing an ERP system customized for a very niche manufacturing industry. I’m learning as I build.

Goal: when signing up users, I want to sign up the company admin who then sends out email invites to employees to join as employee users under their company user account. Each company account that signs up should be totally separate from each other so they each have their own ERP database.

My thinking: Once the company admin signs up and logs in, they land at a company profile form where they can fill out business name, upload logo, etc. They would then be sent to fill out their own employee profile; name, photo, etc. Once that is set up, as the admin, they can create employee user profiles that include the employee name and email, which then allows them to invite the employee to sign up by sending out a password reset request. Once logged in, the employee would land on their own profile page which they can edit to their liking, and from there utilize the app under an assigned role.

My Assumptions: Do I create a “Company” data type which then links to a “User/Employee” data type? When a new company signs up their business and invites employees, will that keep everything separate?

Thoughts? Many thanks!

1 Like

Yes that’s the general setup. You should link the company on the user table (either in addition to the users being nested under the company or instead of). Then you can set up privacy rules that user’s can only see their company’s things.

2 Likes

As @code-escapee said, yes, privacy rules are the most important part. :+1:

Remember to add the ‘company’ onto each data type that you create for your users as well. Then make sure to setup privacy rules on those. Otherwise, they will potentially see everyone’s data.

Just something else to keep in mind. :blush: Maybe @code-escapee already kind of alluded to that.

2 Likes

Yes create a company data type and tie every user and every other data field to the company data type.

1 Like

Thanks everyone. I think I got this to work. Appreciate the help!

1 Like