NotificationGroups table

The NotificationGroups table in the FitStack - V2 schema has 18 columns, keyed by Id, with 1 foreign key to Users. 1 column in Notifications references it.

Rollup: "3 people liked your post". Consent notifications must NEVER be grouped — each one is an individual decision.

Columns (18)

Columns of the NotificationGroups table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
UserIdtextnot null, references Users.Id
Typetextnot null
GroupKeytextnot null
Titletextnot null
Countintegernot null
IsReadbooleannot null
ReadAttimestamp with time zone
LastNotificationAttimestamp with time zonenot null
RelatedEntityIduuid
RelatedEntityTypetext
ActionUrltext
Metadatatext
ExpiresAttimestamp with time zone
CreatedAttimestamp with time zonenot null
ModifiedAttimestamp with time zone
IsDeletedbooleannot null
DeletedAttimestamp with time zone

Indexes (1)

  • (UserId, GroupKey) unique (IX_NotificationGroups_UserId_GroupKey)

Relationships