package models type CommentReport struct { BaseModel CommentID uint `json:"comment_id" gorm:"index;not null"` UserID uint `json:"user_id" gorm:"index;not null"` Reason string `json:"reason" gorm:"size:255"` } func (CommentReport) TableName() string { return "comment_reports" }