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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:34:16+00:00 2026-06-14T23:34:16+00:00

I am building a basic social network for fun and would like to divide

  • 0

I am building a basic social network for fun and would like to divide the site’s content based on a user’s email address. All functionality would be the same across the entire site, only the content would differ.

For example if a user signs up with a @berkeley.edu email address they can only friend, and comment, and view etc. other @berkeley.edu users. And users with @uoregon.edu email addresses can only friend, comment, and view, etc. other @uoregon.edu users.

What would be a good technique to accomplish this?

  • 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-14T23:34:17+00:00Added an answer on June 14, 2026 at 11:34 pm

    You could multi-tenant the system keyed off of the email domain – then all queries would operate off of the that tenant key.

    For example…

    Tenant Table

    id, domain (1, ‘berkeley.edu’)

    id, domain (2, ‘uoregon.edu’)

    User Table

    id, tenantId, email (1, 1, ‘steve@berkeley.edu’)

    id, tenantId, email (2, 1, ‘fenton@berkeley.edu’)

    id, tenantId, email (3, 2, ‘steve@uoregon.edu’)

    Whenever you run a query, you include:

    WHERE tenantId = 1
    

    To only show users, content, messages, images etc from Berkeley.

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

Sidebar

Related Questions

I'm building a basic photo uploading system which works like: User registers by providing
I'm building a social network. For each user, I'm going to expect a lot
I'm building a basic site and thought of using the flatpages app for a
I am building a basic Image editor. In my app, if the user wants
I'm building a basic search functionality, using LIKE (I'd be using fulltext but can't
I'm building a basic function, which builds out Mysql WHERE clauses based on how
As a learning exercise I'm building a basic scientific computation environment based on .NET.
So I'm building a basic Q&A site-- Each topic has a series of questions
I'm building a basic search function for my site. Realising that the most useful
I'm building a basic calculator app for iPhone. I've got all the basics in

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.