Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | uuid | 2147483647 | gen_random_uuid() |
|
|
||||||
| jobDraftId | uuid | 2147483647 | null |
|
|
Rows are deleted when their owning draft is deleted and copied into JobPreferredKeywords when the draft is published. |
|||||
| jobRoleId | uuid | 2147483647 | null |
|
|
The draft L3 category at save time. Hierarchical job category identifier. Intentionally has no foreign key. |
|||||
| questionGroupId | uuid | 2147483647 | null |
|
|
Question group identifier at save time. Consistency with the draft role configuration is enforced by api-v2. |
|||||
| questionId | uuid | 2147483647 | null |
|
|
Owning question identifier at save time. Consistency with questionGroupId is enforced by api-v2. |
|||||
| keywordId | uuid | 2147483647 | null |
|
|
Historical keyword identifier. Intentionally has no foreign key. |
|||||
| metadata | jsonb | 2147483647 | √ | null |
|
|
|||||
| createdAt | timestamptz | 35,6 | now() |
|
|
||||||
| updatedAt | timestamptz | 35,6 | now() |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| JobPreferredKeywordDrafts_pkey | Primary key | Asc | id |
| JobPreferredKeywordDrafts_draft_group_question_keyword_key | Must be unique | Asc/Asc/Asc/Asc | jobDraftId + questionGroupId + questionId + keywordId |
| JobPreferredKeywordDrafts_jobRoleId_idx | Performance | Asc | jobRoleId |
| JobPreferredKeywordDrafts_keywordId_idx | Performance | Asc | keywordId |

