ssh-manager/model/User.go

10 lines
196 B
Go
Raw Permalink Normal View History

2020-11-16 16:41:02 +08:00
package model
type User struct {
Model
Phone int `gorm:"not null;unique;type:bigint"`
Email *string `gorm:"unique"`
2021-10-18 20:59:21 +08:00
Password string
Servers []Server `gorm:"ForeignKey:BindUser"`
2020-11-16 16:41:02 +08:00
}