Files
blt/models/benchmark.go
T
2025-10-22 00:58:32 -04:00

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))
}