在 user_visits 表中,每个用户每天只能有一条记录。该表在 user_id 和 visited_at 上设有唯一索引。随着用户阅读更多帖子,当天访问记录的 posts_read 字段将会更新。
user_visits
user_id
visited_at
posts_read