story_views table

The story_views table in the Social Media Database Schema schema has 3 columns, with 2 foreign keys to stories and users.

The composite key means a re-watch does not inflate the viewer list.

Columns (3)

Columns of the story_views table
ColumnTypeConstraintsDescription
story_iduuidnot null, references stories.id
viewer_iduuidnot null, references users.id
viewed_attimestamptznot null

Relationships