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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| user_id | uuid | not null, references users.id | |
| type | notification_type | not null | |
| in_app | boolean | not null | |
| boolean | not null | ||
| push | boolean | not null |
Relationships
notification_settings.user_idreferencesusers.id