You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.