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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:19:26+00:00 2026-05-27T20:19:26+00:00

I need to be able to store some information about the user and I

  • 0

I need to be able to store some information about the user and I was wondering the best way to approach this.

Social Media

id - user_id - facebook - twitter_username - display_tweets

Some quick questions:

  • The Facebook field is just a yes or no to see if they have one, so I know whether or not to display the icon. Should that just be an enum 0 or 1? and 1 meaning they have one.
  • Same with display_tweets should that just be an enum 0 or 1?

And then the main question is, should I just store these in the users table? So I would just add 3 fields, the facebook, twitter_username, and display_tweets. Also, some might not have either facebook or twitter. The users table already has 20 fields, so I don’t want to make it TOO big.

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-05-27T20:19:27+00:00Added an answer on May 27, 2026 at 8:19 pm

    Yes, put them in your users table. Columns are cheap (if they are often null or small), particularly as your users table is guaranteed to be very small (You cannot possibly have a large number of users).

    Putting things in more tables just creates more effort. I’ve previously created tables with over 50 columns (properly normalised – all 50 columns store different items of data).

    It is probably a good idea to allow NULLs if the columns are not necessarily relevant to every user. “Magic values” are not a good idea (I’ve seen “” or -1 used as a “magic value” often enough).

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

Sidebar

Related Questions

I'm working on my first Rails app. It needs to store some information about
I have a set of information that I need to store in some kind
I need to store some sensitive information in a table in SQL Server 2008.
Users of the website need to able to store images in their area ,
I need to be able to store a date (year/month/day) with no time component.
I need to be able to store the current height and width of a
I need to create a configuration section, that is able to store key-value pairs
I have a large amount of data I need to store, and be able
I need to be able to get a list of the groups a user
I'm working on a Coldfusion project where I need to pull some information from

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.