Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | int4 | 10 | √ | null |
|
|
|||||
| batch_type | varchar | 10 | null |
|
|
||||||
| sesar_code | varchar | 10 | null |
|
|
||||||
| sample_count | int4 | 10 | √ | null |
|
|
|||||
| upload_time | timestamptz | 35,6 | null |
|
|
||||||
| processed_time | timestamptz | 35,6 | √ | null |
|
|
|||||
| filename | varchar | 64 | √ | null |
|
|
|||||
| deleted_time | timestamptz | 35,6 | √ | null |
|
|
|||||
| processed_by | int4 | 10 | √ | null |
|
|
|||||
| upload_by | int4 | 10 | null |
|
|
||||||
| batch_template_id | int8 | 19 | √ | null |
|
|
|||||
| team_owner_id | int8 | 19 | √ | null |
|
|
|||||
| user_owner_id | int4 | 10 | √ | null |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| batch_history_pkey | Primary key | Asc | id |
| batch_hist_type_processed_idx | Performance | Asc/Asc | batch_type + processed_time |
| batch_hist_type_upload_idx | Performance | Asc/Asc | batch_type + upload_time |
| batch_histo_team_ow_98838b_idx | Performance | Asc | team_owner_id |
| batch_histo_user_ow_2b4279_idx | Performance | Asc | user_owner_id |
| batch_history_batch_template_id_8ceda8c4 | Performance | Asc | batch_template_id |
| batch_history_processed_by_37feae3a | Performance | Asc | processed_by |
| batch_history_team_owner_id_3cbdb12e | Performance | Asc | team_owner_id |
| batch_history_upload_by_a6bbf7d5 | Performance | Asc | upload_by |
| batch_history_user_owner_id_cc508e42 | Performance | Asc | user_owner_id |
Check Constraints
| Constraint Name | Constraint |
|---|---|
| batch_history_exactly_one_owner | (((team_owner_id IS NULL) AND (user_owner_id IS NOT NULL)) OR ((team_owner_id IS NOT NULL) AND (user_owner_id IS NULL))) |

