Browse Source

Replace ReviewComment with Content

Signed-off-by: Jonas Franz <info@jonasfranz.software>
pull/3748/head
Jonas Franz 7 years ago
parent
commit
aeb057755a
No known key found for this signature in database
GPG Key ID: 506AEEBE80BEDECD
  1. 17
      models/review.go

17
models/review.go

@ -19,15 +19,14 @@ const (
// Review represents collection of code comments giving feedback for a PR // Review represents collection of code comments giving feedback for a PR
type Review struct { type Review struct {
ID int64 `xorm:"pk autoincr"` ID int64 `xorm:"pk autoincr"`
Type ReviewType Type ReviewType
Pending bool Pending bool
Reviewer *User `xorm:"-"` Reviewer *User `xorm:"-"`
ReviewerID int64 `xorm:"index"` ReviewerID int64 `xorm:"index"`
Issue *Issue `xorm:"-"` Issue *Issue `xorm:"-"`
IssueID int64 `xorm:"index"` IssueID int64 `xorm:"index"`
ReviewCommentID int64 `xorm:"index"` Content string
ReviewComment *Comment `xorm:"-"`
CreatedUnix util.TimeStamp `xorm:"INDEX created"` CreatedUnix util.TimeStamp `xorm:"INDEX created"`
UpdatedUnix util.TimeStamp `xorm:"INDEX updated"` UpdatedUnix util.TimeStamp `xorm:"INDEX updated"`

Loading…
Cancel
Save