2024-02-01 15:26:17 +00:00
|
|
|
package models
|
|
|
|
|
2024-09-11 15:42:46 +00:00
|
|
|
import "git.solsynth.dev/hydrogen/dealer/pkg/hyper"
|
|
|
|
|
2024-02-01 15:26:17 +00:00
|
|
|
type Account struct {
|
2024-09-11 15:42:46 +00:00
|
|
|
hyper.BaseUser
|
2024-02-01 15:26:17 +00:00
|
|
|
|
2024-09-11 15:42:46 +00:00
|
|
|
Posts []Post `json:"posts" gorm:"foreignKey:AuthorID"`
|
|
|
|
Reactions []Reaction `json:"reactions"`
|
2024-07-23 08:12:19 +00:00
|
|
|
|
|
|
|
TotalUpvote int `json:"total_upvote"`
|
|
|
|
TotalDownvote int `json:"total_downvote"`
|
2024-02-01 15:26:17 +00:00
|
|
|
}
|