feat: 部署初版测试
This commit is contained in:
17
server/internal/model/reply_performance.go
Normal file
17
server/internal/model/reply_performance.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
type ReplyPerformance struct {
|
||||
ID uuid.UUID `gorm:"type:uuid;primary_key;default:gen_random_uuid()" json:"id"`
|
||||
ReplyID uuid.UUID `gorm:"type:uuid;not null;index:idx_reply_performance_reply_id" json:"reply_id"`
|
||||
UserID uuid.UUID `gorm:"type:uuid;not null;index:idx_reply_performance_user_id" json:"user_id"`
|
||||
LikeCountIncrease int `gorm:"default:0" json:"like_count_increase"`
|
||||
ReplyCountIncrease int `gorm:"default:0" json:"reply_count_increase"`
|
||||
InteractionRate float64 `gorm:"default:0.0" json:"interaction_rate"`
|
||||
CheckTime time.Time `json:"check_time"`
|
||||
}
|
||||
Reference in New Issue
Block a user