health-go/models/user.go
2024-10-20 16:31:37 +08:00

18 lines
406 B
Go

package models
import "time"
type User struct {
UserID int `gorm:"column:user_id"`
UserName string `gorm:"column:user_name"`
Password string `gorm:"column:password"`
Brth time.Time `gorm:"column:brth"`
Height float32 `gorm:"column:height"`
Tel string `gorm:"column:tel"`
SMSTry int `gorm:"column:SMS_try"`
}
func (User) TableName() string {
return "user"
}