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

[notifications] - Add notification model #1071

Closed
sachalifs opened this issue Oct 5, 2015 · 0 comments
Closed

[notifications] - Add notification model #1071

sachalifs opened this issue Oct 5, 2015 · 0 comments
Assignees

Comments

@sachalifs
Copy link
Contributor

It should have:

  • id: ObjectId
  • type: enum with the type of notification, e.g.: new topic, invited to forum, etc
  • createdAt: timestamp
  • seen: boolean indicating wether the notification was seen by the user
  • data: Mixed containing any data the notification needs, like reference to other documents for instance
  • user: ObjectId reference to the user
  • frontend: boolean indicating wether it's a backend operation (send signup email) or a business logic notification (new topic published)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant