Changed article to use Profile instead of User

This commit is contained in:
Frederick Holland
2025-10-18 11:57:47 +11:00
parent dad52efdc5
commit 88b2f57cf5

View File

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