health-go/models/user.go

18 lines
418 B
Go
Raw Normal View History

2024-10-17 23:52:10 +08:00
package models
import "time"
type User struct {
UserID int `gorm:"column:user_id"`
UserName string `gorm:"column:user_name"`
Password string `gorm:"column:password"`
2024-10-28 14:41:27 +08:00
Birth time.Time `gorm:"column:birth"`
2024-10-17 23:52:10 +08:00
Height float32 `gorm:"column:height"`
2024-10-28 14:41:27 +08:00
Tel string `gorm:"column:tel" json:"tel"`
2024-10-17 23:52:10 +08:00
SMSTry int `gorm:"column:SMS_try"`
}
func (User) TableName() string {
return "user"
}