All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
22 lines
311 B
Go
22 lines
311 B
Go
package models
|
|
|
|
import (
|
|
"strconv"
|
|
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
type Benchmark struct {
|
|
gorm.Model
|
|
Name string
|
|
ScoringType string
|
|
Description string
|
|
|
|
// one-to-many BenchmarkProfiles
|
|
BenchmarkProfiles []BenchmarkProfile
|
|
}
|
|
|
|
func (b *Benchmark) StringID() string {
|
|
return strconv.Itoa(int(b.ID))
|
|
}
|