PostComments table

The PostComments table in the FitStack - V2 schema has 9 columns, keyed by Id, with 4 foreign keys to PostCommentMetrics, FeedPosts, Users and PostComments. 3 columns in PostCommentLikes, CommentMentions and PostCommentReports reference it.

Columns (9)

Columns of the PostComments table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null, references PostCommentMetrics.CommentId
PostIduuidnot null, references FeedPosts.Id
UserIdtextnot null, references Users.Id
ParentCommentIduuidreferences PostComments.IdSelf-reference for threading.
Contenttextnot null
IsEditedbooleannot null
IsDeletedbooleannot nullHAND-ROLLED, not Auditable — so NO global soft-delete filter applies. Deleted comments come back from every unqualified query.
CreatedAttimestamp with time zonenot null
ModifiedAttimestamp with time zone

Relationships