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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| BlockerId | text | not null, references Users.Id | |
| BlockedId | text | not null, references Users.Id | |
| BlockedAt | timestamp with time zone | not null | |
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |
Indexes (1)
(BlockerId, BlockedId)unique (IX_UserBlocks_BlockerId_BlockedId)