Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id | uuid | 2147483647 | gen_random_uuid() |
|
|
|||||||||
| 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 |
|
|
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 |

