Files
blt/models/benchmark.go
Gregory Ballantine 60d8554cf1
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Updated the test edit page (still need to do the post page)
2025-08-10 01:44:33 -04:00

25 lines
367 B
Go

package models
import (
"strconv"
"gorm.io/gorm"
)
type Benchmark struct {
gorm.Model
Name string
ScoringType string
Description string
// many-to-many test
Tests []Test `gorm:"many2many:tests_benchmarks;"`
// has many results
Results []Result
}
func (b *Benchmark) StringID() string {
return strconv.Itoa(int(b.ID))
}