MyGroupNewPostsNotificationTopGroups


Description

Stores top group ids for new my group posts notification, ranked by most recent posts when notfication was sent

Columns

Column Type Size Nulls Auto Default Children Parents Comments
myGroupNewPostsNotificationId uuid 2147483647 null
MyGroupNewPostsNotifications.NotificationId MyGroupNewPostsNotificationTo_myGroupNewPostsNotificationI_fkey C
groupId uuid 2147483647 null
Groups.id MyGroupNewPostsNotificationTopGroups_groupId_fkey C

id for group with most recent posts when new my group posts notification was sent

rank int4 10 null

Store ordering of groups. Group with most recent post when notification was sent get better rank

Indexes

Constraint Name Type Sort Column(s)
MyGroupNewPostsNotificationTopGroups_pkey Primary key Asc/Asc myGroupNewPostsNotificationId + groupId

Check Constraints

Constraint Name Constraint
MyGroupNewPostsNotificationTopGroups_rank_check (((rank >= 1) AND (rank <= 3)))

Relationships