| 84 | } |
| 85 | |
| 86 | type Subtask struct { |
| 87 | common.Model |
| 88 | TaskID uint64 `json:"task_id" gorm:"index"` |
| 89 | Name string `json:"name" gorm:"index"` |
| 90 | Number int `json:"number"` |
| 91 | BeganAt *time.Time `json:"beganAt"` |
| 92 | FinishedAt *time.Time `json:"finishedAt" gorm:"index"` |
| 93 | SpentSeconds int64 `json:"spentSeconds"` |
| 94 | FinishedRecords int `json:"finishedRecords"` |
| 95 | Sequence int `json:"sequence"` |
| 96 | IsCollector bool `json:"isCollector"` |
| 97 | IsFailed bool `json:"isFailed"` |
| 98 | Message string `json:"message"` |
| 99 | } |
| 100 | |
| 101 | func (Subtask) TableName() string { |
| 102 | return "_devlake_subtasks" |
nothing calls this directly
no outgoing calls
no test coverage detected