Skip to content

Schema Spec #76

@ErikEverson

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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions