✨ generate model and update model
This commit is contained in:
12
model/sca_comment_likes.go
Normal file
12
model/sca_comment_likes.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package model
|
||||
|
||||
// ScaCommentLikes 评论点赞表
|
||||
type ScaCommentLikes struct {
|
||||
Id int64 `gorm:"column:id;type:bigint(20);primary_key" json:"id"`
|
||||
UserId string `gorm:"column:user_id;type:varchar(20);comment:用户ID;NOT NULL" json:"user_id"`
|
||||
CommentId int64 `gorm:"column:comment_id;type:bigint(20);comment:评论ID" json:"comment_id"`
|
||||
}
|
||||
|
||||
func (like *ScaCommentLikes) TableName() string {
|
||||
return "sca_comment_likes"
|
||||
}
|
Reference in New Issue
Block a user