Added back reference associations for result; added table of results to test view
This commit is contained in:
@ -11,5 +11,8 @@ type Benchmark struct {
|
||||
Description string
|
||||
|
||||
// many-to-many test
|
||||
Tests[] Test `gorm:"many2many:tests_benchmarks;"`
|
||||
Tests []Test `gorm:"many2many:tests_benchmarks;"`
|
||||
|
||||
// has many results
|
||||
Results []Result
|
||||
}
|
||||
|
@ -10,5 +10,8 @@ type Hardware struct {
|
||||
Type string
|
||||
|
||||
// has many tests
|
||||
Tests[] Test
|
||||
Tests []Test
|
||||
|
||||
// has many results
|
||||
Results []Result
|
||||
}
|
||||
|
@ -14,5 +14,8 @@ type Test struct {
|
||||
Hardware Hardware
|
||||
|
||||
// many-to-many benchmarks
|
||||
Benchmarks[] Benchmark `gorm:"many2many:tests_benchmarks;"`
|
||||
Benchmarks []Benchmark `gorm:"many2many:tests_benchmarks;"`
|
||||
|
||||
// has many results
|
||||
Results []Result
|
||||
}
|
||||
|
Reference in New Issue
Block a user