NotificationSettings table
The NotificationSettings table in the FitStack - V2 schema has 42 columns, keyed by Id, with 1 foreign key to UserSettings.
41 columns, one per event kind, each a `NotificationChannel` defaulting to PushNotification. Every new notification kind is a schema migration — the coaching domain adds five (see 72), which is the point at which a `(UserId, EventKey, Channel)` row-per-preference table starts to pay for itself. Flagged, not changed, to keep v2 diffable against production. No audit columns.
Columns (42)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null, references UserSettings.NotificationSettingsId | |
| HealthTrends | integer | not null | |
| NewsHealthTrends | integer | not null | |
| HealthReminders | integer | not null | |
| HealthTips | integer | not null | |
| HealthAlerts | integer | not null | |
| HealthMilestones | integer | not null | |
| HealthChallenges | integer | not null | |
| HealthChallengeInvitations | integer | not null | |
| HealthChallengeResults | integer | not null | |
| HealthDataSync | integer | not null | |
| HealthDataAnomalies | integer | not null | |
| WorkoutReminders | integer | not null | |
| WorkoutSummary | integer | not null | |
| WorkoutInvitation | integer | not null | |
| SocialActivity | integer | not null | |
| CommentsOnPosts | integer | not null | |
| LikesOnPosts | integer | not null | |
| NewFollowers | integer | not null | |
| Mentions | integer | not null | |
| DirectMessages | integer | not null | |
| EventInvitations | integer | not null | |
| EventReminders | integer | not null | |
| Challenges | integer | not null | |
| ChallengeInvitations | integer | not null | |
| ChallengeReminders | integer | not null | |
| ChallengeResults | integer | not null | |
| MealPlanReminders | integer | not null | |
| MealPlanSummary | integer | not null | |
| NutritionTips | integer | not null | |
| ProductScanProcessed | integer | not null | |
| ProductScanFailed | integer | not null | |
| NewFeatures | integer | not null | |
| CreatorPlanFeatured | integer | not null | |
| CreatorPlanUnfeatured | integer | not null | |
| CreatorFirstSale | integer | not null | |
| CreatorSaleCompleted | integer | not null | |
| CreatorRevenueMilestone | integer | not null | |
| CreatorImpressionMilestone | integer | not null | |
| CreatorEngagementMilestone | integer | not null | |
| CreatorFollowerMilestone | integer | not null | |
| CreatorWeeklyRecap | integer | not null |
Relationships
NotificationSettings.IdreferencesUserSettings.NotificationSettingsId