This commit is contained in:
wucongxing 2023-09-18 14:25:52 +08:00
parent dbe0e24241
commit 913e1647fb

View File

@ -21,7 +21,6 @@ type User struct {
Age uint `gorm:"column:age;type:int(10) unsigned;comment:年龄" json:"age"`
Sex int `gorm:"column:sex;type:tinyint(1);default:0;comment:性别0:未知 1:男 2:女)" json:"sex"`
Avatar string `gorm:"column:avatar;type:varchar(255);comment:头像" json:"avatar"`
DisableReason string `gorm:"column:disable_reason;type:varchar(255);comment:禁用理由" json:"disable_reason"`
LoginIp string `gorm:"column:login_ip;type:varchar(255);comment:登陆ip" json:"login_ip"`
LastLoginAt LocalTime `gorm:"column:last_login_at;type:datetime;comment:最后登陆时间" json:"last_login_at"`
CreatedBy string `gorm:"column:created_by;type:varchar(100);comment:创建者id后台用户表id null:自己注册)" json:"created_by"`