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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T19:04:56+00:00 2026-05-17T19:04:56+00:00

I am trying to create a system which allows local network users to collaborate

  • 0

I am trying to create a system which allows local network users to collaborate content together.

Requirements: The user should be able to:

  1. create content,
  2. edit content (content created by anyone),
  3. records should be kept on who edited what and when,
  4. should easily be able to go back and forth between edits,
  5. add comments to pages,
  6. should be able to assign rights to created/edited pages (i.e. who can view them)

I am trying to come up with some database structures, but need some help. Could someone please help me create a good structure for such requirements?

EDIT:

This is what I have so far:

page table -
page_id
title
content
date
inactive (0,1)
author

rights table -
page_id
user_id
view (0,1)
edit (0,1)
delete (0,1)

history table -
page_id
title
content
date
inactive (0,1)
author

How could this be improved?

  • 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-17T19:04:56+00:00Added an answer on May 17, 2026 at 7:04 pm

    I think most of what you had is fine. I’m just showing additions or changes in the design, quick but rough estimate:

    user
    ----
    user_id
    network_username ("Or Active Directory Name or whatever, you get the idea.
        Using user_id as a foreign key in other tables instead of the network
        name makes it easier if account names change.")
    
    role
    ----
    role_id
    name
    
    user_role
    ---------
    user_role_id
    role_id
    user_id
    
    page
    ----
    page_id
    author_user_id
    
    page_comment
    ------------
    page_comment_id
    parent_page_comment_id ("Self reference to allow for nested comments")
    page_id ("Even though you could conceivably look up page_id via
        parent_page_comment_id if you're dealing with a nested comment, that
        would involve N nested queries... so it's probably good to require this
        field be populated for every single record")
    user_id
    
    
    permission
    ----------
    permission_id
    page_id
    role_id ("To simplify, I'd stick solely to role-based access.")
    
    history
    -------
    history_id ("If you have high-volume edits, you may need to use date AND this
        to establish the order changes were made in.  Probably safest to use both
        right from the start.")
    page_id
    user_id ("caveat:  you won't know what role the user was in when a change was
        made.")
    old_title ("I'd prefix "old_" to all the fields just to make it intuitively
        clear.")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create routes which follow the structure of a tree navigation system,
I'm trying to create system users with a php script securely, In that, I'd
I'm trying to create a basic system that will allow only specific users to
I am currently trying to create a menu system for a game and cannot
I'm trying to create an access control system. Here's a stripped down example of
I'm trying to create an OS X Service. I found Providing System Services in
Trying to create a user account in a test. But getting a Object reference
I am trying create a WCF service that leverages the WPF MediaPlayer on the
Trying to create a QtRuby application, I get the following error: /usr/lib64/ruby/site_ruby/1.8/Qt/qtruby4.rb:2144: [BUG] Segmentation
Trying to create my first iPhone app that would play back audio. When I

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.