Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | uuid | 2147483647 | null |
|
|
||||||
| job_type | varchar | 32 | null |
|
|
||||||
| status | varchar | 16 | null |
|
|
||||||
| payload | jsonb | 2147483647 | null |
|
|
||||||
| result | jsonb | 2147483647 | √ | null |
|
|
|||||
| error_message | text | 2147483647 | √ | null |
|
|
|||||
| total_count | int4 | 10 | √ | null |
|
|
|||||
| processed_count | int4 | 10 | null |
|
|
||||||
| locked_at | timestamptz | 35,6 | √ | null |
|
|
|||||
| locked_by | varchar | 64 | √ | null |
|
|
|||||
| created_at | timestamptz | 35,6 | null |
|
|
||||||
| started_at | timestamptz | 35,6 | √ | null |
|
|
|||||
| finished_at | timestamptz | 35,6 | √ | null |
|
|
|||||
| created_by_id | int4 | 10 | √ | null |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| background_job_pkey | Primary key | Asc | id |
| background__job_typ_983b9a_idx | Performance | Asc/Asc/Asc | job_type + status + created_at |
| background__status_7606a1_idx | Performance | Asc/Asc | status + created_at |
| background_job_created_by_id_174a0e7c | Performance | Asc | created_by_id |
Check Constraints
| Constraint Name | Constraint |
|---|---|
| background_job_processed_count_check | (processed_count >= 0) |
| background_job_total_count_check | (total_count >= 0) |

