A web blog and personal homepage engine written in Go.
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.
 
 

12 lines
270 B

  1. package models
  2. // User account for the site.
  3. type User struct {
  4. ID int `json:"id"`
  5. Username string `json:"username" gorm:"unique"`
  6. Password string `json:"-"`
  7. IsAdmin bool `json:"isAdmin"`
  8. Name string `json:"name"`
  9. Email string `json:"email"`
  10. }