Followings table

The Followings table in the FitStack - V2 schema has 8 columns, keyed by Id, with 2 foreign keys to Users.

Directed self-referencing follow edge.

Columns (8)

Columns of the Followings table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
FollowerIdtextnot null, references Users.IdRESTRICT. Joined via HasPrincipalKey(UserId) on UserProfiles.
FolloweeIdtextnot null, references Users.IdRESTRICT.
FollowedAttimestamp with time zonenot null
CreatedAttimestamp with time zonenot null
ModifiedAttimestamp with time zone
IsDeletedbooleannot null
DeletedAttimestamp with time zone

Indexes (1)

  • (FollowerId, FolloweeId) unique (IX_Followings_FollowerId_FolloweeId)

Relationships

  • Followings.FollowerId references Users.Id
  • Followings.FolloweeId references Users.Id