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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:10:01+00:00 2026-05-30T21:10:01+00:00

Im having a hard time wrapping my head around a design flaw and I’m

  • 0

Im having a hard time wrapping my head around a design flaw and I’m really hoping the community can help me out. My current design is:

SUBMISSIONS table

submission_ID (pk, int)
company_id (fk, int)
product_id (fk, int)
vendor_id (fk, int)
category (VARCHAR)
price (INT)
approval_status (TINYINT)
notes (MEDIUMTEXT)

VENDOR table

vendor_ID (pk, int)
vendor_name (VARCHAR)    

COMPANY table

company_id (pk, int)
company_name (VARCHAR)

PRODUCTS table

product_id (pk, int)
product_name(VARCHAR)

My Project is vendors submitting products to companies for review. The companies have a dashboard that contains a grid that pulls up all products submitted by vendors to them, they review them, then either approve or deny the products for use.

My issue is this…When pulling up the pending products grid I am grouping the submissions by their category. This way if there are 100 products in a category(which is common), they only have to see the category, not the individual products. They can enter notes on the group of submissions in a modal window that pops up from the grid. The id of the window is the first submission in the group and that submission is where the notes are stored. My major concern is that they can approve or deny submissions from the group individually so what happens when they enter notes for the group which is attached to the first submission in the group and then they deny that first submission. Now when they log in again all the notes for the group will seem to be gone because the notes are attached to that first submission which now sits in their denied products folder. There must be a better way of tracking notes to the group originally and then making those notes available to the individual submissions later but I’m not seeing it with my limited database design skills. Any advice at this point is helpful.

  • 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-30T21:10:03+00:00Added an answer on May 30, 2026 at 9:10 pm

    My suggestion is

    • CREATE TABLE categories (id int AUTO_INCREMENT PRIMARY KEY, name VARCHAR(250) not NULL, UNIQUE INDEX(name), notes MEDIUMEXT)
    • replace category (VARCHAR) with category (fk, int) in SUBMISSIONS
    • drop notes (MEDIUMTEXT) in SUBMISSIONS
    • Now attach notes to category table
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having a hard time wrapping my head around this and need some help
I'm having a hard time wrapping my head around this, and I'm hoping someone
For some reason i'm really having a hard time wrapping my head around HABTM
I'm having a hard time wrapping my head around Java generic types. Here's a
I'm having a hard time wrapping my head around the big-O notation for a
I'm having a hard time wrapping my head around non-static nested classes in Java.
I'm having a very hard time wrapping my head around this problem (it might
I'm having a hard time wrapping my head around when LINQ accesses the database,
I'm a git green belt and having a hard time wrapping my head around
My title is terrible but I'm having a hard time wrapping my head around

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.