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)

Columns of the NotificationSettings table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null, references UserSettings.NotificationSettingsId
HealthTrendsintegernot null
NewsHealthTrendsintegernot null
HealthRemindersintegernot null
HealthTipsintegernot null
HealthAlertsintegernot null
HealthMilestonesintegernot null
HealthChallengesintegernot null
HealthChallengeInvitationsintegernot null
HealthChallengeResultsintegernot null
HealthDataSyncintegernot null
HealthDataAnomaliesintegernot null
WorkoutRemindersintegernot null
WorkoutSummaryintegernot null
WorkoutInvitationintegernot null
SocialActivityintegernot null
CommentsOnPostsintegernot null
LikesOnPostsintegernot null
NewFollowersintegernot null
Mentionsintegernot null
DirectMessagesintegernot null
EventInvitationsintegernot null
EventRemindersintegernot null
Challengesintegernot null
ChallengeInvitationsintegernot null
ChallengeRemindersintegernot null
ChallengeResultsintegernot null
MealPlanRemindersintegernot null
MealPlanSummaryintegernot null
NutritionTipsintegernot null
ProductScanProcessedintegernot null
ProductScanFailedintegernot null
NewFeaturesintegernot null
CreatorPlanFeaturedintegernot null
CreatorPlanUnfeaturedintegernot null
CreatorFirstSaleintegernot null
CreatorSaleCompletedintegernot null
CreatorRevenueMilestoneintegernot null
CreatorImpressionMilestoneintegernot null
CreatorEngagementMilestoneintegernot null
CreatorFollowerMilestoneintegernot null
CreatorWeeklyRecapintegernot null

Relationships