Open dsychin opened 2 years ago
notif_subscription
notif_subscriber
notif_queue
notif_log
need to keep track of push subscription IDs
User should be able to view the notif_queue in the web app so that they can see the list of jobs that they were notified for?
sequenceDiagram
Participant User
Participant Jobbuzz
Participant FCM
User->>Jobbuzz: Subscribe to push/email notification
Jobbuzz-->>User: OK
loop Every hour
Jobbuzz->>DB: Check for new jobs since last processed
DB -->> Jobbuzz: Found new matching user's filters
Jobbuzz->>SMTP: Send emails if subscribed
SMTP-->>Jobbuzz: OK
Jobbuzz->>FCM: Send webpush if subscribed
FCM-->>Jobbuzz: OK
Jobbuzz-->>DB: Log results
DB-->>Jobbuzz: OK
end
User should be able to specify filter parameters
Notify daily?
Notification medium
[x] Create database schema
[ ] Create system architecture
[x] Create sequence diagram
[ ] Implement