schema

package
Version: v0.0.0-...-cea2754 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2016 License: MIT Imports: 0 Imported by: 4

Documentation

Index

Constants

View Source
const (
	UserCodeSize        = 6
	RequestLinkCodeSize = 8
	RequestCodeSize     = 32
)
View Source
const (
	RequestStatusDefault = iota
	RequestStatusSent
	RequestStatusApproved
	RequestStatusRejected
)
View Source
const (
	UserStatusDefault = iota
	UserStatusActive
)
View Source
const (
	EmailStatusDefault = iota
	EmailStatusPendingActivation
	EmailStatusActive
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Email

type Email struct {
	ID      int    `json:"id"`
	Address string `json:"address"`
	User    int    `json:"user"`
	Status  int    `json:"status"`
	Created int    `json:"created"`
	Updated int    `json:"updated"`
	Deleted int    `json:"deleted"`
}

type Request

type Request struct {
	ID        int `json:"id"`
	FromUser  int `json:"fromUser"`
	ToUser    int `json:"toUser"`
	Status    int `json:"status"`
	EmailSent int `json:"emailSent"`
	Created   int `json:"created"`
	Updated   int `json:"updated"`
	Deleted   int `json:"deleted"`
}
type RequestLink struct {
	ID      int    `json:"id"`
	User    int    `json:"user"`
	Code    string `json:"code"`
	Created int    `json:"created"`
	Updated int    `json:"updated"`
	Deleted int    `json:"deleted"`
}

type User

type User struct {
	ID        int    `json:"id"`
	Name      string `json:"name"`
	Code      string `json:"code"`
	MainEmail string `json:"mainEmail"`
	Status    int    `json:"status"`
	Created   int    `json:"created"`
	Updated   int    `json:"updated"`
	Deleted   int    `json:"deleted"`
}

func NewUser

func NewUser(name, email string) *User

Source Files

Jump to

Keyboard shortcuts

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