Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| m_product_id | numeric | 10 | null | 
                                         | 
                                    
                                        
  | 
                                    ||||||
| substitute_id | numeric | 10 | null | 
                                         | 
                                    
                                        
  | 
                                    ||||||
| ad_client_id | numeric | 10 | null | 
                                         | 
                                    
                                        
  | 
                                    ||||||
| ad_org_id | numeric | 10 | null | 
                                         | 
                                    
                                        
  | 
                                    ||||||
| isactive | bpchar | 1 | 'Y'::bpchar | 
                                         | 
                                    
                                         | 
                                    ||||||
| created | timestamp | 29,6 | now() | 
                                         | 
                                    
                                         | 
                                    ||||||
| createdby | numeric | 10 | null | 
                                         | 
                                    
                                         | 
                                    ||||||
| updated | timestamp | 29,6 | now() | 
                                         | 
                                    
                                         | 
                                    ||||||
| updatedby | numeric | 10 | null | 
                                         | 
                                    
                                         | 
                                    ||||||
| name | varchar | 60 | √ | null | 
                                         | 
                                    
                                         | 
                                    |||||
| description | varchar | 255 | √ | null | 
                                         | 
                                    
                                         | 
                                    |||||
| m_substitute_uu | varchar | 36 | √ | NULL::character varying | 
                                         | 
                                    
                                         | 
                                    
Indexes
| Constraint Name | Type | Sort | Column(s) | 
|---|---|---|---|
| m_substitute_pkey | Primary key | Asc/Asc | m_product_id + substitute_id | 
| m_substitute_uu_idx | Must be unique | Asc | m_substitute_uu | 
Check Constraints
| Constraint Name | Constraint | 
|---|---|
| m_substitute_isactive_check | ((isactive = ANY (ARRAY['Y'::bpchar, 'N'::bpchar]))) |