Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | int4 | 10 | null |
|
|
||||||
| deleted | timestamptz | 35,6 | √ | null |
|
|
|||||
| created_at | timestamptz | 35,6 | null |
|
|
||||||
| updated_at | timestamptz | 35,6 | null |
|
|
||||||
| history_id | serial | 10 | √ | nextval('api_historicalstocktransaction_history_id_seq'::regclass) |
|
|
|||||
| history_date | timestamptz | 35,6 | null |
|
|
||||||
| history_change_reason | varchar | 100 | √ | null |
|
|
|||||
| history_type | varchar | 1 | null |
|
|
||||||
| employee_id | int4 | 10 | √ | null |
|
|
|||||
| history_user_id | int4 | 10 | √ | null |
|
|
|||||
| office_id | int4 | 10 | √ | null |
|
|
|||||
| service_order_id | int4 | 10 | √ | null |
|
|
|||||
| type_product_transaction_id | int4 | 10 | √ | null |
|
|
|||||
| code_serial_end | varchar | 255 | √ | null |
|
|
|||||
| code_serial_start | varchar | 255 | √ | null |
|
|
|||||
| prefix | varchar | 255 | √ | null |
|
|
|||||
| purchase_order | varchar | 255 | √ | null |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| api_historicalstocktransaction_pkey | Primary key | Asc | history_id |
| api_historicalstocktransac_type_product_transaction_i_18e9e277 | Performance | Asc | type_product_transaction_id |
| api_historicalstocktransaction_employee_id_f0002a91 | Performance | Asc | employee_id |
| api_historicalstocktransaction_history_user_id_f5632164 | Performance | Asc | history_user_id |
| api_historicalstocktransaction_id_597b47b7 | Performance | Asc | id |
| api_historicalstocktransaction_office_id_4852130c | Performance | Asc | office_id |
| api_historicalstocktransaction_service_order_id_64b33919 | Performance | Asc | service_order_id |