2023-11-27 23:41:48 -05:00
|
|
|
package models
|
|
|
|
|
|
|
|
import (
|
|
|
|
"gorm.io/gorm"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Benchmark struct {
|
|
|
|
gorm.Model
|
2023-12-02 22:16:16 -05:00
|
|
|
Name string
|
2023-11-27 23:41:48 -05:00
|
|
|
ScoringType string
|
|
|
|
Description string
|
2023-12-02 22:16:16 -05:00
|
|
|
|
|
|
|
// many-to-many test
|
2024-05-29 11:52:01 -04:00
|
|
|
Tests []Test `gorm:"many2many:tests_benchmarks;"`
|
|
|
|
|
|
|
|
// has many results
|
|
|
|
Results []Result
|
2023-11-27 23:41:48 -05:00
|
|
|
}
|