blocks table

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

Blocking is mutual invisibility and should also delete any follows rows in both directions.

Columns (3)

Columns of the blocks table
ColumnTypeConstraintsDescription
blocker_iduuidnot null, references users.id
blocked_iduuidnot null, references users.id
created_attimestamptznot null

Indexes (1)

  • (blocked_id)

Relationships