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)"`