post_mentions table

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

Extracted at write time rather than parsed on read, so the mentions tab is a plain index lookup.

Columns (2)

Columns of the post_mentions table
ColumnTypeConstraintsDescription
post_iduuidnot null, references posts.id
user_iduuidnot null, references users.id

Indexes (1)

  • (user_id)

Relationships

  • post_mentions.post_id references posts.id
  • post_mentions.user_id references users.id