How can I design the account system with multiple ...
# support-questions-legacy
h
How can I design the account system with multiple levels? Accounts > Teams > Users ? Where do I hold these Account and Teams information? Do I need to create new tables in Supertokens DB ?
r
hey @hfakar so one account can be a part of multiple teams?
h
Not sure if we are talking about the same when we say accounts. So let me rewrite the levels. Organizations can have multiple teams and in those teams there could be multiple users/accounts. A single user/account could be in multiple teams in the same organization.
r
got it. So, you would first need to create one tenant in supertokens for each org. Then, you need to add users to the tenant / org. Once a user is added, you can assign them roles, which would essentially act as a team. You can assign a user multiple roles as well if needed, indicating that they are a part of multiple teams within that org. Does this make sense?
h
Oh it totally does. What if i dont have subdomains for different tenants? Will that be an issue?
r
that won't be an issue. All orgs will login via a common login page on the same domain right?
h
Right
r
yup. We support that.
have a look at our multi tenancy docs: https://supertokens.com/docs/multitenancy/introduction
also, creating tenants is a paid feature. How many orgs are you expecting?
h
It is going to be sometime till we get live with the app. But it should be about around 10-50 orgs in the beginning
r
got it. I can DM you the pricing.
h
Would be happy to see the pricing. Thanks again for the detailed answers
r
I have DMed you on discord.
2 Views