2023-12-02 22:16:16 -05:00
|
|
|
package models
|
|
|
|
|
|
|
|
import (
|
|
|
|
"gorm.io/gorm"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Test struct {
|
|
|
|
gorm.Model
|
2024-05-29 08:45:53 -04:00
|
|
|
Name string
|
2024-05-29 08:58:30 -04:00
|
|
|
Description string
|
2023-12-02 22:16:16 -05:00
|
|
|
|
|
|
|
// belongs to hardware
|
|
|
|
HardwareID int
|
|
|
|
Hardware Hardware
|
|
|
|
|
|
|
|
// many-to-many benchmarks
|
2024-05-29 11:52:01 -04:00
|
|
|
Benchmarks []Benchmark `gorm:"many2many:tests_benchmarks;"`
|
|
|
|
|
|
|
|
// has many results
|
|
|
|
Results []Result
|
2023-12-02 22:16:16 -05:00
|
|
|
}
|