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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:49:01+00:00 2026-06-15T04:49:01+00:00

I’m curious what the database structure (mysql) might be for something like Google+ circles,

  • 0

I’m curious what the database structure (mysql) might be for something like Google+ circles, and how they keep track of user-defined circles. I’d like to implement something similar for an app, where users can choose to share content with certain other users.

Essentially, a user can place a friend into a group he has defined to filter the content that friend can see. As of now, I have a fairly simple implementation of a friends system – it is a standard normalized database which includes a users table and a friends table.

Can anyone shed light on how one might go about setting up a database structure for “groups” or circles? I thought about adding an extra field to the Friends table, which would be a foreign key to a groups table. However, I can see this becoming unwieldy very quickly, especially if users can define groups and place friends in any number of groups.

Is there perhaps a quick implementation of this, or one that doesn’t require the computing power of Google’s servers?

  • 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-15T04:49:02+00:00Added an answer on June 15, 2026 at 4:49 am

    The best approach I can think of is the following:

    users table
    friends table (2 userids and maybe one field for “accepted” or “not yet”) – I recommend two way friendship
    groups table (group_id, owner(or not), description)
    group_participants table (group_id,user_id and maybe one field for “accepted” or “not yet”)

    And when you want to assign something, you can have various options, including “group” or you can append the list of groups to the list of users with some sort of letter like:

    • john
    • kate
    • lab (Gr)
    • friends (Gr)

    Also, assigning content to a group can be managed in two ways:
    1) To actually assign permission to a group_id (This makes the group of viewers editable after the content is assigned)
    2) Just assign the permission to each user of the group on the fly (This makes the assignment endure kicking someone out of a group)

    If you go by option 1, then you can make assigning permission by “hand picking” people work like a hidden custom group.

    Just my 2c

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
Let's say I'm outputting a post title and in our database, it's Hello Y’all
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I've got a string that has curly quotes in it. I'd like to replace
I am trying to render a haml file in a javascript response like so:
I would like to run a str_replace or preg_replace which looks for certain words
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I would like to count the length of a string with PHP. The string
I've tracked down a weird MySQL problem to the two different ways I was

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.