Лучший подход к сохранению уведомлений и сообщений
I am developing a notification and post system. I have done a database design where there are user ids for who is sending notification, to whom its being sent and notification text field. Now my question is, should I save the notification with html format what I'll show in front end, like user name, user image etc or just save the raw data and make a join query with users table while fetching the notification. What is the best structure? And in facebook we can see post title like "ABC has shared BCD's post". And link on ABC and BCD. So do facebook save the full format in table or format it while fetching the data? Can you please help me with the good approach please.
Что я уже пробовал:
Я разработал базу данных, как указано выше.