Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | bigserial | 19 | √ | nextval('observations_id_seq'::regclass) |
|
|
|||||
| encounter_id | uuid | 2147483647 | null |
|
|
||||||
| user_id | uuid | 2147483647 | null |
|
|
||||||
| observable_type | varchar | 2147483647 | √ | null |
|
|
|||||
| observable_id | uuid | 2147483647 | √ | null |
|
|
|||||
| created_at | timestamp | 29,6 | null |
|
|
||||||
| updated_at | timestamp | 29,6 | null |
|
|
||||||
| deleted_at | timestamp | 29,6 | √ | null |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| observations_pkey | Primary key | Asc | id |
| idx_observations_on_observable_type_and_id | Must be unique | Asc/Asc | observable_type + observable_id |
| index_observations_on_deleted_at | Performance | Asc | deleted_at |
| index_observations_on_encounter_id | Performance | Asc | encounter_id |
| index_observations_on_user_id | Performance | Asc | user_id |

