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

  • Home
  • SEARCH
  • 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 130651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:58:54+00:00 2026-05-11T05:58:54+00:00

I’m currently working on creating electronic version of various request forms. Each form will

  • 0

I’m currently working on creating electronic version of various request forms. Each form will more than likely require some specific data about the user. For sake of argument, here’s a simplified version.

       Form                                 Required Info  ¯¯¯¯¯¯¯¯¯¯¯¯¯¯              ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯               Mileage Claim               Does user have a lease car?  Overtime Claim              Contract type (permanent/temp). Salary  Procurement Request         User role (supervisor, technician) 

I currently don’t know how many forms in total will end up on this system, or what other extra information about the user they may need. But it’s safe to assume they’ll all require standard stuff like name, email, payroll number etc.

What approach would you take to model this? Throw it all into the users table or create lots of tables that reference User?

  • 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. 2026-05-11T05:58:54+00:00Added an answer on May 11, 2026 at 5:58 am

    Throwing it all into the users table is a recipe for a growing ‘Ball of Mud‘ pattern. Eventually you’ll have a table with 300 fields – first name, last name, address, work address, summer address, ownsaleasecar, likespizza, ….

    I’d have them all share a user object. The user would reflect what they all held in common. If they used different kinds of users (e.g. some where people who had personal information, and some were, say, employees with entirely different datasets) it might be reasonable to have users and employees, or some such. The main point is that I wouldn’t try to shoehorn different types into the same table.

    edit- an additional point is that glomming different datatypes together makes enforcing integrity impossible – suppose you have ‘RentalCarUser’ and ‘EmployeeUser’ grouped into the same table, and you have the field ‘DoesUserHaveLeaseCar’ for the RentalCarUsers. Well, then, it’s going to be null or have a meaningless default for the Employees, and if you actually want to enforce that every rental car user has to have that information, you can’t enforce it on the database level (field !=null) because you’ve got additional users for whom that value isn’t applicable. Adding a trigger to fill in ‘NA’ for the Employees doesn’t help, because you’ve then got a whole bunch of records with ‘NA’ and you can’t easily tell if that’s correct or missing data.

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

Sidebar

Ask A Question

Stats

  • Questions 109k
  • Answers 109k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Yes, I believe you want to search on field versus… May 11, 2026 at 9:29 pm
  • Editorial Team
    Editorial Team added an answer Split on whitespace (\s) not on non-word (\W) and you… May 11, 2026 at 9:29 pm
  • Editorial Team
    Editorial Team added an answer Your wait() function basically waits for multiple objects and then… May 11, 2026 at 9:29 pm

Related Questions

I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I am currently running into a problem where an element is coming back from
Seemingly simple, but I cannot find anything relevant on the web. What is the
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.