Added back reference associations for result; added table of results to test view

This commit is contained in:
Gregory Ballantine
2024-05-29 11:52:01 -04:00
parent 8df9b7684f
commit 3eca29c2db
5 changed files with 39 additions and 5 deletions

View File

@ -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
}