Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | uuid | 2147483647 | null |
|
|
||||||
| version | int4 | 10 | null |
|
|
||||||
| person_identifier | varchar | 10 | null |
|
|
||||||
| uuid | 2147483647 | null |
|
|
|||||||
| release_at | timestamp | 29,6 | null |
|
|
||||||
| return_by | timestamp | 29,6 | null |
|
|
||||||
| accompanied_by_id | int8 | 19 | null |
|
|
||||||
| transport_id | int8 | 19 | null |
|
|
||||||
| contact_information | text | 2147483647 | √ | null |
|
|
|||||
| notes | text | 2147483647 | √ | null |
|
|
|||||
| added_at | timestamp | 29,6 | null |
|
|
||||||
| added_by | varchar | 64 | null |
|
|
||||||
| cancelled_at | timestamp | 29,6 | √ | null |
|
|
|||||
| cancelled_by | varchar | 64 | √ | null |
|
|
|||||
| legacy_id | int8 | 19 | √ | null |
|
|
|||||
| location | jsonb | 2147483647 | null |
|
|
||||||
| schedule_reference | jsonb | 2147483647 | √ | null |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| pk_temporary_absence_occurrence | Primary key | Asc | id |
| idx_tao_authorisation_id | Performance | Asc | authorisation_id |
| idx_temporary_absence_occurrence | Performance | Asc/Asc/Asc | person_identifier + release_at + return_by |
| uq_temporary_absence_occurrence_legacy_id | Must be unique | Asc | legacy_id |
Check Constraints
| Constraint Name | Constraint |
|---|---|
| ch_tao_cancelled_at_cancelled_by | (((cancelled_at IS NULL) AND (cancelled_by IS NULL)) OR ((cancelled_at IS NOT NULL) AND (cancelled_by IS NOT NULL))) |