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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:31:58+00:00 2026-05-23T01:31:58+00:00

I am creating a scheduler web app that stores its data in a mysql

  • 0

I am creating a scheduler web app that stores its data in a mysql database, and right now I’m trying to figure out the best way to set up the tables in it.

It will support multiple users, and I want it to be able to handle a large user base (let’s say many thousands).

Each user will have some usual data associated with them (username, password, preferences) and also their events.

Each user can have anywhere from 0 to 1000s of events, with each event having information such as start time, end time, name, etc.

So there will be many of these:
User

  • username
  • password
  • preferences
  • events
    • name
    • start time
    • end time

another thing is, i’d like each individual event to be queryable. I’d like to be able to modify event # of ___ user.

How can I set this up so it’s not super complicated or really slow?

  • 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-23T01:31:59+00:00Added an answer on May 23, 2026 at 1:31 am
    user table
    user_id, username, password, preferences
    

    Make user_id as the primary key.

    event table
    event_id, user_id, name, start_time, end_time
    

    Make {event_id, user_id} a primary key.

    This should do? If you are expecting thousands of events where many events can be duplicates but related to different users, you may create an event table without user_id and then create a new table to hold {event_id,user_id} combination.

    PS: don’t store the password in plain text; consider moving preferences to separate table.

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

Sidebar

Related Questions

I'm creating an app that needs to be accessed by both a web front
I am trying to figure out a good way to handle recurring events in
I have a new web app that is packaged as a WAR as part
What are the different approaches for creating scheduled tasks for web applications, with or
I'm creating an ASP.NET web application to schedule tasks on our server from a
I have been tasked with creating a program that will generate an amortization schedule.
Creating a patch is very easy in SubVersion, With Tortoise, you right-click and select
Creating an XPathDocument with referenced DTD sometimes throws a web exception. Why?
When creating a web application, and lets say you have a User object denoting
I need to have a process that compiles daily data into an PDF that

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.