Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | int4 | 10 | null |
|
|
||||||
| deleted | timestamptz | 35,6 | √ | null |
|
|
|||||
| code | varchar | 255 | null |
|
|
||||||
| rental | float8 | 17,17 | √ | null |
|
|
|||||
| risk | float8 | 17,17 | √ | null |
|
|
|||||
| cost_risk | float8 | 17,17 | √ | null |
|
|
|||||
| key_custody | float8 | 17,17 | √ | null |
|
|
|||||
| created_at | timestamptz | 35,6 | null |
|
|
||||||
| updated_at | timestamptz | 35,6 | null |
|
|
||||||
| history_id | serial | 10 | √ | nextval('api_historicalchest_history_id_seq'::regclass) |
|
|
|||||
| history_date | timestamptz | 35,6 | null |
|
|
||||||
| history_change_reason | varchar | 100 | √ | null |
|
|
|||||
| history_type | varchar | 1 | null |
|
|
||||||
| history_user_id | int4 | 10 | √ | null |
|
|
|||||
| service_order_id | int4 | 10 | √ | null |
|
|
|||||
| type_chest_id | int4 | 10 | √ | null |
|
|
|||||
| location_id | int4 | 10 | √ | null |
|
|
|||||
| code_lock | varchar | 255 | √ | null |
|
|
|||||
| cost_key_custody | float8 | 17,17 | √ | null |
|
|
|||||
| cost_lock | float8 | 17,17 | √ | null |
|
|
|||||
| is_included_package | bool | 1 | null |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| api_historicalchest_pkey | Primary key | Asc | history_id |
| api_historicalchest_code_357b846a | Performance | Asc | code |
| api_historicalchest_code_357b846a_like | Performance | Asc | code |
| api_historicalchest_history_user_id_2c9afb93 | Performance | Asc | history_user_id |
| api_historicalchest_id_047a9e2e | Performance | Asc | id |
| api_historicalchest_location_id_55df7fcc | Performance | Asc | location_id |
| api_historicalchest_service_order_id_1ca0ce1e | Performance | Asc | service_order_id |
| api_historicalchest_type_chest_id_1144d359 | Performance | Asc | type_chest_id |