| 22 | ) |
| 23 | |
| 24 | type SubtaskState struct { |
| 25 | Plugin string `gorm:"primaryKey;type:varchar(255)" json:"plugin"` |
| 26 | Subtask string `gorm:"primaryKey;type:varchar(255)" json:"subtask"` |
| 27 | // Params is a json string to identitfy rows of a specific scope (jira board, github repo) |
| 28 | Params string `gorm:"primaryKey;type:varchar(255);index" json:"params"` |
| 29 | // PrevConfig stores the previous configuration of the subtask for determining should subtask run in Incremntal or FullSync mode |
| 30 | PrevConfig string `json:"prevConfig"` |
| 31 | // TimeAfter stores the previous timeAfter specified by the user for determining should subtask run in Incremntal or FullSync mode |
| 32 | TimeAfter *time.Time `json:"timeAfter"` |
| 33 | PrevStartedAt *time.Time `json:"prevStartedAt"` |
| 34 | CreatedAt time.Time `json:"createdAt"` |
| 35 | UpdatedAt time.Time `json:"updatedAt"` |
| 36 | } |
| 37 | |
| 38 | func (SubtaskState) TableName() string { |
| 39 | return "_devlake_subtask_states" |
nothing calls this directly
no outgoing calls
no test coverage detected