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)

Columns of the FeedPosts table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null, references FeedPostEmbeddings.EntityId
UserIdtextnot null, references Users.Id
Contentcharacter varying(2000)not null
PostTypeintegernot null
Visibilityintegernot null`PostVisibility`.
IsArchivedbooleannot null
IsPinnedbooleannot null
CreatedAttimestamp with time zonenot null
ModifiedAttimestamp with time zone
IsDeletedbooleannot null
DeletedAttimestamp with time zone

Indexes (2)

  • (IsArchived, CreatedAt) (IX_FeedPosts_IsArchived_CreatedAt)
  • (UserId, IsArchived, CreatedAt) (IX_FeedPosts_UserId_IsArchived_CreatedAt)

Relationships