[英]Database Table structure for notification system for codeigniter
I have to create a notification system in Codeigniter
. 我必须在
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? 可以使用任何
mysql, sql or sql-server expert
帮助我吗?
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). 模块是在其上执行的,而action_type是所发生的(注释,删除,添加等)。 Read is if it's already been viewed, and read_date is when it was viewed.
如果已被查看,则为read;已被查看,则为read_date。
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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.