mirror of
https://github.com/Dvorinka/MyClubServer.git
synced 2026-06-04 02:32:57 +00:00
dev day #79
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
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" }
|
||||
Reference in New Issue
Block a user