16 lines
290 B
Go
16 lines
290 B
Go
package models
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
var ErrEmptyPassword = errors.New("empty password")
|
|
|
|
type User struct {
|
|
Model
|
|
Username string `gorm:"unique" json:"username"`
|
|
Email string `gorm:"unique" json:"email"`
|
|
Password string `json:"-"`
|
|
Experience int
|
|
Games []*GameCursor
|
|
}
|