Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | uuid | 2147483647 | public.gen_random_uuid() |
|
|
||||||
| facility_id | uuid | 2147483647 | √ | null |
|
|
|||||
| user_id | uuid | 2147483647 | null |
|
|
||||||
| protocol_drug_id | uuid | 2147483647 | null |
|
|
||||||
| in_stock | int4 | 10 | √ | null |
|
|
|||||
| received | int4 | 10 | √ | null |
|
|
|||||
| for_end_of_month | date | 13 | null |
|
|
||||||
| deleted_at | timestamp | 29,6 | √ | null |
|
|
|||||
| created_at | timestamp | 29,6 | null |
|
|
||||||
| updated_at | timestamp | 29,6 | null |
|
|
||||||
| region_id | uuid | 2147483647 | null |
|
|
||||||
| redistributed | int4 | 10 | √ | null |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| drug_stocks_pkey | Primary key | Asc | id |
| index_drug_stocks_on_facility_id | Performance | Asc | facility_id |

