Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||
|---|---|---|---|---|---|---|---|---|---|---|
| component_subcomponent_id | serial | 10 | √ | nextval('moped_proj_components_subcomponen_component_subcomponent_id_seq'::regclass) | 
                                         | 
                                    
                                         | 
                                    ||||
| project_component_id | int4 | 10 | null | 
                                         | 
                                    
                                        
  | 
                                    |||||
| subcomponent_id | int4 | 10 | null | 
                                         | 
                                    
                                        
  | 
                                    |||||
| is_deleted | bool | 1 | false | 
                                         | 
                                    
                                         | 
                                    Indicates soft deletion  | 
                                ||||
| created_at | timestamptz | 35,6 | now() | 
                                         | 
                                    
                                         | 
                                    Timestamp when the record was created  | 
                                ||||
| created_by_user_id | int4 | 10 | √ | null | 
                                         | 
                                    
                                        
  | 
                                    ID of the user who created the record  | 
                                |||
| updated_by_user_id | int4 | 10 | √ | null | 
                                         | 
                                    
                                        
  | 
                                    ID of the user who last updated the record  | 
                                |||
| updated_at | timestamptz | 35,6 | now() | 
                                         | 
                                    
                                         | 
                                    Timestamp when the record was last updated  | 
                                
Indexes
| Constraint Name | Type | Sort | Column(s) | 
|---|---|---|---|
| moped_proj_components_subcomponents_pkey | Primary key | Asc | component_subcomponent_id | 
| unique_component_and_subcomponent | Must be unique | Asc/Asc | project_component_id + subcomponent_id |