UserBlocks table

The UserBlocks table in the FitStack - V2 schema has 8 columns, keyed by Id, with 2 foreign keys to Users.

A block should hard-stop a coaching request (see 61). Nothing enforces that today — it is application logic, and it was absent from v1.

Columns (8)

Columns of the UserBlocks table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
BlockerIdtextnot null, references Users.Id
BlockedIdtextnot null, references Users.Id
BlockedAttimestamp with time zonenot null
CreatedAttimestamp with time zonenot null
ModifiedAttimestamp with time zone
IsDeletedbooleannot null
DeletedAttimestamp with time zone

Indexes (1)

  • (BlockerId, BlockedId) unique (IX_UserBlocks_BlockerId_BlockedId)

Relationships

  • UserBlocks.BlockerId references Users.Id
  • UserBlocks.BlockedId references Users.Id