1 Commits
v1.1.0 ... main

Author SHA1 Message Date
Frederick Holland
88b2f57cf5 Changed article to use Profile instead of User 2025-10-18 11:57:47 +11:00

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 {