Columns
Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
---|---|---|---|---|---|---|---|---|---|---|---|
id | uuid | 2147483647 | null |
|
|
||||||
name | varchar | 2147483647 | null |
|
|
||||||
rxnorm_code | varchar | 2147483647 | √ | null |
|
|
|||||
dosage | varchar | 2147483647 | √ | null |
|
|
|||||
device_created_at | timestamp | 29,6 | null |
|
|
||||||
device_updated_at | timestamp | 29,6 | null |
|
|
||||||
created_at | timestamp | 29,6 | null |
|
|
||||||
updated_at | timestamp | 29,6 | null |
|
|
||||||
patient_id | uuid | 2147483647 | null |
|
|
||||||
facility_id | uuid | 2147483647 | null |
|
|
||||||
is_protocol_drug | bool | 1 | null |
|
|
||||||
is_deleted | bool | 1 | null |
|
|
||||||
deleted_at | timestamp | 29,6 | √ | null |
|
|
|||||
user_id | uuid | 2147483647 | √ | null |
|
|
|||||
frequency | varchar | 2147483647 | √ | null |
|
|
|||||
duration_in_days | int4 | 10 | √ | null |
|
|
|||||
teleconsultation_id | uuid | 2147483647 | √ | null |
|
|
Indexes
Constraint Name | Type | Sort | Column(s) |
---|---|---|---|
prescription_drugs_pkey | Primary key | Asc | id |
index_prescription_drugs_on_deleted_at | Performance | Asc | deleted_at |
index_prescription_drugs_on_patient_id | Performance | Asc | patient_id |
index_prescription_drugs_on_patient_id_and_updated_at | Performance | Asc/Asc | patient_id + updated_at |
index_prescription_drugs_on_updated_at | Performance | Asc | updated_at |
index_prescription_drugs_on_user_id | Performance | Asc | user_id |