From 42f7af3d52399808ca75f16291a8e9bc330deb5e Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Tue, 30 Aug 2022 01:42:27 +0800 Subject: [PATCH] cms --- pkg/common/db/model_struct.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/common/db/model_struct.go b/pkg/common/db/model_struct.go index 65be89ce3..ba7afe19f 100644 --- a/pkg/common/db/model_struct.go +++ b/pkg/common/db/model_struct.go @@ -237,7 +237,7 @@ type ChatLog struct { ContentType int32 `gorm:"column:content_type;index:search" json:"contentType"` Content string `gorm:"column:content;type:varchar(3000);index:search" json:"content"` Status int32 `gorm:"column:status" json:"status"` - SendTime time.Time `gorm:"column:send_time;;index:search" json:"sendTime"` + SendTime time.Time `gorm:"column:send_time;index:search;priority:1" json:"sendTime"` CreateTime time.Time `gorm:"column:create_time" json:"createTime"` Ex string `gorm:"column:ex;type:varchar(1024)" json:"ex"` }