Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id | serial | 10 | √ | nextval('stock_warehouse_orderpoint_id_seq'::regclass) |
|
|
|||||||||||||||||
| warehouse_id | int4 | 10 | null |
|
|
Warehouse |
|||||||||||||||||
| location_id | int4 | 10 | null |
|
|
Location |
|||||||||||||||||
| product_id | int4 | 10 | null |
|
|
Product |
|||||||||||||||||
| product_category_id | int4 | 10 | √ | null |
|
|
Product Category |
||||||||||||||||
| group_id | int4 | 10 | √ | null |
|
|
Procurement Group |
||||||||||||||||
| company_id | int4 | 10 | null |
|
|
Company |
|||||||||||||||||
| route_id | int4 | 10 | √ | null |
|
|
Route |
||||||||||||||||
| create_uid | int4 | 10 | √ | null |
|
|
Created by |
||||||||||||||||
| write_uid | int4 | 10 | √ | null |
|
|
Last Updated by |
||||||||||||||||
| name | varchar | 2147483647 | null |
|
|
Name |
|||||||||||||||||
| trigger | varchar | 2147483647 | null |
|
|
Trigger |
|||||||||||||||||
| snoozed_until | date | 13 | √ | null |
|
|
Snoozed |
||||||||||||||||
| product_min_qty | numeric | 0 | null |
|
|
Min Quantity |
|||||||||||||||||
| product_max_qty | numeric | 0 | null |
|
|
Max Quantity |
|||||||||||||||||
| qty_multiple | numeric | 0 | null |
|
|
Multiple Quantity |
|||||||||||||||||
| qty_to_order | numeric | 0 | √ | null |
|
|
To Order |
||||||||||||||||
| active | bool | 1 | √ | null |
|
|
Active |
||||||||||||||||
| create_date | timestamp | 29,6 | √ | null |
|
|
Created on |
||||||||||||||||
| write_date | timestamp | 29,6 | √ | null |
|
|
Last Updated on |
||||||||||||||||
| bom_id | int4 | 10 | √ | null |
|
|
Bill of Materials |
||||||||||||||||
| manufacturing_visibility_days | float8 | 17,17 | √ | null |
|
|
Manufacturing Visibility Days |
||||||||||||||||
| supplier_id | int4 | 10 | √ | null |
|
|
Product Supplier |
||||||||||||||||
| vendor_id | int4 | 10 | √ | null |
|
|
Vendor |
||||||||||||||||
| purchase_visibility_days | float8 | 17,17 | √ | null |
|
|
Purchase Visibility Days |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| stock_warehouse_orderpoint_pkey | Primary key | Asc | id |
| stock_warehouse_orderpoint__company_id_index | Performance | Asc | company_id |
| stock_warehouse_orderpoint__location_id_index | Performance | Asc | location_id |
| stock_warehouse_orderpoint__warehouse_id_index | Performance | Asc | warehouse_id |
| stock_warehouse_orderpoint_product_location_check | Must be unique | Asc/Asc/Asc | product_id + location_id + company_id |
Check Constraints
| Constraint Name | Constraint |
|---|---|
| stock_warehouse_orderpoint_qty_multiple_check | ((qty_multiple >= (0)::numeric)) |

