medicalnote

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: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the medicalnote type in the database.
	Label = "medical_note"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldAt holds the string denoting the at vertex property in the database.
	FieldAt = "at"
	// FieldLastChange holds the string denoting the lastchange vertex property in the database.
	FieldLastChange = "last_change"
	// FieldObservations holds the string denoting the observations vertex property in the database.
	FieldObservations = "observations"
	// FieldMeta holds the string denoting the meta vertex property in the database.
	FieldMeta = "meta"

	// Table holds the table name of the medicalnote in the database.
	Table = "medical_notes"
	// HistoryTable is the table the holds the history relation/edge.
	HistoryTable = "medical_notes"
	// HistoryInverseTable is the table name for the History entity.
	// It exists in this package in order to avoid circular dependency with the "history" package.
	HistoryInverseTable = "histories"
	// HistoryColumn is the table column denoting the history relation/edge.
	HistoryColumn = "history_notes"
	// OwnerTable is the table the holds the owner relation/edge.
	OwnerTable = "medical_notes"
	// OwnerInverseTable is the table name for the Doctor entity.
	// It exists in this package in order to avoid circular dependency with the "doctor" package.
	OwnerInverseTable = "doctors"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "doctor_notes"
)

Variables

View Source
var (

	// DefaultAt holds the default value on creation for the at field.
	DefaultAt = descAt.Default.(func() time.Time)

	// DefaultLastChange holds the default value on creation for the lastChange field.
	DefaultLastChange = descLastChange.Default.(func() time.Time)
)

Columns holds all SQL columns for medicalnote fields.

View Source
var ForeignKeys = []string{
	"doctor_notes",
	"history_notes",
}

ForeignKeys holds the SQL foreign-keys that are owned by the MedicalNote type.

Functions

func And

func And(predicates ...predicate.MedicalNote) predicate.MedicalNote

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

func At

At applies equality check predicate on the "at" field. It's identical to AtEQ.

func AtEQ

AtEQ applies the EQ predicate on the "at" field.

func AtGT

AtGT applies the GT predicate on the "at" field.

func AtGTE

func AtGTE(v time.Time) predicate.MedicalNote

AtGTE applies the GTE predicate on the "at" field.

func AtIn

func AtIn(vs ...time.Time) predicate.MedicalNote

AtIn applies the In predicate on the "at" field.

func AtLT

AtLT applies the LT predicate on the "at" field.

func AtLTE

func AtLTE(v time.Time) predicate.MedicalNote

AtLTE applies the LTE predicate on the "at" field.

func AtNEQ

func AtNEQ(v time.Time) predicate.MedicalNote

AtNEQ applies the NEQ predicate on the "at" field.

func AtNotIn

func AtNotIn(vs ...time.Time) predicate.MedicalNote

AtNotIn applies the NotIn predicate on the "at" field.

func HasHistory

func HasHistory() predicate.MedicalNote

HasHistory applies the HasEdge predicate on the "history" edge.

func HasHistoryWith

func HasHistoryWith(preds ...predicate.History) predicate.MedicalNote

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

func HasOwner

func HasOwner() predicate.MedicalNote

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

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

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

func ID

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id uuid.UUID) predicate.MedicalNote

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.MedicalNote

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.MedicalNote

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.MedicalNote

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.MedicalNote

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.MedicalNote

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LastChange

func LastChange(v time.Time) predicate.MedicalNote

LastChange applies equality check predicate on the "lastChange" field. It's identical to LastChangeEQ.

func LastChangeEQ

func LastChangeEQ(v time.Time) predicate.MedicalNote

LastChangeEQ applies the EQ predicate on the "lastChange" field.

func LastChangeGT

func LastChangeGT(v time.Time) predicate.MedicalNote

LastChangeGT applies the GT predicate on the "lastChange" field.

func LastChangeGTE

func LastChangeGTE(v time.Time) predicate.MedicalNote

LastChangeGTE applies the GTE predicate on the "lastChange" field.

func LastChangeIn

func LastChangeIn(vs ...time.Time) predicate.MedicalNote

LastChangeIn applies the In predicate on the "lastChange" field.

func LastChangeLT

func LastChangeLT(v time.Time) predicate.MedicalNote

LastChangeLT applies the LT predicate on the "lastChange" field.

func LastChangeLTE

func LastChangeLTE(v time.Time) predicate.MedicalNote

LastChangeLTE applies the LTE predicate on the "lastChange" field.

func LastChangeNEQ

func LastChangeNEQ(v time.Time) predicate.MedicalNote

LastChangeNEQ applies the NEQ predicate on the "lastChange" field.

func LastChangeNotIn

func LastChangeNotIn(vs ...time.Time) predicate.MedicalNote

LastChangeNotIn applies the NotIn predicate on the "lastChange" field.

func MetaIsNil

func MetaIsNil() predicate.MedicalNote

MetaIsNil applies the IsNil predicate on the "meta" field.

func MetaNotNil

func MetaNotNil() predicate.MedicalNote

MetaNotNil applies the NotNil predicate on the "meta" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.MedicalNote) predicate.MedicalNote

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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