String类型空值不为nil导致的注册失败
This commit is contained in:
parent
f57178513c
commit
0f765649a7
@ -3,6 +3,6 @@ package model
|
||||
type User struct {
|
||||
Model
|
||||
Phone int `gorm:"not null;unique;type:bigint"`
|
||||
Email string `gorm:"unique"`
|
||||
Email *string `gorm:"unique"`
|
||||
Servers []Server `gorm:"ForeignKey:BindUser"`
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user