Interactive/pkg/internal/models/accounts.go

14 lines
300 B
Go

package models
import "git.solsynth.dev/hydrogen/dealer/pkg/hyper"
type Account struct {
hyper.BaseUser
Posts []Post `json:"posts" gorm:"foreignKey:AuthorID"`
Reactions []Reaction `json:"reactions"`
TotalUpvote int `json:"total_upvote"`
TotalDownvote int `json:"total_downvote"`
}