gophertype/pkg/models/users.go

12 lines
270 B
Go
Raw Normal View History

2019-11-15 03:03:56 +00:00
package models
// User account for the site.
type User struct {
ID int `json:"id"`
Username string `json:"username" gorm:"unique"`
Password string `json:"-"`
IsAdmin bool `json:"isAdmin"`
Name string `json:"name"`
Email string `json:"email"`
}