package book

import "time"

type BookCommentLikeRecord struct {
	HardDeleteModel
	CommentID    uint      `json:"commentId" form:"commentId" gorm:"not null;uniqueIndex:uk_book_comment_like_record_comment_id_member_user_id;comment:评论 ID"`
	MemberUserID uint      `json:"memberUserId" form:"memberUserId" gorm:"not null;uniqueIndex:uk_book_comment_like_record_comment_id_member_user_id;index;comment:会员用户 ID"`
	LikedAt      time.Time `json:"likedAt" form:"likedAt" gorm:"not null;default:CURRENT_TIMESTAMP;index;comment:点赞时间"`
}

func (BookCommentLikeRecord) TableName() string {
	return "book_comment_like_record"
}
