package models type CommentReaction struct { BaseModel CommentID uint `json:"comment_id" gorm:"index;not null"` UserID uint `json:"user_id" gorm:"index;not null"` Type string `json:"type" gorm:"size:24;not null;index"` // like|heart|smile|laugh|thumbs_up|thumbs_down|sad|angry } func (CommentReaction) TableName() string { return "comment_reactions" }