Advertisement
Gabsness

Untitled

Mar 23rd, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.30 KB | None | 0 0
  1. type Comment struct {
  2.     gorm.Model
  3.     UserID uint  `json: "userID"`
  4.     ParentID uint `json: "parentID"`
  5.     Votes uint32 `json: "votes"`
  6.     Content string `json: "content"`
  7.     HasVote int8 `json: "hasVote" gorm: "-"`
  8.     User []User `json: "user, omitempty"`
  9.     Children []Comment `json: "children, omitempty"`
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement