model

package
v0.0.0-...-b77e144 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type File

type File struct {
	ID        scalars.UUID `json:"id"`
	CreatedAt time.Time    `json:"createdAt"`
	UpdatedAt time.Time    `json:"updatedAt"`
	URL       string       `json:"url"`
	Name      string       `json:"name"`
	Type      string       `json:"type"`
	Size      int          `json:"size"`
}

type FileInput

type FileInput struct {
	URL  string `json:"url"`
	Name string `json:"name"`
	Type string `json:"type"`
	Size int    `json:"size"`
}

type Instruction

type Instruction struct {
	ID        scalars.UUID `json:"id"`
	CreatedAt time.Time    `json:"createdAt"`
	UpdatedAt time.Time    `json:"updatedAt"`
	Index     int          `json:"index"`
	Text      string       `json:"text"`
	Picture   *File        `json:"picture"`
	Audio     *File        `json:"audio"`
	Video     *File        `json:"video"`
}

type InstructionInput

type InstructionInput struct {
	Index int    `json:"index"`
	Text  string `json:"text"`
}

type Trustee

type Trustee struct {
	ID                    scalars.UUID `json:"id"`
	CreatedAt             time.Time    `json:"createdAt"`
	UpdatedAt             time.Time    `json:"updatedAt"`
	Relationship          TrusteeType  `json:"relationship"`
	Name                  string       `json:"name"`
	Email                 string       `json:"email"`
	Phone                 string       `json:"phone"`
	FacebookLink          *string      `json:"facebookLink"`
	TwitterLink           *string      `json:"twitterLink"`
	AdditionalInformation *string      `json:"additionalInformation"`
}

type TrusteeInput

type TrusteeInput struct {
	Name                  string      `json:"name"`
	Relationship          TrusteeType `json:"relationship"`
	Email                 string      `json:"email"`
	Phone                 string      `json:"phone"`
	FacebookLink          *string     `json:"facebookLink"`
	TwitterLink           *string     `json:"twitterLink"`
	AdditionalInformation *string     `json:"additionalInformation"`
}

type TrusteeType

type TrusteeType string
const (
	TrusteeTypeFather        TrusteeType = "father"
	TrusteeTypeMother        TrusteeType = "mother"
	TrusteeTypeOtherRelative TrusteeType = "other_relative"
	TrusteeTypeBestFriend    TrusteeType = "best_friend"
	TrusteeTypeSchoolFriend  TrusteeType = "school_friend"
	TrusteeTypeCollegeFriend TrusteeType = "college_friend"
	TrusteeTypeOtherFriend   TrusteeType = "other_friend"
	TrusteeTypeHusband       TrusteeType = "husband"
	TrusteeTypeWife          TrusteeType = "wife"
	TrusteeTypeGirlfriend    TrusteeType = "girlfriend"
	TrusteeTypeBoyfriend     TrusteeType = "boyfriend"
	TrusteeTypeFiance        TrusteeType = "fiance"
	TrusteeTypeAcquaintance  TrusteeType = "acquaintance"
)

func (TrusteeType) IsValid

func (e TrusteeType) IsValid() bool

func (TrusteeType) MarshalGQL

func (e TrusteeType) MarshalGQL(w io.Writer)

func (TrusteeType) String

func (e TrusteeType) String() string

func (*TrusteeType) UnmarshalGQL

func (e *TrusteeType) UnmarshalGQL(v interface{}) error

type UpdateTrustee

type UpdateTrustee struct {
	ID                    scalars.UUID `json:"id"`
	Name                  *string      `json:"name"`
	Relationship          *TrusteeType `json:"relationship"`
	Email                 *string      `json:"email"`
	Phone                 *string      `json:"phone"`
	FacebookLink          *string      `json:"facebookLink"`
	TwitterLink           *string      `json:"twitterLink"`
	AdditionalInformation *string      `json:"additionalInformation"`
}

type Version

type Version struct {
	Number string `json:"number"`
}

type Will

type Will struct {
	ID           scalars.UUID   `json:"id"`
	CreatedAt    time.Time      `json:"createdAt"`
	UpdatedAt    time.Time      `json:"updatedAt"`
	Title        string         `json:"title"`
	Priority     *int           `json:"priority"`
	Instructions []*Instruction `json:"instructions"`
	Video        *File          `json:"video"`
	Audio        *File          `json:"audio"`
	Picture      *File          `json:"picture"`
	Trustees     []*Trustee     `json:"trustees"`
}

type WillInput

type WillInput struct {
	Title        string              `json:"title"`
	Priority     *int                `json:"priority"`
	Instructions []*InstructionInput `json:"instructions"`
}

Jump to

Keyboard shortcuts

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