We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 883b2c1 commit 7f0bb02Copy full SHA for 7f0bb02
backend/internal/entity/course.go
@@ -7,7 +7,7 @@ type Course struct {
7
Title string `gorm:"size:255;not null;" json:"title"`
8
Description string `gorm:"size:255;not null;" json:"description"`
9
CreatorID int `gorm:"foreignKey" json:"creator_id"`
10
- Students []Account `gorm:"many2many:enrollment;" json:"students"`
+ Students []Account `gorm:"many2many:enrollment;" json:"-"`
11
Tags []Tag `gorm:"many2many:course_tag;" json:"tags"`
12
Modules []Module `json:"modules"`
13
}
0 commit comments