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.

15 lines
439 B

  1. package Models
  2. import (
  3. "time"
  4. )
  5. type User struct {
  6. Base
  7. Email string `gorm:"not null;unique" json:"email"`
  8. Password string `gorm:"not null" json:"password,omitempty"`
  9. ConfirmPassword string `gorm:"-" json:"confirm_password"`
  10. LastLogin *time.Time `json:"last_login"`
  11. FirstName string `gorm:"not null" json:"first_name"`
  12. LastName string `gorm:"not null" json:"last_name"`
  13. }