From 226892d9e2d443562a441a934820b86769bd4919 Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Fri, 2 May 2025 22:11:49 +0800 Subject: [PATCH] =?UTF-8?q?ai=E6=97=A5=E5=BF=97=E6=B7=BB=E5=8A=A0=E6=A8=A1?= =?UTF-8?q?=E5=9E=8Bid=E7=9A=84=E8=A6=86=E7=9B=96=E7=B4=A2=E5=BC=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dao/msg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dao/msg.go b/dao/msg.go index 40424ba..afb0cf2 100644 --- a/dao/msg.go +++ b/dao/msg.go @@ -8,7 +8,7 @@ import ( type AIStreamMsg struct { gorm.Model Type string `gorm:"column:type"` - ModelID uint `gorm:"column:model_id"` + ModelID uint `gorm:"column:model_id index:idx_covering,unique"` UserID int `gorm:"column:user_id"` //用户id SessionID int `gorm:"column:session_id"` //会话id MSG string `gorm:"column:msg"` //消息内容