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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:00:56+00:00 2026-05-22T12:00:56+00:00

In the following database design, how do I mark an unread message, so we

  • 0

In the following database design, how do I mark an unread message, so we know who read the message either the sender and recipient?

(ie When person X sends a message to person Y, the message will be marked as unread for person Y until person Y reads the message, but its marked as read for person X because he sent the message).

MESSAGE

  • Id (PK)
  • Subject
  • Content
  • MessageTypeId (FK) – Message, Update (global board-cast), notifications etc
  • UserId (FK) – creator
  • CreateDate
  • ReadDate

MESSAGE_COMMENT

  • Id (PK)
  • MessageId (FK)
  • Content
  • UserId (FK) – creator
  • CreatedDate

USER

  • FirstName
  • LastName
  • Username
  • Password
  • IsActive
  • etc…etc…

MESSAGE_TYPE

  • Id
  • Code
  • Name

EDIT: it seems like the design is incomplete.

  • 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-22T12:00:56+00:00Added an answer on May 22, 2026 at 12:00 pm

    You could add a Read table which links user ID and message ID. When a message is created the application automatically puts in the UserID of the creator and the MessageID. Then when the receiver reads the message it records the ReceiverID and the MessageId.

    So while there is no record for ReceiverID and MessageID, the message will appear unread for the receiver.

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

Sidebar

Related Questions

sometimes i face the following case in my database design,, i wanna to know
How would you design a database to support the following tagging features: items can
I have a test database design like this: The following is the pseudo-code: //BhillHeader
I am grappling with a database design issue at the moment, I will present
What's the best database design for the following problem: I have a product with
I'd like to get some advice on database design. Specifically, consider the following (hypothetical)
I know that key-value pairs aren't good database design, aren't normalized etc however in
I have the following database design question: I have a record that contains the
I have been thinking about database design lately and I have the following question:
i'm new to database design, i'm just looking at the following two approaches to

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.