Changed article to use Profile instead of User
This commit is contained in:
@@ -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