From df0b739275697e1d2f42cadf72f1652f705fb09a Mon Sep 17 00:00:00 2001 From: Mmx233 Date: Wed, 20 Dec 2023 13:46:12 +0800 Subject: [PATCH] =?UTF-8?q?improve:=20name=20=E5=8A=A0=E5=85=A5=20idx=5Fap?= =?UTF-8?q?ps=5Fpermit=5Fall=5Fnav=20=E8=81=94=E5=90=88=E7=B4=A2=E5=BC=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/db/dao/App.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/db/dao/App.go b/internal/db/dao/App.go index 2dc9738..ab99925 100644 --- a/internal/db/dao/App.go +++ b/internal/db/dao/App.go @@ -11,7 +11,7 @@ type App struct { // User.ID 拥有者 UID uint `gorm:"column:uid;index"` User *User `gorm:"foreignKey:UID;constraint:OnDelete:SET NULL"` - Name string `gorm:"not null;uniqueIndex;type:varchar(20)"` + Name string `gorm:"not null;uniqueIndex;type:varchar(20);index:idx_apps_permit_all_nav,priority:4"` AppCode string `gorm:"not null;uniqueIndex;type:varchar(36)"` AppSecret string `gorm:"not null"` Callback string `gorm:"not null"`