bookmarks table

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

Private by definition. Never generates a notification.

Columns (3)

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

Indexes (1)

  • (user_id, created_at)

Relationships