问题
Given the schema below, how can a notification system be incorporated?
Users need to be notified when someone comments on their Picture or SaleItem along with when someone makes a bid on their SaleItem (through Purchase Offer).
The ultimate goal is to have a notification system that will handle SMS, Email, and an internal system messaging system. The complexities of those options will be worked out but I need the basic data model from which they can be built upon.
MySql is the DB being used but I don't believe that should affect the data model.
Thanks
回答1:
Setup up a table for holding the notification information and set up a trigger to write to this table whenever there is an an action in the system (lets say new bid).
then your scheduler should pick this new notification and sends email/sms.
来源:https://stackoverflow.com/questions/5362201/notification-system-design