WidgetDevices table
The WidgetDevices table in the Shipfolio schema has 19 columns, keyed by Id, with 1 foreign key to AspNetUsers.
Columns (19)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key | |
| UserId | uuid | not null, references AspNetUsers.Id | |
| InstallHash | varchar(32) | not null | |
| Platform | varchar(50) | not null | |
| Kinds | varchar(50)[] | not null | |
| FcmToken | varchar(1024) | ||
| WidgetPushToken | varchar(1024) | ||
| LiveActivityToken | varchar(1024) | ||
| PushToStartToken | varchar(1024) | ||
| KeyHash | varchar(64) | ||
| KeyIssuedAt | timestamptz | ||
| KeyExpiresAt | timestamptz | ||
| CreatedAt | timestamptz | not null | |
| LastSeenAt | timestamptz | not null | |
| LastFetchedAt | timestamptz | ||
| LastPushedAt | timestamptz | ||
| PendingKinds | varchar(50)[] | not null | |
| PendingUrgent | boolean | not null | |
| PendingSince | timestamptz |
Indexes (3)
(InstallHash)unique (IX_WidgetDevices_InstallHash)(KeyHash)unique (IX_WidgetDevices_KeyHash)(UserId)(IX_WidgetDevices_UserId)
Relationships
WidgetDevices.UserIdreferencesAspNetUsers.Id