Notification Model#
location /notification/models.py. This app contains records of communications with users (normal and coach), including notification and messages.
Models#
notification#
each entry is a notification to users on front end
user=> fk related touser.User, indicate the recipient of the notificationscoach=> fk related touser.User, indicate the user being mentioned in the notification
Inbox#
each entry is a record of admin-frontend-triggered email to coach (mostly)
sender=> fk related touser.Userrecipient=> fk related touser.Userbody=> html string, will be processed by django html templates
WhatsappOptInID#
created for future implementation of whatsapp notifications, each entry indicates a record of user opt in for whatsapp api