From 9a9737fc2e8c6af1a4d0553b1b703c881d16f518 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 4 Dec 2024 16:06:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/model/user_imei.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/model/user_imei.go b/src/model/user_imei.go index 06d98b4..5ed97a7 100644 --- a/src/model/user_imei.go +++ b/src/model/user_imei.go @@ -6,8 +6,9 @@ import ( type UserImei struct { Id int `json:"id" xorm:"not null pk autoincr INT(11)"` - Uid int `json:"uid" xorm:"INT(11)"` - Imei string `json:"imei" xorm:"VARCHAR(255)"` + Uid int `json:"uid" xorm:"index INT(11)"` + Imei string `json:"imei" xorm:"index VARCHAR(255)"` CreateAt time.Time `json:"create_at" xorm:"DATETIME"` - Ip string `json:"ip" xorm:"VARCHAR(255)"` + Ip string `json:"ip" xorm:"index VARCHAR(255)"` + UpdateAt time.Time `json:"update_at" xorm:"DATETIME"` }