push_subscriptions table

The push_subscriptions table in the Reddit Clone Database Schema schema has 4 columns, with 1 foreign key to user_devices.

Push preference is per device per type, because a person reasonably wants reply pings on their phone and nothing on their desktop.

Columns (4)

Columns of the push_subscriptions table
ColumnTypeConstraintsDescription
device_iduuidnot null, references user_devices.id
notification_typenotification_typenot null
is_enabledbooleannot null
updated_attimestamptznot null

Relationships