| 25 | ) |
| 26 | |
| 27 | type TestmoProject struct { |
| 28 | common.Scope `mapstructure:",squash"` |
| 29 | Id uint64 `gorm:"primaryKey;type:BIGINT NOT NULL;autoIncrement:false" json:"id"` |
| 30 | Name string `gorm:"type:varchar(255)" json:"name"` |
| 31 | IsCompleted bool `json:"is_completed"` |
| 32 | |
| 33 | // Counts for metrics |
| 34 | MilestoneCount uint64 `json:"milestone_count"` |
| 35 | MilestoneActiveCount uint64 `json:"milestone_active_count"` |
| 36 | MilestoneCompletedCount uint64 `json:"milestone_completed_count"` |
| 37 | RunCount uint64 `json:"run_count"` |
| 38 | RunActiveCount uint64 `json:"run_active_count"` |
| 39 | RunClosedCount uint64 `json:"run_closed_count"` |
| 40 | AutomationSourceCount uint64 `json:"automation_source_count"` |
| 41 | AutomationSourceActiveCount uint64 `json:"automation_source_active_count"` |
| 42 | AutomationSourceRetiredCount uint64 `json:"automation_source_retired_count"` |
| 43 | AutomationRunCount uint64 `json:"automation_run_count"` |
| 44 | AutomationRunActiveCount uint64 `json:"automation_run_active_count"` |
| 45 | AutomationRunCompletedCount uint64 `json:"automation_run_completed_count"` |
| 46 | } |
| 47 | |
| 48 | func (TestmoProject) TableName() string { |
| 49 | return "_tool_testmo_projects" |
nothing calls this directly
no outgoing calls
no test coverage detected