ssh-manager/model/User.go
2021-10-18 20:59:21 +08:00

10 lines
196 B
Go

package model
type User struct {
Model
Phone int `gorm:"not null;unique;type:bigint"`
Email *string `gorm:"unique"`
Password string
Servers []Server `gorm:"ForeignKey:BindUser"`
}