Skip to content

Design and implement chat data models (MongoDB: PersonalChatModel, ChatEntryModel) #1

@aiyu-ayaan

Description

@aiyu-ayaan
  • PersonalChatModel: Represents a one-to-one chat session between two users. Stores metadata such as the last message, its timestamp, unread message count, and chat status (pinned/archived). Each chat is uniquely identified and links two user IDs.

  • ChatEntryModel: Represents an individual message within a chat. Stores the message content, type (text, image, etc.), optional media URL, reply information, timestamp, and read status. Each entry is associated with a chat and a sender.

These models are designed for efficient storage and retrieval of chat sessions and messages in MongoDB, supporting features like media messages, replies, and chat organization.

Sub-issues

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions