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 to user.User, indicate the recipient of the notifications

  • coach => fk related to user.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 to user.User

  • recipient => fk related to user.User

  • body => 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