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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null, references PostCommentMetrics.CommentId | |
| PostId | uuid | not null, references FeedPosts.Id | |
| UserId | text | not null, references Users.Id | |
| ParentCommentId | uuid | references PostComments.Id | Self-reference for threading. |
| Content | text | not null | |
| IsEdited | boolean | not null | |
| IsDeleted | boolean | not null | HAND-ROLLED, not Auditable — so NO global soft-delete filter applies. Deleted comments come back from every unqualified query. |
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone |
Relationships
PostComments.IdreferencesPostCommentMetrics.CommentIdPostComments.PostIdreferencesFeedPosts.IdPostComments.UserIdreferencesUsers.IdPostComments.ParentCommentIdreferencesPostComments.IdPostCommentLikes.PostCommentIdreferencesPostCommentsCommentMentions.CommentIdreferencesPostCommentsPostCommentReports.PostCommentIdreferencesPostComments