Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| ad_client_id | numeric | 10 | null | 
                                         | 
                                    
                                         | 
                                    ||||||
| ad_org_id | numeric | 10 | null | 
                                         | 
                                    
                                         | 
                                    ||||||
| created | timestamp | 29,6 | statement_timestamp() | 
                                         | 
                                    
                                         | 
                                    ||||||
| createdby | numeric | 10 | null | 
                                         | 
                                    
                                         | 
                                    ||||||
| isactive | bpchar | 1 | 'Y'::bpchar | 
                                         | 
                                    
                                         | 
                                    ||||||
| m_attributesetinstance_id | numeric | 10 | null | 
                                         | 
                                    
                                        
  | 
                                    ||||||
| m_costdetail_id | numeric | 10 | null | 
                                         | 
                                    
                                        
  | 
                                    ||||||
| m_costelement_id | numeric | 10 | null | 
                                         | 
                                    
                                        
  | 
                                    ||||||
| m_costhistory_id | numeric | 10 | null | 
                                        
  | 
                                    
                                         | 
                                    ||||||
| m_costhistory_uu | varchar | 36 | null | 
                                         | 
                                    
                                         | 
                                    ||||||
| m_costtype_id | numeric | 10 | null | 
                                         | 
                                    
                                        
  | 
                                    ||||||
| newcamt | numeric | 0 | √ | null | 
                                         | 
                                    
                                         | 
                                    |||||
| newcostprice | numeric | 0 | null | 
                                         | 
                                    
                                         | 
                                    ||||||
| newcqty | numeric | 0 | √ | null | 
                                         | 
                                    
                                         | 
                                    |||||
| newqty | numeric | 0 | null | 
                                         | 
                                    
                                         | 
                                    ||||||
| oldcamt | numeric | 0 | √ | null | 
                                         | 
                                    
                                         | 
                                    |||||
| oldcostprice | numeric | 0 | null | 
                                         | 
                                    
                                         | 
                                    ||||||
| oldcqty | numeric | 0 | √ | null | 
                                         | 
                                    
                                         | 
                                    |||||
| oldqty | numeric | 0 | null | 
                                         | 
                                    
                                         | 
                                    ||||||
| updated | timestamp | 29,6 | statement_timestamp() | 
                                         | 
                                    
                                         | 
                                    ||||||
| updatedby | numeric | 10 | null | 
                                         | 
                                    
                                         | 
                                    ||||||
| m_product_id | numeric | 10 | √ | NULL::numeric | 
                                         | 
                                    
                                        
  | 
                                    
Indexes
| Constraint Name | Type | Sort | Column(s) | 
|---|---|---|---|
| m_costhistory_key | Primary key | Asc | m_costhistory_id | 
| m_costhistory_costmovement_idx | Performance | Asc/Asc/Asc/Asc/Asc | ad_client_id + m_product_id + m_costtype_id + m_costelement_id + m_attributesetinstance_id | 
| m_costhistory_uu_idx | Must be unique | Asc | m_costhistory_uu | 
Check Constraints
| Constraint Name | Constraint | 
|---|---|
| m_costhistory_isactive_check | ((isactive = ANY (ARRAY['Y'::bpchar, 'N'::bpchar]))) |