提交
This commit is contained in:
@@ -6,7 +6,7 @@ import "time"
|
||||
// User 用户模型
|
||||
// 对应数据库表: fs_user
|
||||
type User struct {
|
||||
ID uint64 `json:"id" gorm:"primaryKey;autoIncrement"`
|
||||
ID uint64 `json:"id" gorm:"primaryKey"`
|
||||
Username string `json:"username" gorm:"uniqueIndex;size:64;not null"`
|
||||
Password string `json:"-" gorm:"size:256;not null"` // json:"-" 防止密码泄露
|
||||
Email string `json:"email" gorm:"size:128"`
|
||||
|
||||
Reference in New Issue
Block a user