From a0aee923180d8f51932c5e38da268c6e4d0f1a2b Mon Sep 17 00:00:00 2001 From: JustSong Date: Sun, 14 Jan 2024 13:47:18 +0800 Subject: [PATCH] fix: remove wrong index --- model/log.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model/log.go b/model/log.go index f6b8c69d..06085acf 100644 --- a/model/log.go +++ b/model/log.go @@ -9,9 +9,9 @@ import ( ) type Log struct { - Id int `json:"id" gorm:"index:idx_created_at_id,priority:1"` + Id int `json:"id"` UserId int `json:"user_id" gorm:"index"` - CreatedAt int64 `json:"created_at" gorm:"bigint;index:idx_created_at_id,priority:2;index:idx_created_at_type"` + CreatedAt int64 `json:"created_at" gorm:"bigint;index:idx_created_at_type"` Type int `json:"type" gorm:"index:idx_created_at_type"` Content string `json:"content"` Username string `json:"username" gorm:"index:index_username_model_name,priority:2;default:''"`