19 lines
322 B
Go
Executable File
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"`
|
|
}
|