Comments (8)
Thanks for this. Some comments:
entity_id
only captures the entity's id. But we can't tell what entity that is.- We need to be able to know if a notification has been read by its recipient.
- What will be the purpose of the events table?
- We need to know when the notification was added.
from compa.
- We could add entity_type to capture if its a post/comment etc.
- Yeah a read field will be added to the notification subscribers.
- Yeah I think it is redundant
- Yeah sure a createdAtDate will be added.
from compa.
What about making it modular by separating the type of notifications ?
We have have a different table for each type of notifications like comments notifications, post notification, community notifications etc.
In this case each notification table will store its actor id and the comment/post /etc id
We will fetch from notification subscribers and join all the notification tables.
from compa.
What benefits do we get from doing it like this?
from compa.
i was confused with how we will fetch the post/comment/etc of the notification with the initial approach and hence this new suggestion.
from compa.
You need to update the issue with the new fields, etc.
from compa.
Schema design
Notification {
id
message
actor_id
entity_id
entity_type
dateCreated
}
NotificationSuscribers{
id
notification_id
user_id
read
}
from compa.
Completed with #64
from compa.
Related Issues (20)
- School Request: UPSA - University of Professional Studies Accra HOT 2
- School Request: UDS - University for Development Studies, Nyankpalaa HOT 1
- RFC: (On Going) Class Schedule Generated Discussions Post HOT 10
- Favicon HOT 1
- Donβt allow adding a lesson to non-current sem/year
- Application error HOT 1
- Styling Issue: Dark Mode Text Visibility HOT 2
- Backend validation of email address HOT 1
- Improve error UX for conflict errors HOT 1
- Why Request method checks ? HOT 2
- Instrumentation
- School Request: <Radford University College>
- School Request: <Ho Technical University>
- RFC: User Profiles HOT 1
- Marketplace Design HOT 3
- Username field on login page is case-sensitive HOT 1
- Feat: Edit Post
- Error and Feature Enhancement HOT 1
- Error during Authentication HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compa.