Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
88b2f57cf5 |
@@ -6,7 +6,7 @@ type Article struct {
|
||||
Title string `json:"title"`
|
||||
Sections []ArticleSection `gorm:"serializer:json" json:"sections"`
|
||||
|
||||
Author User `gorm:"foreignKey:AuthorId" json:"author"`
|
||||
Author Profile `gorm:"foreignKey:AuthorId" json:"author"`
|
||||
}
|
||||
|
||||
type ArticleSection struct {
|
||||
|
||||
Reference in New Issue
Block a user