28 lines
786 B
Go
28 lines
786 B
Go
|
// +gunk proto.Package("hhhapz.codequest.v1")
|
||
|
package codequest
|
||
|
|
||
|
import (
|
||
|
"github.com/gunk/opt/http"
|
||
|
"github.com/gunk/opt/openapiv2"
|
||
|
"github.com/gunk/opt/proto"
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
// User is a contestant in the competition.
|
||
|
type User struct {
|
||
|
// ID of the user. Received via Google's OAuth2 API.
|
||
|
ID string `pb:"1" json:"id"`
|
||
|
// Name of the user.
|
||
|
Name string `pb:"2" json:"name"`
|
||
|
// Email of the user.
|
||
|
Email string `pb:"3" json:"email"`
|
||
|
// Picture is the URL of the user's profile picture.
|
||
|
Picture string `pb:"4" json:"picture"`
|
||
|
// GradeLevel of the user.
|
||
|
GradeLevel int `pb:"5" json:"grade_level"`
|
||
|
// Admin is true if the user is an administrator.
|
||
|
Admin bool `pb:"6" json:"admin"`
|
||
|
// CreatedAt is the time the user was created.
|
||
|
CreatedAt time.Time `pb:"7" json:"created_at"`
|
||
|
}
|