Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type Comment struct {
- gorm.Model
- UserID uint `json: "userID"`
- ParentID uint `json: "parentID"`
- Votes uint32 `json: "votes"`
- Content string `json: "content"`
- HasVote int8 `json: "hasVote" gorm: "-"`
- User []User `json: "user, omitempty"`
- Children []Comment `json: "children, omitempty"`
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement