diff --git a/src/model/user_upgrade_level.go b/src/model/user_upgrade_level.go index 54f8504..7c0b9cd 100644 --- a/src/model/user_upgrade_level.go +++ b/src/model/user_upgrade_level.go @@ -5,7 +5,7 @@ import ( ) type UserUpgradeLevel struct { - Id int `json:"id" xorm:"not null pk default 0 INT(11)"` + Id int `json:"id" xorm:"not null pk autoincr INT(11)"` Uid int `json:"uid" xorm:"default 0 INT(11)"` Level int `json:"level" xorm:"default 0 INT(11)"` CreateTime time.Time `json:"create_time" xorm:"DATETIME"`