[英]How to structure database fo user notification
I'm currently working on a study app and I need to create a database table to store notification for users, but therein lies the dilemma.我目前正在开发一个学习应用程序,我需要创建一个数据库表来存储用户的通知,但这就是一个难题。 I'm not too familiar with database structuring.
我对数据库结构不太熟悉。 I intend to have customized notification for users and also notification that will be general, that is for every user on the platform.
我打算为用户定制通知,也为平台上的每个用户提供通用通知。 I don't know how to go about it, should I create a database table for each user or a common database table for all users but specify the user id?
我不知道如何去做,我应该为每个用户创建一个数据库表还是为所有用户创建一个公共数据库表但指定用户 ID? Thanks.
谢谢。
I used model from this post: https://webcache.googleusercontent.com/search?q=cache:nFWtBYOaZiEJ:https://blog.osmosys.asia/2017/04/26/design-notification-system/+&cd=14&hl=en&ct=clnk&gl=vn我使用了这篇文章中的模型: https : //webcache.googleusercontent.com/search?q= cache: nFWtBYOaZiEJ : https : //blog.osmosys.asia/2017/04/26/design-notification-system/+&cd= 14&hl=en&ct=clnk&gl=vn
I think it's useful for every notification biz model我认为它对每个通知业务模型都很有用
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.