add INDEX for abuse_report.status

This commit is contained in:
floss4good 2025-04-01 01:23:57 +03:00
parent 4b9c08a099
commit a5e7a815d8
No known key found for this signature in database
GPG key ID: 5B948B4F4DAF819D

View file

@ -90,7 +90,7 @@ func (t ReportedContentType) IsValid() bool {
// AbuseReport represents a report of abusive content.
type AbuseReport struct {
ID int64 `xorm:"pk autoincr"`
Status ReportStatusType `xorm:"NOT NULL DEFAULT 1"`
Status ReportStatusType `xorm:"INDEX NOT NULL DEFAULT 1"`
// The ID of the user who submitted the report.
ReporterID int64 `xorm:"NOT NULL"`
// Reported content type: user/organization profile, repository, issue/pull or comment.