Files
hamster-tycoon/storage/model/user.go
2020-05-10 23:58:49 +02:00

19 lines
322 B
Go
Executable File

package model
import (
"time"
)
type User struct {
UserEditable
ID string `json:"id"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt *time.Time `json:"updatedAt"`
GoogleId string `json:"-"`
Games []Game
}
type UserEditable struct {
Nickname string `json:"nickname" validate:"required"`
}