I am trying to implement the notification for my website catering information from 3 different user. The three users triggers different events.
I have tried to implement it by having two tables
Notification_Type(table name)
- notificationType_id(int,notnull,autoincrement)
- name(varchar)
- heading(varchar)
- origin_table(varchar)
Notification_Detail(table name)
- notification_id(int,notnull,autoincrement)
- notificationtype_id(int)
- generated_by(varchar,45)
- origin(int)
- generated_for(int)
- generated_on(timestamp)
The problem i am facing is this schema is unable to cater information for a group of user to which the notification is related to. Also i am unable to figure-out how to implement read/unread.
Now the notification reach for different event is different according to the event. i.e When a user post something in the group the notification should be for all the members. But some one comment on the post it should notify on the user who owns the post.
Please Help me with this. Thanks