From f3124e7252c2a564fcf2d62fda490be881552abc Mon Sep 17 00:00:00 2001 From: CaIon <1808837298@qq.com> Date: Mon, 8 Jan 2024 10:11:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=87=8F=E5=B0=91username=E5=92=8Cmodel?= =?UTF-8?q?=5Fname=E5=AD=97=E6=AE=B5=E9=95=BF=E5=BA=A6=E4=B8=BA64?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/usedata.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model/usedata.go b/model/usedata.go index 81543b0..fedc966 100644 --- a/model/usedata.go +++ b/model/usedata.go @@ -11,8 +11,8 @@ import ( type QuotaData struct { Id int `json:"id"` UserID int `json:"user_id" gorm:"index"` - Username string `json:"username" gorm:"index:idx_qdt_model_user_name,priority:2;size:100;default:''"` - ModelName string `json:"model_name" gorm:"index;index:idx_qdt_model_user_name,priority:1;size:100;default:''"` + Username string `json:"username" gorm:"index:idx_qdt_model_user_name,priority:2;size:64;default:''"` + ModelName string `json:"model_name" gorm:"index;index:idx_qdt_model_user_name,priority:1;size:64;default:''"` CreatedAt int64 `json:"created_at" gorm:"bigint;index:idx_qdt_created_at,priority:2"` Count int `json:"count" gorm:"default:0"` Quota int `json:"quota" gorm:"default:0"`