From fcef3d7a95d70beb7520bd3a0b316d83f42f0a10 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 27 Nov 2024 20:44:50 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E7=9F=A5=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/model/user_notice_time.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/user_notice_time.go b/src/model/user_notice_time.go index 6d24e72..614c91e 100644 --- a/src/model/user_notice_time.go +++ b/src/model/user_notice_time.go @@ -2,7 +2,7 @@ package model type UserNoticeTime struct { Id int `json:"id" xorm:"not null pk autoincr INT(11)"` - Uid int `json:"uid" xorm:"default 0 INT(11)"` + Uid int `json:"uid" xorm:"default 0 unique INT(11)"` LoginNoticeTime int `json:"login_notice_time" xorm:"default 0 INT(11)"` SignNoticeTime int `json:"sign_notice_time" xorm:"default 0 INT(11)"` LoginTime int `json:"login_time" xorm:"default 0 INT(11)"`