Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||
|---|---|---|---|---|---|---|---|---|---|---|
| id | BIGINT | 19 | √ | null | 
                                         | 
                                    
                                         | 
                                    ||||
| name | VARCHAR | 100 | 
                                         | 
                                    
                                         | 
                                    ||||||
| description | LONGTEXT | 2147483647 | √ | null | 
                                         | 
                                    
                                         | 
                                    ||||
| descriptionformat | SMALLINT | 5 | 0 | 
                                         | 
                                    
                                         | 
                                    |||||
| userid | BIGINT | 19 | null | 
                                         | 
                                    
                                         | 
                                    |||||
| templateid | BIGINT | 19 | √ | null | 
                                         | 
                                    
                                        
  | 
                                    ||||
| origtemplateid | BIGINT | 19 | √ | null | 
                                         | 
                                    
                                         | 
                                    The template ID this plan was based on originally  | 
                                |||
| status | BIT | 1 | null | 
                                         | 
                                    
                                         | 
                                    |||||
| duedate | BIGINT | 19 | √ | 0 | 
                                         | 
                                    
                                         | 
                                    ||||
| reviewerid | BIGINT | 19 | √ | null | 
                                         | 
                                    
                                         | 
                                    ||||
| timecreated | BIGINT | 19 | null | 
                                         | 
                                    
                                         | 
                                    |||||
| timemodified | BIGINT | 19 | 0 | 
                                         | 
                                    
                                         | 
                                    |||||
| usermodified | BIGINT | 19 | null | 
                                         | 
                                    
                                        
  | 
                                    
Indexes
| Constraint Name | Type | Sort | Column(s) | 
|---|---|---|---|
| PRIMARY | Primary key | Asc | id | 
| compplan_stadue_ix | Performance | Asc/Asc | status + duedate | 
| compplan_tem_ix | Performance | Asc | templateid | 
| compplan_use_ix | Performance | Asc | usermodified | 
| compplan_usesta_ix | Performance | Asc/Asc | userid + status |