I am creating an app that has a Users table (full of owners, and customers).
Its currently set up to have a separate onboarding for Owners (which automatically sets them to an owner account). there is an “IsOwner?” Column in the user table.
I need to know how to have a company created and the owner account at sign up.
I think the company has to “exist” before a user can be created, because users have to have a company. I’m just not sure the best way to do this.
Ideally I want to ask a user to enter their “USER” information, click sign up, then in the next screen create a “COMPANY”, then assign that user to that company as an Owner.
Then once they create the company, they are dropped on a dashboard that is associated with the new company that they just created, and they are the admin of.