在制作一个小型社区网站时,我正在寻求一些建议,以了解如何最好地设计一个表,该表将存储数据作为流拉取,例如:
User X has added a friend!
User Y has commented on a post!
User X changed their profile picture!
User X has changed their motto!
目前这是我的设置,但在我继续想知道我是否走在正确的轨道上之前
update_id int PK
member_id int FK
friend_id int FK
update_action text
update_time datetime
update_hidden tinyint
目前,我计划运行一个额外的插入查询,以便在用户执行此操作时使用每个活动更新此表,但不确定这是否是最好的,或者在我的情况下是完成此操作的好方法。感谢您抽出宝贵的时间,我们将不胜感激任何提示或建议。