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 7715021
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:16:53+00:00 2026-06-01T02:16:53+00:00

I have two types of users on the database: -Web registered users -Twitter users

  • 0

I have two types of users on the database:
-Web registered users
-Twitter users

I have to store data of both:
– Web registered users: id, nick, mail, verified, password
– Twitter users: id, nick

Currently i have just 2 tables:
– webUsers: id, nick, mail, verified, password
– twitterUsers: id, nick

But it carry some problems for example with the comments table. Both users can make comments so i would need two foreigns key and that’s not possible.

I also thought about this possibility:
– users: id, nick
– users_twitter: id,
– users_web: id, nick, mail, verified, password.

It would represent the main table users with two childrens: users_twitter and users_web.
But… the table users_twitter has only one field: id isn’t that weird?

What would you recommend me?
OH, by the way. Twitter users id is the one i get from twitter API, so it might be possible that ID could be same of my of the web users ID.

Thanks.

  • 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-06-01T02:16:55+00:00Added an answer on June 1, 2026 at 2:16 am

    So, you’ve a hierarchy there. You have some common fields that could be part of a Users table and some others that should be part of each of the childrens: UsersTwitter and UsersWeb. You can take a look at this post to see how to handle hierarchies.

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

Sidebar

Related Questions

I have two types of data sets. Both are in same size. One contains
I have two types of users for my system, normal human users with a
I have two user types in my application: Investors and Advisors , they both
I have to store messages that my web app fetch from Twitter into a
I'm building an application that will have two different types of users, lets call
I have written a small web app to collect some data and store it
My site has two types of users; customers and suppliers. I have ended up
I have an application where there are two types of user currently, Admin and
I have two types of registration, registration A and registration B, each will have
If I have two types of strings as: const char *str1 = This is

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.