Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | uuid | 2147483647 | public.gen_random_uuid() |
|
|
||||||
| UserId | uuid | 2147483647 | √ | null |
|
|
|||||
| platform | enum_PushNotification_platform | 2147483647 | null |
|
|
||||||
| registrationToken | text | 2147483647 | null |
|
|
||||||
| createdAt | timestamptz | 35,6 | now() |
|
|
||||||
| updatedAt | timestamptz | 35,6 | now() |
|
|
||||||
| countryCode | varchar | 100 | √ | null |
|
|
|||||
| appVersion | varchar | 100 | √ | null |
|
|
|||||
| deviceId | text | 2147483647 | √ | null |
|
|
|||||
| osVersion | varchar | 100 | √ | NULL::character varying |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PushNotifications_pkey | Primary key | Asc | id |
| PushNotifications_countryCode_idx | Performance | Asc | countryCode |
| PushNotifications_registrationToken_deviceId_unique_idx | Must be unique | Asc/Asc | registrationToken + deviceId |
| PushNotifications_registrationToken_unique_idx | Must be unique | Asc | registrationToken |
| PushNotifications_UserId_idx | Performance | Asc | UserId |

