18 lines
406 B
Go
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"
|
|
}
|