The user can enable or disable notification settings for his account, for notifications, such as Changed account profile information, Received new message, etc.
The notification can be sent by email or to a mobile phone (push or sms), the user can have only 1 email and many mobile devices.
Is there a way to improve the following database design or will you do it differently?
tell me thanks
USER_NOTIFICATION_SETTING Id UserId Notification_SettingCode NotificationTypeCode UserDeviceId -- the mobile deviceid IsEnabled -- true (notification is on), false (notification is off) NOTIFICATION_SETTING Code - eg 1001, 1002 Name -- eg Changed Account Profile Information, Received New Message etc NOTIFICATION_TYPE Code - eg 1001, 1002 Name -- eg Email, SMS, Push USER_DEVICE -- the mobile phone device information etc...etc...
source share