diff --git a/models/article.go b/models/article.go index a877760..1581063 100644 --- a/models/article.go +++ b/models/article.go @@ -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 {