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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:16:00+00:00 2026-05-26T14:16:00+00:00

What is the most important data I should gather from a client for a

  • 0
  • What is the most important data I should gather from a client for a basic e-commerce site ?

    These are some of the data that comes to mind mind separated by sections (this is not a table design just yet as it could be altogether or separated but will go into that later):

    • Login credentials:

      email, password
      
    • Secret question data:

      secret question, secret question answer (or other method)
      
    • Client data:

      name, last name, birthday, address, city, state,
      country, postal code, phone, cellphone
      

    From the above I might be missing something but would appreciate if you could point out any other beneficial data that I could collect for the registration schema.

    Should I also have a username and allow the user to pick which one he wants to use to login ? Does that bring any advantages ?

  • What field type should I use that best describes each fields below ? Anything I have defined that I should change or consider ?

  • Should I use more then one table ?
    • why ? when ? any gains other then organization ?
    • What about when I need to retrieve it with inner or left joins wouldn’t that be bad in a way ?

Here is an example of the design I was thinking as single table for now:

id int(X) PRIMARY auto increment
email varchar(X) UNIQUE
password_hash varchar(64)
password_salt varchar(6)
language tinyint(1)
time_offset varchar(5)
secret_question_id tinyint(3)
secret_question_answer varchar(X)
name varchar(X)
last_name varchar(X)
birthday datetime
address varchar(X)
address_complement(X)
city_id int(X)
city varchar(X)
state_id int(X)
state varchar(X)
country_id int(X)
postal_code int(X)
phone_regional_ext int(X)
phone int(X)
cellphone_regional_ext int(X)
cellphone int(X)
ts_register datetime
ts_last_update timestamp NULL on update CURRENT_TIMESTAMP
status tinyint(1)

Things marked with X I still need to check and see an acceptable size or correct field type.

As for state and state_id as well as city and city_id that is considering countries I don’t have that kinda of data available to allow the users to input it by themselves or select one available with in the system.

  • 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-26T14:16:01+00:00Added an answer on May 26, 2026 at 2:16 pm

    Security issues
    Note that the secret question undermines your whole security system. because you are storing the secret answer AND the secret question in the clear.

    I recommend not using it. Email a reset password to the confirmed email address instead.

    If you must use the mistaken notion of the secret question (the answer to which is an easy google on the user’s Facebook page).
    At least store the answer as:

    answer_hash = SHA2(CONCAT(salt, lowercase(answer)),512)
    

    Should I also have a username and allow the user to pick which one he wants to use to login ? Does that bring any advantages ?

    • As a user I prefer the email address.
    • It is unique, I can never remember my username, but the email address is easy.
    • The email address does double duty as communication link to the user.
    • If you must have the email address, adding a username is just extra effort with no benefits.
    • If a username must be unique, you’re putting further burden on the user (nobody wants to be named snowwhite45875 because snowwhite 1..45874 are already taken)

    •Should I use more then one table ? •why ? when ? any gains other then organization ?

    I don’t think that’s needed, 1 table will do fine for now and it will simplify your database.
    If you want to split off data later into 2 tables, you can use a view to combine the tables.

    •What about when I need to retrieve it with inner or left joins wouldn’t that be bad in a way ?

    Optional data is retrieved using a left-join.
    Data that links 1-to-1 is retrieved using an inner join.

    If you join on primary keys it will not take a huge amount of time, but it will still take time.

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

Sidebar

Related Questions

On most common platforms (the most important being x86; I understand that some platforms
I'm refactoring some code so that my app will pull data from a website
Most of experienced programmer knows data alignment is important for program's performance. I have
What is the most important features a IOC container should contain? You can easily
What are the most important patterns you should know, when developing testable n-tier line
I am a firm believer in the idea that one of the most important
What is most important at this time? I know that I can acquire programming
I'm looking for a basic software for statistical analysis. Most important is simple and
I'm designing a tool using Java 6, that will read data from Medical Devices.
I have a nightly SSIS process that exports a TON of data from an

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.