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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| FollowerId | text | not null, references Users.Id | RESTRICT. Joined via HasPrincipalKey(UserId) on UserProfiles. |
| FolloweeId | text | not null, references Users.Id | RESTRICT. |
| FollowedAt | timestamp with time zone | not null | |
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |
Indexes (1)
(FollowerId, FolloweeId)unique (IX_Followings_FollowerId_FolloweeId)