-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Room:
_id: String
name: String
messagesId: String // collection that contains messages
collectionId: String?
createdBy: String // Id of user who created this
createdOn: Date
isGenerated: Bool // Flag to filter out of rooms screen
Messages:
_id: String
createdOn: Date
roomId: String // messages, DM_messages
text: String
userId: String. // Who made it's ID
largeImageToken: [String: (any Sendable)]?
thumbnailImageToken: [String: (any Sendable)]?
archivedMessage: String?
isArchived: Bool
User:
_id: String
name: String
profilePicture: [String: (any Sendable)]? // Ditto attachment for profile
thumbnailIProfilePicture: [String: (any Sendable)]? // Ditto attachment for profile thumbnail
subscriptions: [String : Date?] // Id of chat room and last time viewed. Used to calculate number of unread messages
mentions: [String: [String]] // Id of the chat room the message is from and then array of messageId's there mention occurred