entity

package
v0.0.1-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2020 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserModel

type UserModel struct {
	ID        int64          `json:"id"`
	Name      string         `json:"name"`
	Surname   string         `json:"surname"`
	Birth     time.Time      `json:"birth"`
	Username  string         `json:"username"`
	Password  string         `json:"password"`
	Image     sql.NullString `json:"image"`
	Role      string         `json:"role"`
	Active    bool           `json:"active"`
	CreatedAt time.Time      `json:"created_at"`
	UpdatedAt time.Time      `json:"updated_at"`
}

UserModel User Model

func NewUser

func NewUser() *UserModel

NewUser Returns an instance of a usermodel

func (*UserModel) Validate

func (user *UserModel) Validate() error

Validate Verify model

Jump to

Keyboard shortcuts

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