18 lines
266 B
Go
18 lines
266 B
Go
|
package models
|
||
|
|
||
|
import (
|
||
|
"gorm.io/gorm"
|
||
|
)
|
||
|
|
||
|
type Test struct {
|
||
|
gorm.Model
|
||
|
DateTag string
|
||
|
|
||
|
// belongs to hardware
|
||
|
HardwareID int
|
||
|
Hardware Hardware
|
||
|
|
||
|
// many-to-many benchmarks
|
||
|
Benchmarks[] Benchmark `gorm:"many2many:tests_benchmarks;"`
|
||
|
}
|