Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | uuid | 2147483647 | public.gen_random_uuid() |
|
|
Primary Key. |
|||||
| status | enum_GroupJobs_status | 2147483647 | 'PENDING'::"enum_GroupJobs_status" |
|
|
Status of job in group, as decided by group admin. ENUM(APPROVED, PENDING, REJECTED). |
|||||
| approvalDate | timestamptz | 35,6 | √ | null |
|
|
Date of job being approved to group. |
||||
| GroupId | uuid | 2147483647 | √ | null |
|
|
Foreign Key to Groups Table. |
||||
| JobId | uuid | 2147483647 | √ | null |
|
|
Foreign Key to Jobs Table. |
||||
| 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) |
|---|---|---|---|
| GroupJobs_pkey | Primary key | Asc | id |
| GroupJobs_JobId_GroupId_idx | Must be unique | Asc/Asc | JobId + GroupId |
| GroupJobs_JobId_GroupId_status_idx | Must be unique | Asc/Asc/Asc | JobId + GroupId + status |

