FeedPosts table
The FeedPosts table in the FitStack - V2 schema has 11 columns, keyed by Id, with 2 foreign keys to FeedPostEmbeddings and Users. 9 columns in FeedPostMedia, FeedPostReferences, FeedPostViews, PostLikes and 5 more reference it.
Columns (11)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null, references FeedPostEmbeddings.EntityId | |
| UserId | text | not null, references Users.Id | |
| Content | character varying(2000) | not null | |
| PostType | integer | not null | |
| Visibility | integer | not null | `PostVisibility`. |
| IsArchived | boolean | not null | |
| IsPinned | boolean | not null | |
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |
Indexes (2)
(IsArchived, CreatedAt)(IX_FeedPosts_IsArchived_CreatedAt)(UserId, IsArchived, CreatedAt)(IX_FeedPosts_UserId_IsArchived_CreatedAt)
Relationships
FeedPosts.IdreferencesFeedPostEmbeddings.EntityIdFeedPosts.UserIdreferencesUsers.IdFeedPostMedia.FeedPostIdreferencesFeedPostsFeedPostReferences.FeedPostIdreferencesFeedPostsFeedPostViews.PostIdreferencesFeedPostsPostLikes.PostIdreferencesFeedPostsPostComments.PostIdreferencesFeedPostsPostShares.PostIdreferencesFeedPostsPostTags.PostIdreferencesFeedPostsPostMentions.PostIdreferencesFeedPostsPostReports.PostIdreferencesFeedPosts