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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:30:01+00:00 2026-06-13T13:30:01+00:00

In an application, that allows registered users to create pages which can be edited

  • 0

In an application, that allows registered users to create pages which can be edited by other registered users, what is the correct way of distinguishing a normal user from the creator of the page, both in UML and SQL.

In UML, I have

--------  accesible by --------  
| Page |  ------------ |User  |
--------               --------
  |created by            / \
  |                       | 
  |                       |
---------   is a          |
|Creator|------------------
---------

Now, I don’t think this is the correct UML. So, what would be the correct UML representation of what I am trying to express. And eventually, I would like to create SQL database for the same. In that case, what would the Database Schema look like?

  • 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-13T13:30:03+00:00Added an answer on June 13, 2026 at 1:30 pm

    As always you have multiple possibilities – for Model (UML) and Code (SQL, or whatever).

    Model A) like you depicted above
    Model B) Only a User class, no Creator. User is target of both associations from Page: ‘accessible by’ and ‘created by’

    The difference between the models is that you can distinguish between users who can create pages and those who cannot in Model A. Model B only allows to distinguish users who already have created pages and those who have not.

    Both models might be implemented by both implementations.

    Code 1) Use 5 tables: Page, User, Creator, PageToUser, PageToCreator
    Code 2) Use 4 tables: Page, User, PageToUserAccessible, PageToUserCreated (and possibly a flag ‘creator’ in User)
    Code 3) Use 3 tables: Page, User, PageToUser and a flag “created” in PageToUser (plus possibly a flag “creator” in User)

    Got it? Everything is ‘correct’ – It’s up to you 🙂

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

Sidebar

Related Questions

I want to create a web application that allows users to sign up, register
I have a web application that allows users to create an account, and in
I have a web application that allows users to enter search criteria and the
I have a really simple Rails application that allows users to register their attendance
I have a web application that registered users use. These users have good email
I have an appengine application that allows users to register themselves. These users must
I'm trying to build an application that allows users to drag files from Finder
I am currently creating an application that uses OmniAuth to create and authenticate users.
We are developing and web application which allows users to register for certain events.
I'm creating an application that allows the user to store information about their classes.

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.