Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6321301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:07:33+00:00 2026-05-24T16:07:33+00:00

How would you design a database to manage multi organisation? (ie 1 user can

  • 0

How would you design a database to manage multi organisation?
(ie 1 user can own/manage more than 1 organisation)

Example

  • Xero (www.xero.com), you can login to xero then select the company on the list that you want to manage. I think freshbook has something simular.

USER_ACCESS

  • Id
  • CompanyUserId (UserId of company)
  • UserId (UserId that will manages company)

USER_PERMISSION

  • Id
  • UserAccessId
  • CanViewM
  • CanEditM
    ….
  • CanViewN
  • CanEditN
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T16:07:34+00:00Added an answer on May 24, 2026 at 4:07 pm

    You should not mix users and logins. They should be kept treated as seperate tables/objects. As ones role in one company might not be the same role as in the other company.

    Also do not create a permission table with one column for each possible permission. Instead you should create one row per allowed permission. (and if needed one table defining all permissions)

    Hence you should have tables like:

    USER_ACCOUNT (used to define logins)

    • Id
    • UserName
    • Password

    USER

    • Id
    • AccountId (account used for login)
    • CompanyId (company that the user belongs to)

    PERMISSIONS

    • Id
    • Name

    USER_ALLOWED_PERMISSIONS

    • UserId
    • PermissionId

    When logging in, simply check the USER table if more than one row is returned for the account and display a select user form if needed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How would you design a database to support the following tagging features: items can
How would you design you database if say you had a table called user:
What would be the best database design for employee clocking and out? Right now
So this question is more around the design decision than anything else.Essientially, I want
I'm about to start a Database Design that will simply manage users under companies.
Classic database table design would include an tableId int index(1,1) not null which results
I am trying to come up with a database design that would work with
How would I design and organize tests for the concrete methods of an abstract
How would you design a RESTful query to support OR operand between parameters. Let's
How would you design a hosted web application? I'm looking at applications like Basecamp,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.