nezha/model/user.go

13 lines
249 B
Go
Raw Normal View History

2019-12-08 03:59:58 -05:00
package model
type User struct {
Common
Username string `json:"username,omitempty" gorm:"uniqueIndex"`
2024-10-20 02:05:43 -04:00
Password string `json:"password,omitempty" gorm:"type:char(72)"`
2019-12-08 03:59:58 -05:00
}
type Profile struct {
User
LoginIP string `json:"login_ip,omitempty"`
}