Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id | serial | 10 | √ | nextval('stock_location_id_seq'::regclass) |
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| location_id | int4 | 10 | √ | null |
|
|
Parent Location |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| posx | int4 | 10 | √ | null |
|
|
Corridor (X) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| posy | int4 | 10 | √ | null |
|
|
Shelves (Y) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| posz | int4 | 10 | √ | null |
|
|
Height (Z) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| company_id | int4 | 10 | √ | null |
|
|
Company |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| removal_strategy_id | int4 | 10 | √ | null |
|
|
Removal Strategy |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| cyclic_inventory_frequency | int4 | 10 | √ | null |
|
|
Inventory Frequency (Days) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| warehouse_id | int4 | 10 | √ | null |
|
|
Warehouse |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| storage_category_id | int4 | 10 | √ | null |
|
|
Storage Category |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| create_uid | int4 | 10 | √ | null |
|
|
Created by |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| write_uid | int4 | 10 | √ | null |
|
|
Last Updated by |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name | varchar | 2147483647 | null |
|
|
Location Name |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| complete_name | varchar | 2147483647 | √ | null |
|
|
Full Location Name |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| usage | varchar | 2147483647 | null |
|
|
Location Type |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| parent_path | varchar | 2147483647 | √ | null |
|
|
Parent Path |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| barcode | varchar | 2147483647 | √ | null |
|
|
Barcode |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| last_inventory_date | date | 13 | √ | null |
|
|
Last Effective Inventory |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| next_inventory_date | date | 13 | √ | null |
|
|
Next Expected Inventory |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| comment | text | 2147483647 | √ | null |
|
|
Additional Information |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| active | bool | 1 | √ | null |
|
|
Active |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| scrap_location | bool | 1 | √ | null |
|
|
Is a Scrap Location? |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| return_location | bool | 1 | √ | null |
|
|
Is a Return Location? |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| replenish_location | bool | 1 | √ | null |
|
|
Replenish Location |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| create_date | timestamp | 29,6 | √ | null |
|
|
Created on |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| write_date | timestamp | 29,6 | √ | null |
|
|
Last Updated on |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| valuation_in_account_id | int4 | 10 | √ | null |
|
|
Stock Valuation Account (Incoming) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| valuation_out_account_id | int4 | 10 | √ | null |
|
|
Stock Valuation Account (Outgoing) |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| stock_location_pkey | Primary key | Asc | id |
| stock_location__company_id_index | Performance | Asc | company_id |
| stock_location__location_id_index | Performance | Asc | location_id |
| stock_location__parent_path_index | Performance | Asc | parent_path |
| stock_location__usage_index | Performance | Asc | usage |
| stock_location_barcode_company_uniq | Must be unique | Asc/Asc | barcode + company_id |
Check Constraints
| Constraint Name | Constraint |
|---|---|
| stock_location_inventory_freq_nonneg | ((cyclic_inventory_frequency >= 0)) |

