Files
hamster-tycoon/storage/model/user.go
2020-05-22 02:09:38 +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"`
}