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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:21:32+00:00 2026-05-27T21:21:32+00:00

So I am creating a database and I have a few questions because I

  • 0

So I am creating a database and I have a few questions because I am not too sure if it’s best to just add this to the users table or create a new table for it.

So my users table has the following fields:

id, shop_name, address, city, state, zip_code, email_address, username, password, last_login, forgot_password

So those are the basics of each shop. Now I need to add 3 fields:

timezone_id which pulls from another table.
primary_color which is going to be used as a hex color code
secondary_color which is also a hex color, for the main template colors.

From my understanding, if every single user will have the value filled out (so yes they will all have a time zone and have two colors, it cannot be blank) then it is appropriate to add to the users table.

Is that correct? Or would adding a table called colors be better and having an id, primary, secondary, user_id be better?

What are the pros and cons? Thank you!

Edit: So for example if I want to add a place for “slogans” but not every shop will have a slogan, would that be appropriate to create a new table for slogans and if a shop does decide to create their own then it would add it to the table?

I just want to see if I am understanding this correctly.

  • 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-27T21:21:33+00:00Added an answer on May 27, 2026 at 9:21 pm

    I would just add this to your user table. There does not seem to be any reason for creating a new colours table. You would really only do this if each user would have an unlimited number of colours. Having it in one table means you can get all data from one table in one simple query rather than having to have a join or have seperate queries to get all data for a user.

    With regards to the Slogans, again just add this to the user table. If they have a slogan, add this to the field, if they don’t leave it blank. If a user was to have multiple slogans then perhaps then you would have this in a seperate table.

    Perhaps familiarise yourself with database normalisation as this really helps when you are unsure of how to design your databases.

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

Sidebar

Related Questions

I have a few questions about creating a database from a model. Is it
I'm creating a database table and I don't have a logical primary key assigned
I have an ms-access database called db.mdb and it contains various table. I;m creating
There have been a few articles and questions about how to do this but
I asked a few questions about SQLite here, and maybe its because I'm not
I am creating a database that will help keep track of which employees have
I am creating a database based on a ERD i have designed according to
I have astring directly coming form the database and I am creating object of
I have been asked to look into FileMaker for creating a pretty simple database
I'm creating and app that will rely on a database, and I have all

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.