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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T20:59:56+00:00 2026-06-16T20:59:56+00:00

I have an application which handles the creation of different shop entities. The process:

  • 0

I have an application which handles the creation of different shop entities.

The process:
1. User registers to the website
2. User creates a shop (with various attributes)

What I have so far for database tables is:

[USER]  
user_id

[USER_TO_SHOP]  
user_id  
shop_id

[SHOP]  
shop_id

The above design covers the need for 1 user to have many shop entities under their account.
What I want to achieve now, is to have shop entities which are standalone but also have shop entities which are a part of group of shops

Chain of Shops example:
McDonalds Address X Chicago
McDonalds Address X New York
McDonalds Address X Boston

How should I proceed with my database design in order to support chain of shops but also standalone ones? Best practices are really appreciated!

*by standalone I mean a shop entity that does not belong to a chain

  • 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-06-16T20:59:57+00:00Added an answer on June 16, 2026 at 8:59 pm

    From what you’re saying, a shop can belong to between 0 and 1 chains? If so, I would simply add one extra table and add a foreign key to the shop table:

    [CHAIN]
    chain_id
    chain_name
    
    [SHOP]
    shop_id
    chain_id
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Android application which handles a particular type of file. It registers
I have a application which handles picture chosen from gallery. But there is a
I have a (C, Linux) application which handles Ctrl-C SIGINT by shutting down. I'd
I have an application which uses code that produces various types of objects and
Hey Overflow, I have an application which serves as a user interface for a
I have a class in my application which handles all the controls and all
I'm working on a java swing application which handles Customer management for a shop.
I have built an application which handles with wireshark files (pcap files) and in
I have a form in my asp.net mvc(C#) application which handles some dynamic controls.
I have a class which handles execution of an exe process, which is a

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.