Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | int4 | 10 | null |
|
|
||||||
| deleted | timestamptz | 35,6 | √ | null |
|
|
|||||
| code | varchar | 255 | null |
|
|
||||||
| created_at | timestamptz | 35,6 | null |
|
|
||||||
| updated_at | timestamptz | 35,6 | null |
|
|
||||||
| history_id | serial | 10 | √ | nextval('api_historicalstockserial_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 |
|
|
|||||
| product_and_service_id | int4 | 10 | √ | null |
|
|
|||||
| stock_id | int4 | 10 | √ | null |
|
|
|||||
| stock_transaction_id | int4 | 10 | √ | null |
|
|
|||||
| stock_transaction_detail_id | int4 | 10 | √ | null |
|
|
|||||
| office_id | int4 | 10 | √ | null |
|
|
|||||
| service_order_id | int4 | 10 | √ | null |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| api_historicalstockserial_pkey | Primary key | Asc | history_id |
| api_historicalstockserial_code_436513b5 | Performance | Asc | code |
| api_historicalstockserial_code_436513b5_like | Performance | Asc | code |
| api_historicalstockserial_history_user_id_3e552543 | Performance | Asc | history_user_id |
| api_historicalstockserial_id_37afe090 | Performance | Asc | id |
| api_historicalstockserial_office_id_b8556205 | Performance | Asc | office_id |
| api_historicalstockserial_product_and_service_id_40bfd337 | Performance | Asc | product_and_service_id |
| api_historicalstockserial_service_order_id_096115c9 | Performance | Asc | service_order_id |
| api_historicalstockserial_stock_id_d62343a4 | Performance | Asc | stock_id |
| api_historicalstockserial_stock_transaction_detail_id_9a8a50cc | Performance | Asc | stock_transaction_detail_id |
| api_historicalstockserial_stock_transaction_id_4bff6ca8 | Performance | Asc | stock_transaction_id |