entities

package
v0.0.0-...-1969f72 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionDenied

type ActionDenied struct{}

Types definitions

func (*ActionDenied) Error

func (m *ActionDenied) Error() string

/ Types definitions extensions Action Denied error

type DuplicatedData

type DuplicatedData struct{}

func (*DuplicatedData) Error

func (m *DuplicatedData) Error() string

Duplicated data error

type EmailAlreadyExistsError

type EmailAlreadyExistsError struct{}

func (*EmailAlreadyExistsError) Error

func (m *EmailAlreadyExistsError) Error() string

Email already exists error

type EmailOrPasswordError

type EmailOrPasswordError struct{}

func (*EmailOrPasswordError) Error

func (m *EmailOrPasswordError) Error() string

Email or password error

type InvalidOrExpiredTokenError

type InvalidOrExpiredTokenError struct{}

func (*InvalidOrExpiredTokenError) Error

Invalid or expired token error

type NonExistentData

type NonExistentData struct{}

func (*NonExistentData) Error

func (m *NonExistentData) Error() string

Non existent data error

type NotFoundDataError

type NotFoundDataError struct{}

func (*NotFoundDataError) Error

func (m *NotFoundDataError) Error() string

Not found data error

type Role

type Role struct {
	gorm.Model
	Name        string `json:"name" gorm:"unique"`
	Description string `json:"description"`
}

type User

type User struct {
	gorm.Model
	FullName             string     `json:"full_name"`
	Email                string     `json:"email" gorm:"unique"`
	Role                 string     `json:"role"`
	Gender               string     `json:"gender"`
	Ocupation            string     `json:"ocupation"`
	ProfileImgUrl        string     `json:"profile_img_url"`
	IdentificationType   string     `json:"identification_type"`
	IdentificationNumber string     `json:"identification_number"`
	CountryCode          string     `json:"country_code"`
	PhoneNumber          string     `json:"phone_number"`
	Password             string     `json:"password"`
	Weight               *float64   `json:"weight"`
	Height               *float64   `json:"height"`
	Birthday             *time.Time `json:"birthday"`
}

func (*User) ToGql

func (u *User) ToGql() *model.User

O(1) To Graphql format

Jump to

Keyboard shortcuts

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