Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id | uuid | 2147483647 | null |
|
|
||||||||||||||||||||||||||||||||||||
| deleted_by | varchar | 255 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| deleted_date | timestamp | 29,6 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| version | int4 | 10 | null |
|
|
||||||||||||||||||||||||||||||||||||
| created_by | varchar | 255 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| created_date | timestamp | 29,6 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| last_modified_by | varchar | 255 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| last_modified_date | timestamp | 29,6 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| case_id | uuid | 2147483647 | null |
|
|
||||||||||||||||||||||||||||||||||||
| linked_inspection_id | uuid | 2147483647 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| counter_inspection | bool | 1 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| type_id | uuid | 2147483647 | null |
|
|
||||||||||||||||||||||||||||||||||||
| service_decision_id | uuid | 2147483647 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| manager_decision_id | uuid | 2147483647 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| agent_decision_id | uuid | 2147483647 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| provisional_inspection_date | timestamp | 29,6 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| last_appointment_id | uuid | 2147483647 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| form_id | uuid | 2147483647 | null |
|
|
||||||||||||||||||||||||||||||||||||
| status_id | uuid | 2147483647 | null |
|
|
||||||||||||||||||||||||||||||||||||
| inspection_date | timestamp | 29,6 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| requestor_id | uuid | 2147483647 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| request_id | uuid | 2147483647 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| next_inspection_recommendation_id | uuid | 2147483647 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| number | int4 | 10 | null |
|
|
||||||||||||||||||||||||||||||||||||
| reference | varchar | 255 | null |
|
|
||||||||||||||||||||||||||||||||||||
| external_reference_1 | varchar | 255 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| external_reference_2 | varchar | 255 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| best_confidence_origin_id | uuid | 2147483647 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| person_presents_comment | varchar | 2048 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| due_date | date | 13 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| note | varchar | 255 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| auto_due_date | date | 13 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| mailing_date | timestamp | 29,6 | √ | null |
|
|
|||||||||||||||||||||||||||||||||||
| request_date | timestamp | 29,6 | √ | null |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| pk_ins_inspection | Primary key | Asc | id |
| idx_ins_inspection_case | Performance | Asc | case_id |
| idx_ins_inspection_case_number | Must be unique | Asc/Asc | case_id + number |
| idx_ins_inspection_form | Performance | Asc | form_id |
| idx_ins_inspection_last_appointment | Performance | Asc | last_appointment_id |
| idx_ins_inspection_linked_inspection | Performance | Asc | linked_inspection_id |
| idx_ins_inspection_reference | Must be unique | Asc | reference |
| idx_ins_inspection_request | Performance | Asc | request_id |
| idx_ins_inspection_requestor | Performance | Asc | requestor_id |
| idx_ins_inspection_service_decision | Performance | Asc | service_decision_id |
| idx_ins_inspection_status | Performance | Asc | status_id |
| idx_ins_inspection_type | Performance | Asc | type_id |

