Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update messages.schema.ts #268

Open
wants to merge 1 commit into
base: dove
Choose a base branch
from

Conversation

neerajbachani
Copy link

This pull request modifies the messageSchema in the code by adding a new optional property called parentId of type Number. This new property allows messages to have a parent ID, enabling the implementation of a parent-child relationship for message replies. The modified messageSchema now includes the following properties:

id of type Number
text of type String
createdAt of type Number
userId of type Number
user referencing the userSchema
parentId of type Optional(Number)
By adding the parentId property to the schema, this pull request allows for the association of parent messages with their corresponding replies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant