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