model

package
v0.0.0-...-8306d54 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ProjectKind = "projects"
View Source
const UserKind = "users"

Variables

This section is empty.

Functions

This section is empty.

Types

type Project

type Project struct {
	Key      *datastore.Key `form:"-" json:"-" binding:"-"  datastore:"__key__"`
	ID       int            `json:"id"`
	Name     string         `json:"name"`
	IsActive bool           `json:"isActive"`
}

type User

type User struct {
	Key       *datastore.Key `form:"-" json:"-" binding:"-"  datastore:"__key__"`
	ID        int64          `json:"id" datastore:"id"`
	Sub       string         `json:"sub"`
	Name      string         `json:"name"`
	Email     string         `json:"email"`
	Profile   string         `json:"profile"`
	Issuer    string         `json:"issuer"`
	IssuedAt  time.Time      `json:"issuedAt"`
	CreatedAt time.Time      `datastore:"createdAt,noindex"`
	UpdatedAt time.Time      `datastore:"updatedAt,noindex"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL