PostMetrics table
The PostMetrics table in the FitStack - V2 schema has 8 columns, keyed by Id. 1 column in FeedPosts references it.
Denormalised counters. No audit columns.
Columns (8)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| PostId | uuid | not null | 1:1, CASCADE. |
| ViewCount | integer | not null | |
| LikeCount | integer | not null | |
| CommentCount | integer | not null | |
| ShareCount | integer | not null | |
| EngagementRate | double precision | not null | |
| LastUpdated | timestamp with time zone | not null |
Relationships
FeedPosts.IdreferencesPostMetrics