notification_settings table

The notification_settings table in the Reddit Clone Database Schema schema has 5 columns, with 1 foreign key to users.

One row per user per notification type with a column per channel. A missing row means the product default, which is what stops adding a new notification type requiring a backfill across every account.

Columns (5)

Columns of the notification_settings table
ColumnTypeConstraintsDescription
user_iduuidnot null, references users.id
typenotification_typenot null
in_appbooleannot null
emailbooleannot null
pushbooleannot null

Relationships

  • notification_settings.user_id references users.id