Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | uuid | 2147483647 | gen_random_uuid() |
|
|
||||||
| type | enum_EmployerCustomMessages_type | 2147483647 | null |
|
|
||||||
| UserId | uuid | 2147483647 | √ | null |
|
|
|||||
| CompanyId | uuid | 2147483647 | √ | null |
|
|
|||||
| operation | enum_EmployerCustomMessages_operation | 2147483647 | null |
|
|
The action performed by the employer that triggers this message |
|||||
| autoSend | bool | 1 | false |
|
|
Auto send this message when the application status is updated |
|||||
| message | text | 2147483647 | null |
|
|
||||||
| translationKey | text | 2147483647 | √ | null |
|
|
Translation key for the message. Only for system default messages |
||||
| createdAt | timestamptz | 35,6 | now() |
|
|
||||||
| updatedAt | timestamptz | 35,6 | now() |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| EmployerCustomMessages_pkey | Primary key | Asc | id |
| EmployerCustomMessages_CompanyId_operation_type_unique_idx | Must be unique | Asc/Asc/Asc | CompanyId + operation + type |
| EmployerCustomMessages_CompanyId_type_idx | Performance | Asc/Asc | CompanyId + type |
| EmployerCustomMessages_type_idx | Performance | Asc | type |
| EmployerCustomMessages_UserId_operation_type_unique_idx | Must be unique | Asc/Asc/Asc | UserId + operation + type |
| EmployerCustomMessages_UserId_type_idx | Performance | Asc/Asc | UserId + type |

