You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package Models
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type User struct {
|
|
Base
|
|
Email string `gorm:"not null;unique" json:"email"`
|
|
Password string `gorm:"not null" json:"password"`
|
|
ConfirmPassword string `gorm:"-" json:"confirm_password"`
|
|
LastLogin *time.Time `json:"last_login"`
|
|
FirstName string `gorm:"not null" json:"first_name"`
|
|
LastName string `gorm:"not null" json:"last_name"`
|
|
}
|