Lots of changes
This commit is contained in:
17
models/test.go
Normal file
17
models/test.go
Normal file
@ -0,0 +1,17 @@
|
||||
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;"`
|
||||
}
|
Reference in New Issue
Block a user