Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id | uuid | 2147483647 | public.gen_random_uuid() |
|
|
Primary Key. |
||||||||
| status | enum_GroupMembers_status | 2147483647 | 'PENDING'::"enum_GroupMembers_status" |
|
|
Status of users or companies membership in the group. |
||||||||
| approvalDate | timestamptz | 35,6 | √ | null |
|
|
Date that user or company is approved in the group. |
|||||||
| note | text | 2147483647 | √ | null |
|
|
Note by admin about the membership. |
|||||||
| GroupId | uuid | 2147483647 | √ | null |
|
|
Foreign Key to Group Table. |
|||||||
| AdminId | uuid | 2147483647 | √ | null |
|
|
Foreign Key to User Table, relating to Group Admin. |
|||||||
| CompanyId | uuid | 2147483647 | √ | null |
|
|
Foreign Key to Company Table. |
|||||||
| CandidateId | uuid | 2147483647 | √ | null |
|
|
Foreign Key to Users Table, relating to Candidate . |
|||||||
| createdAt | timestamptz | 35,6 | null |
|
|
Entry creation date |
||||||||
| updatedAt | timestamptz | 35,6 | null |
|
|
Datetime of last modification to any attribute |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| GroupMembers_pkey | Primary key | Asc | id |
| GroupMembers_AdminId_GroupId_idx | Must be unique | Asc/Asc | AdminId + GroupId |
| GroupMembers_CandidateId_GroupId_idx | Must be unique | Asc/Asc | CandidateId + GroupId |
| GroupMembers_CandidateId_GroupId_status_idx | Must be unique | Asc/Asc/Asc | CandidateId + GroupId + status |
| GroupMembers_CompanyId_GroupId_idx | Must be unique | Asc/Asc | CompanyId + GroupId |
| GroupMembers_CompanyId_GroupId_status_idx | Must be unique | Asc/Asc/Asc | CompanyId + GroupId + status |



