I have to create a notification system in Codeigniter
.
In this notification two types of user, One is Buyer and Second is Seller.
Buyer Buy or Review any Seller's product/order then this notification should be sent to seller.
Same is seller review to any buyer then this notification should be sent to that Buyer.
All Rating/Review and order system is working. But I have to built a notification for this.
I am little confuse on notification table structure. Can any mysql, sql or sql-server expert
help me on this?
NOTE:- I am using below table structure for this. But I don't think this is good.
notification_id
user_id
module
action_type
added_by
read
read_date
Module is where it was performed at, and action_type is what happened (comment, deletion, added, etc). Read is if it's already been viewed, and read_date is when it was viewed.
Click Here for reference from where I got this
Thanks
It should be like this:
column_name
notification_id
product_id -> for which product buyer has notified
action_type -> 'comment','like'
added_by -> who gave the notification
read -> 0 or 1
read_date -> datetime
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.