blt/models/test.go

19 lines
289 B
Go
Raw Normal View History

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
Benchmarks[] Benchmark `gorm:"many2many:tests_benchmarks;"`
}