post_insights_daily table
The post_insights_daily table in the Reddit Clone Database Schema schema has 7 columns, with 1 foreign key to posts.
What the author sees on their own post. Kept apart from post_views because these are product analytics with a retention policy, while view counts are a permanent display number.
Columns (7)
| Column | Type | Constraints | Description |
|---|---|---|---|
| post_id | uuid | not null, references posts.id | |
| measured_on | date | not null | |
| impressions | integer | not null | |
| unique_viewers | integer | not null | |
| expands | integer | not null | |
| shares | integer | not null | |
| upvote_ratio | double | not null |
Relationships
post_insights_daily.post_idreferencesposts.id