Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Doctor) predicate.Doctor
- func Email(v string) predicate.Doctor
- func EmailContains(v string) predicate.Doctor
- func EmailContainsFold(v string) predicate.Doctor
- func EmailEQ(v string) predicate.Doctor
- func EmailEqualFold(v string) predicate.Doctor
- func EmailGT(v string) predicate.Doctor
- func EmailGTE(v string) predicate.Doctor
- func EmailHasPrefix(v string) predicate.Doctor
- func EmailHasSuffix(v string) predicate.Doctor
- func EmailIn(vs ...string) predicate.Doctor
- func EmailLT(v string) predicate.Doctor
- func EmailLTE(v string) predicate.Doctor
- func EmailNEQ(v string) predicate.Doctor
- func EmailNotIn(vs ...string) predicate.Doctor
- func HasNotes() predicate.Doctor
- func HasNotesWith(preds ...predicate.MedicalNote) predicate.Doctor
- func HasResponses() predicate.Doctor
- func HasResponsesWith(preds ...predicate.TaskResponse) predicate.Doctor
- func HasTasks() predicate.Doctor
- func HasTasksWith(preds ...predicate.Task) predicate.Doctor
- func ID(id uuid.UUID) predicate.Doctor
- func IDEQ(id uuid.UUID) predicate.Doctor
- func IDGT(id uuid.UUID) predicate.Doctor
- func IDGTE(id uuid.UUID) predicate.Doctor
- func IDIn(ids ...uuid.UUID) predicate.Doctor
- func IDLT(id uuid.UUID) predicate.Doctor
- func IDLTE(id uuid.UUID) predicate.Doctor
- func IDNEQ(id uuid.UUID) predicate.Doctor
- func IDNotIn(ids ...uuid.UUID) predicate.Doctor
- func LastConnection(v time.Time) predicate.Doctor
- func LastConnectionEQ(v time.Time) predicate.Doctor
- func LastConnectionGT(v time.Time) predicate.Doctor
- func LastConnectionGTE(v time.Time) predicate.Doctor
- func LastConnectionIn(vs ...time.Time) predicate.Doctor
- func LastConnectionIsNil() predicate.Doctor
- func LastConnectionLT(v time.Time) predicate.Doctor
- func LastConnectionLTE(v time.Time) predicate.Doctor
- func LastConnectionNEQ(v time.Time) predicate.Doctor
- func LastConnectionNotIn(vs ...time.Time) predicate.Doctor
- func LastConnectionNotNil() predicate.Doctor
- func Not(p predicate.Doctor) predicate.Doctor
- func Or(predicates ...predicate.Doctor) predicate.Doctor
- func Phone(v string) predicate.Doctor
- func PhoneContains(v string) predicate.Doctor
- func PhoneContainsFold(v string) predicate.Doctor
- func PhoneEQ(v string) predicate.Doctor
- func PhoneEqualFold(v string) predicate.Doctor
- func PhoneGT(v string) predicate.Doctor
- func PhoneGTE(v string) predicate.Doctor
- func PhoneHasPrefix(v string) predicate.Doctor
- func PhoneHasSuffix(v string) predicate.Doctor
- func PhoneIn(vs ...string) predicate.Doctor
- func PhoneLT(v string) predicate.Doctor
- func PhoneLTE(v string) predicate.Doctor
- func PhoneNEQ(v string) predicate.Doctor
- func PhoneNotIn(vs ...string) predicate.Doctor
- func StateEQ(v State) predicate.Doctor
- func StateIn(vs ...State) predicate.Doctor
- func StateNEQ(v State) predicate.Doctor
- func StateNotIn(vs ...State) predicate.Doctor
- func StateValidator(s State) error
- func Volunteer(v bool) predicate.Doctor
- func VolunteerEQ(v bool) predicate.Doctor
- func VolunteerNEQ(v bool) predicate.Doctor
- type State
Constants ¶
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 ¶
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) )
var Columns = []string{ FieldID, FieldName, FieldEmail, FieldPhone, FieldState, FieldLastConnection, FieldVolunteer, }
Columns holds all SQL columns for doctor fields.
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 Email ¶
Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
func EmailContains ¶
EmailContains applies the Contains predicate on the "email" field.
func EmailContainsFold ¶
EmailContainsFold applies the ContainsFold predicate on the "email" field.
func EmailEqualFold ¶
EmailEqualFold applies the EqualFold predicate on the "email" field.
func EmailHasPrefix ¶
EmailHasPrefix applies the HasPrefix predicate on the "email" field.
func EmailHasSuffix ¶
EmailHasSuffix applies the HasSuffix predicate on the "email" field.
func EmailNotIn ¶
EmailNotIn applies the NotIn predicate on the "email" field.
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 ¶
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 HasTasksWith ¶
HasTasksWith applies the HasEdge predicate on the "tasks" edge with a given conditions (other predicates).
func LastConnection ¶
LastConnection applies equality check predicate on the "lastConnection" field. It's identical to LastConnectionEQ.
func LastConnectionEQ ¶
LastConnectionEQ applies the EQ predicate on the "lastConnection" field.
func LastConnectionGT ¶
LastConnectionGT applies the GT predicate on the "lastConnection" field.
func LastConnectionGTE ¶
LastConnectionGTE applies the GTE predicate on the "lastConnection" field.
func LastConnectionIn ¶
LastConnectionIn applies the In predicate on the "lastConnection" field.
func LastConnectionIsNil ¶
LastConnectionIsNil applies the IsNil predicate on the "lastConnection" field.
func LastConnectionLT ¶
LastConnectionLT applies the LT predicate on the "lastConnection" field.
func LastConnectionLTE ¶
LastConnectionLTE applies the LTE predicate on the "lastConnection" field.
func LastConnectionNEQ ¶
LastConnectionNEQ applies the NEQ predicate on the "lastConnection" field.
func LastConnectionNotIn ¶
LastConnectionNotIn applies the NotIn predicate on the "lastConnection" field.
func LastConnectionNotNil ¶
LastConnectionNotNil applies the NotNil predicate on the "lastConnection" field.
func Phone ¶
Phone applies equality check predicate on the "phone" field. It's identical to PhoneEQ.
func PhoneContains ¶
PhoneContains applies the Contains predicate on the "phone" field.
func PhoneContainsFold ¶
PhoneContainsFold applies the ContainsFold predicate on the "phone" field.
func PhoneEqualFold ¶
PhoneEqualFold applies the EqualFold predicate on the "phone" field.
func PhoneHasPrefix ¶
PhoneHasPrefix applies the HasPrefix predicate on the "phone" field.
func PhoneHasSuffix ¶
PhoneHasSuffix applies the HasSuffix predicate on the "phone" field.
func PhoneNotIn ¶
PhoneNotIn applies the NotIn predicate on the "phone" field.
func StateNotIn ¶
StateNotIn applies the NotIn predicate on the "state" field.
func StateValidator ¶
StateValidator is a validator for the "s" field enum values. It is called by the builders before save.
func Volunteer ¶
Volunteer applies equality check predicate on the "volunteer" field. It's identical to VolunteerEQ.
func VolunteerEQ ¶
VolunteerEQ applies the EQ predicate on the "volunteer" field.
func VolunteerNEQ ¶
VolunteerNEQ applies the NEQ predicate on the "volunteer" field.