修复获取模型消息数量,统计数据

This commit is contained in:
junleea 2025-05-03 00:20:15 +08:00
parent 1004f59db0
commit 58bfcc1066
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ import (
type AIStreamMsg struct {
gorm.Model
Type string `gorm:"column:type"`
ModelID uint `gorm:"column:model_id index:idx_covering,unique"`
ModelID uint `gorm:"column:model_id index:idx_model_id"`
UserID int `gorm:"column:user_id"` //用户id
SessionID int `gorm:"column:session_id"` //会话id
MSG string `gorm:"column:msg"` //消息内容