doctor

package
v0.0.0-...-009ff64 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the doctor type in the database.
	Label = "doctor"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name vertex property in the database.
	FieldName = "name"
	// FieldEmail holds the string denoting the email vertex property in the database.
	FieldEmail = "email"
	// FieldPhone holds the string denoting the phone vertex property in the database.
	FieldPhone = "phone"
	// FieldState holds the string denoting the state vertex property in the database.
	FieldState = "state"
	// FieldLastConnection holds the string denoting the lastconnection vertex property in the database.
	FieldLastConnection = "last_connection"
	// FieldVolunteer holds the string denoting the volunteer vertex property in the database.
	FieldVolunteer = "volunteer"

	// Table holds the table name of the doctor in the database.
	Table = "doctors"
	// NotesTable is the table the holds the notes relation/edge.
	NotesTable = "medical_notes"
	// NotesInverseTable is the table name for the MedicalNote entity.
	// It exists in this package in order to avoid circular dependency with the "medicalnote" package.
	NotesInverseTable = "medical_notes"
	// NotesColumn is the table column denoting the notes relation/edge.
	NotesColumn = "doctor_notes"
	// ResponsesTable is the table the holds the responses relation/edge.
	ResponsesTable = "task_responses"
	// ResponsesInverseTable is the table name for the TaskResponse entity.
	// It exists in this package in order to avoid circular dependency with the "taskresponse" package.
	ResponsesInverseTable = "task_responses"
	// ResponsesColumn is the table column denoting the responses relation/edge.
	ResponsesColumn = "doctor_responses"
	// TasksTable is the table the holds the tasks relation/edge. The primary key declared below.
	TasksTable = "task_responsible"
	// TasksInverseTable is the table name for the Task entity.
	// It exists in this package in order to avoid circular dependency with the "task" package.
	TasksInverseTable = "tasks"
)

Variables

View Source
var (

	// DefaultLastConnection holds the default value on creation for the lastConnection field.
	DefaultLastConnection = descLastConnection.Default.(func() time.Time)

	// DefaultVolunteer holds the default value on creation for the volunteer field.
	DefaultVolunteer = descVolunteer.Default.(bool)
)

Columns holds all SQL columns for doctor fields.

View Source
var (
	// TasksPrimaryKey and TasksColumn2 are the table columns denoting the
	// primary key for the tasks relation (M2M).
	TasksPrimaryKey = []string{"task_id", "doctor_id"}
)

Functions

func And

func And(predicates ...predicate.Doctor) predicate.Doctor

And groups list of predicates with the AND operator between them.

func Email

func Email(v string) predicate.Doctor

Email applies equality check predicate on the "email" field. It's identical to EmailEQ.

func EmailContains

func EmailContains(v string) predicate.Doctor

EmailContains applies the Contains predicate on the "email" field.

func EmailContainsFold

func EmailContainsFold(v string) predicate.Doctor

EmailContainsFold applies the ContainsFold predicate on the "email" field.

func EmailEQ

func EmailEQ(v string) predicate.Doctor

EmailEQ applies the EQ predicate on the "email" field.

func EmailEqualFold

func EmailEqualFold(v string) predicate.Doctor

EmailEqualFold applies the EqualFold predicate on the "email" field.

func EmailGT

func EmailGT(v string) predicate.Doctor

EmailGT applies the GT predicate on the "email" field.

func EmailGTE

func EmailGTE(v string) predicate.Doctor

EmailGTE applies the GTE predicate on the "email" field.

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.Doctor

EmailHasPrefix applies the HasPrefix predicate on the "email" field.

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.Doctor

EmailHasSuffix applies the HasSuffix predicate on the "email" field.

func EmailIn

func EmailIn(vs ...string) predicate.Doctor

EmailIn applies the In predicate on the "email" field.

func EmailLT

func EmailLT(v string) predicate.Doctor

EmailLT applies the LT predicate on the "email" field.

func EmailLTE

func EmailLTE(v string) predicate.Doctor

EmailLTE applies the LTE predicate on the "email" field.

func EmailNEQ

func EmailNEQ(v string) predicate.Doctor

EmailNEQ applies the NEQ predicate on the "email" field.

func EmailNotIn

func EmailNotIn(vs ...string) predicate.Doctor

EmailNotIn applies the NotIn predicate on the "email" field.

func HasNotes

func HasNotes() predicate.Doctor

HasNotes applies the HasEdge predicate on the "notes" edge.

func HasNotesWith

func HasNotesWith(preds ...predicate.MedicalNote) predicate.Doctor

HasNotesWith applies the HasEdge predicate on the "notes" edge with a given conditions (other predicates).

func HasResponses

func HasResponses() predicate.Doctor

HasResponses applies the HasEdge predicate on the "responses" edge.

func HasResponsesWith

func HasResponsesWith(preds ...predicate.TaskResponse) predicate.Doctor

HasResponsesWith applies the HasEdge predicate on the "responses" edge with a given conditions (other predicates).

func HasTasks

func HasTasks() predicate.Doctor

HasTasks applies the HasEdge predicate on the "tasks" edge.

func HasTasksWith

func HasTasksWith(preds ...predicate.Task) predicate.Doctor

HasTasksWith applies the HasEdge predicate on the "tasks" edge with a given conditions (other predicates).

func ID

func ID(id uuid.UUID) predicate.Doctor

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Doctor

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Doctor

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Doctor

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Doctor

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Doctor

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Doctor

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Doctor

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Doctor

IDNotIn applies the NotIn predicate on the ID field.

func LastConnection

func LastConnection(v time.Time) predicate.Doctor

LastConnection applies equality check predicate on the "lastConnection" field. It's identical to LastConnectionEQ.

func LastConnectionEQ

func LastConnectionEQ(v time.Time) predicate.Doctor

LastConnectionEQ applies the EQ predicate on the "lastConnection" field.

func LastConnectionGT

func LastConnectionGT(v time.Time) predicate.Doctor

LastConnectionGT applies the GT predicate on the "lastConnection" field.

func LastConnectionGTE

func LastConnectionGTE(v time.Time) predicate.Doctor

LastConnectionGTE applies the GTE predicate on the "lastConnection" field.

func LastConnectionIn

func LastConnectionIn(vs ...time.Time) predicate.Doctor

LastConnectionIn applies the In predicate on the "lastConnection" field.

func LastConnectionIsNil

func LastConnectionIsNil() predicate.Doctor

LastConnectionIsNil applies the IsNil predicate on the "lastConnection" field.

func LastConnectionLT

func LastConnectionLT(v time.Time) predicate.Doctor

LastConnectionLT applies the LT predicate on the "lastConnection" field.

func LastConnectionLTE

func LastConnectionLTE(v time.Time) predicate.Doctor

LastConnectionLTE applies the LTE predicate on the "lastConnection" field.

func LastConnectionNEQ

func LastConnectionNEQ(v time.Time) predicate.Doctor

LastConnectionNEQ applies the NEQ predicate on the "lastConnection" field.

func LastConnectionNotIn

func LastConnectionNotIn(vs ...time.Time) predicate.Doctor

LastConnectionNotIn applies the NotIn predicate on the "lastConnection" field.

func LastConnectionNotNil

func LastConnectionNotNil() predicate.Doctor

LastConnectionNotNil applies the NotNil predicate on the "lastConnection" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Doctor) predicate.Doctor

Or groups list of predicates with the OR operator between them.

func Phone

func Phone(v string) predicate.Doctor

Phone applies equality check predicate on the "phone" field. It's identical to PhoneEQ.

func PhoneContains

func PhoneContains(v string) predicate.Doctor

PhoneContains applies the Contains predicate on the "phone" field.

func PhoneContainsFold

func PhoneContainsFold(v string) predicate.Doctor

PhoneContainsFold applies the ContainsFold predicate on the "phone" field.

func PhoneEQ

func PhoneEQ(v string) predicate.Doctor

PhoneEQ applies the EQ predicate on the "phone" field.

func PhoneEqualFold

func PhoneEqualFold(v string) predicate.Doctor

PhoneEqualFold applies the EqualFold predicate on the "phone" field.

func PhoneGT

func PhoneGT(v string) predicate.Doctor

PhoneGT applies the GT predicate on the "phone" field.

func PhoneGTE

func PhoneGTE(v string) predicate.Doctor

PhoneGTE applies the GTE predicate on the "phone" field.

func PhoneHasPrefix

func PhoneHasPrefix(v string) predicate.Doctor

PhoneHasPrefix applies the HasPrefix predicate on the "phone" field.

func PhoneHasSuffix

func PhoneHasSuffix(v string) predicate.Doctor

PhoneHasSuffix applies the HasSuffix predicate on the "phone" field.

func PhoneIn

func PhoneIn(vs ...string) predicate.Doctor

PhoneIn applies the In predicate on the "phone" field.

func PhoneLT

func PhoneLT(v string) predicate.Doctor

PhoneLT applies the LT predicate on the "phone" field.

func PhoneLTE

func PhoneLTE(v string) predicate.Doctor

PhoneLTE applies the LTE predicate on the "phone" field.

func PhoneNEQ

func PhoneNEQ(v string) predicate.Doctor

PhoneNEQ applies the NEQ predicate on the "phone" field.

func PhoneNotIn

func PhoneNotIn(vs ...string) predicate.Doctor

PhoneNotIn applies the NotIn predicate on the "phone" field.

func StateEQ

func StateEQ(v State) predicate.Doctor

StateEQ applies the EQ predicate on the "state" field.

func StateIn

func StateIn(vs ...State) predicate.Doctor

StateIn applies the In predicate on the "state" field.

func StateNEQ

func StateNEQ(v State) predicate.Doctor

StateNEQ applies the NEQ predicate on the "state" field.

func StateNotIn

func StateNotIn(vs ...State) predicate.Doctor

StateNotIn applies the NotIn predicate on the "state" field.

func StateValidator

func StateValidator(s State) error

StateValidator is a validator for the "s" field enum values. It is called by the builders before save.

func Volunteer

func Volunteer(v bool) predicate.Doctor

Volunteer applies equality check predicate on the "volunteer" field. It's identical to VolunteerEQ.

func VolunteerEQ

func VolunteerEQ(v bool) predicate.Doctor

VolunteerEQ applies the EQ predicate on the "volunteer" field.

func VolunteerNEQ

func VolunteerNEQ(v bool) predicate.Doctor

VolunteerNEQ applies the NEQ predicate on the "volunteer" field.

Types

type State

type State string

State defines the type for the state enum field.

const (
	StateIdle        State = "idle"
	StateWorking     State = "working"
	StateUnavailable State = "unavailable"
)

State values.

func (State) String

func (s State) String() string

Jump to

Keyboard shortcuts

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