24 lines
332 B
Go
24 lines
332 B
Go
package models
|
|
|
|
import (
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
type Test struct {
|
|
gorm.Model
|
|
Name string
|
|
Description string
|
|
|
|
// belongs to Hardware
|
|
HardwareID int
|
|
Hardware Hardware
|
|
|
|
// belongs to Benchmark
|
|
BenchmarkID int
|
|
Benchmark Benchmark
|
|
|
|
// belongs to Test
|
|
TestID int
|
|
Test Test
|
|
}
|