简体   繁体   English

如何为用户通知构建数据库

[英]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.谢谢。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM