Stu Mason
Stu Mason

Activity

StuMason/api.rezzy.one
Rezzy
TypeScript
Pull Request Opened

PR #65 opened: Add notification infrastructure foundation

Summary

  • Adds NotificationType enum with 5 notification types (reservation_confirmed, reservation_reminder, reservation_cancelled, waitlist_update, promotional_offers)
  • Adds NotificationPreference model with email/push/sms channel flags per notification type
  • Adds PushSubscription model for web push subscription storage
  • Adds User model relationships and wantsNotification(NotificationType, channel) method
  • Adds UserObserver to automatically create default preferences when users register
  • Adds Laravel notifications table for queued notifications

Test plan

  • All 125 tests pass
  • New users get 5 default notification preferences on registration
  • createQuietly() bypasses observer for test isolation
  • wantsNotification() correctly checks user preferences

Closes #10

Stu Mason + AI [email protected]

+859
additions
-2
deletions
19
files changed