🐛 Bug fixes on publishers and removal of dealer

This commit is contained in:
2024-10-31 22:48:51 +08:00
parent 001c9a8140
commit 1bd2da2850
11 changed files with 99 additions and 157 deletions

View File

@ -19,9 +19,7 @@ type Publisher struct {
Avatar string `json:"avatar"`
Banner string `json:"banner"`
Posts []Post `json:"posts" gorm:"foreignKey:AuthorID"`
Reactions []Reaction `json:"reactions"`
Subscriptions []Subscription `json:"subscriptions" gorm:"foreginKey:FollowerID"`
Posts []Post `json:"posts"`
TotalUpvote int `json:"total_upvote"`
TotalDownvote int `json:"total_downvote"`