Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | uuid | 2147483647 | gen_random_uuid() |
|
|
||||||
| UserId | uuid | 2147483647 | null |
|
|
||||||
| CompanyId | uuid | 2147483647 | √ | null |
|
|
|||||
| transactionId | text | 2147483647 | null |
|
|
||||||
| type | enum_EmployerVerifications_type | 2147483647 | null |
|
|
||||||
| status | enum_EmployerVerifications_status | 2147483647 | null |
|
|
||||||
| verificationInfo | jsonb | 2147483647 | null |
|
|
||||||
| verificationResult | jsonb | 2147483647 | √ | null |
|
|
|||||
| employerInfo | jsonb | 2147483647 | √ | null |
|
|
|||||
| createdAt | timestamptz | 35,6 | now() |
|
|
||||||
| updatedAt | timestamptz | 35,6 | now() |
|
|
||||||
| attemptCount | int4 | 10 | null |
|
|
Records how many verification attempts the user has made for the associated verification type. It is used to enforce maximum attempt limits. |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| EmployerVerifications_pkey | Primary key | Asc | id |
| EmployerVerifications_employerInfo_idCardNumber_uniq_partialIdx | Must be unique | ||
| EmployerVerifications_transactionId_type_idx | Must be unique | Asc/Asc | transactionId + type |
| EmployerVerifications_UserId_status_idx | Performance | Asc/Asc | UserId + status |
| EmployerVerifications_UserId_type_CompanyId_unique_idx | Must be unique | Asc/Asc/Asc | UserId + type + CompanyId |

