models

package
v0.0.0-...-2042c58 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidUserOrPassword = errors.New("invalid user or password")
View Source
var ErrNotAuthorized = errors.New("not authorized")
View Source
var ErrRecordNotFound = errors.New("record not found")
View Source
var ErrUnknown = errors.New("unknown error")

Functions

This section is empty.

Types

type AuthUser

type AuthUser struct {
	Id           int
	UserEmail    string `orm:"column(useremail);unique"`
	UserPassword string `orm:"column(userpassword)"`
}

func (*AuthUser) CheckPassword

func (u *AuthUser) CheckPassword(pass string) (bool, error)

func (AuthUser) TableName

func (AuthUser) TableName() string

type Patient

type Patient struct {
	Id          int
	Practice1   int       `orm:"column(practice1)"`
	Practice2   int       `orm:"column(practice2)"`
	Practice3   int       `orm:"column(practice3)"`
	Practice4   int       `orm:"column(practice4)"`
	Practice5   int       `orm:"column(practice5)"`
	Practice6   int       `orm:"column(practice6)"`
	Practice7   int       `orm:"column(practice7)"`
	Practice8   int       `orm:"column(practice8)"`
	Practice9   int       `orm:"column(practice9)"`
	Practice10  int       `orm:"column(practice10)"`
	LastName    string    `orm:"column(lastname)"`
	FirstName   string    `orm:"column(firstname)"`
	MiddleName  string    `orm:"column(middlename)"`
	DateOfBirth time.Time `orm:"column(dob)"`
	CaseName    string    `orm:"column(casename)"`
	Created     time.Time `orm:"column(created);type(datetime);auto_now_add"`
	Recycle     bool      `orm:"column(recycle)"`
}

func GetPatientById

func GetPatientById(userId int, id int) (*Patient, error)

func (Patient) TableName

func (Patient) TableName() string

type Practices

type Practices struct {
	Id               int
	PracticeName     string
	PracticeAddress1 string
	PracticeAddress2 string
	PracticeCity     string
	PracticeState    string
	PracticeZip      string
	PracticeCreated  string
}

Jump to

Keyboard shortcuts

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