Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | uuid | 2147483647 | gen_random_uuid() |
|
|
Primary Key. |
|||||
| BlockedUserId | uuid | 2147483647 | null |
|
|
Foreign Key to Users table, who got blocked. |
|||||
| BlockerUserId | uuid | 2147483647 | null |
|
|
Foreign Key to Users table, the blocker. |
|||||
| createdAt | timestamptz | 35,6 | now() |
|
|
||||||
| updatedAt | timestamptz | 35,6 | now() |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| BlockedUsers_pkey | Primary key | Asc | id |
| BlockedUsers_BlockedUserIdAndBlockerUserId_unique | Must be unique | Asc/Asc | BlockedUserId + BlockerUserId |
| gcud_BlockedUsers_BlockedUserId_idx | Performance | Asc | BlockedUserId |
| gcud_BlockedUsers_BlockerUserId_idx | Performance | Asc | BlockerUserId |
Check Constraints
| Constraint Name | Constraint |
|---|---|
| BlockedUserId_cannot_be_equal_to_BlockerUserId | (("BlockedUserId" <> "BlockerUserId")) |

