review.go 415 B

123456789101112131415
  1. package models
  2. import "time"
  3. type Review struct {
  4. ID string `json:"id"`
  5. UserID string `json:"user_id"`
  6. TargetType string `json:"target_type"`
  7. TargetID string `json:"target_id"`
  8. Rating int `json:"rating"`
  9. Text *string `json:"text"`
  10. CreatedAt time.Time `json:"created_at"`
  11. UpdatedAt time.Time `json:"updated_at"`
  12. User *User `json:"user,omitempty"`
  13. }