ScheduledPushNotifications


Description

This table contains push notifications that will be pushed out at a scheduled time

Columns

Column Type Size Nulls Auto Default Children Parents Comments
id uuid 2147483647 gen_random_uuid()
ScheduledPushNotificationRecipients.scheduledPushNotificationId ScheduledPushNotificationRecip_scheduledPushNotificationId_fkey C
ScheduledPushNotificationTranslations.scheduledPushNotificationId ScheduledPushNotificationTrans_scheduledPushNotificationId_fkey C
type enum_ScheduledPushNotification_type 2147483647 null
title text 2147483647 null
message text 2147483647 null
sendAt timestamptz 35,6 null

Date that notification will be pushed. If null, push notification immediately

hasSent bool 1 false

Whether the push notification has been sent

userId uuid 2147483647 null
Users.id ScheduledPushNotifications_userId_fkey R

User ID that scheduled this push notification

createdAt timestamptz 35,6 now()
updatedAt timestamptz 35,6 now()
label varchar 300 null
redirectionUrl text 2147483647 null
isPromotion bool 1 false

Indexes

Constraint Name Type Sort Column(s)
ScheduledPushNotifications_pkey Primary key Asc id
ScheduledPushNotifications_label_key Must be unique Asc label

Relationships