Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Task) predicate.Task
- func DescriptionIsNil() predicate.Task
- func DescriptionNotNil() predicate.Task
- func EndsAt(v time.Time) predicate.Task
- func EndsAtEQ(v time.Time) predicate.Task
- func EndsAtGT(v time.Time) predicate.Task
- func EndsAtGTE(v time.Time) predicate.Task
- func EndsAtIn(vs ...time.Time) predicate.Task
- func EndsAtLT(v time.Time) predicate.Task
- func EndsAtLTE(v time.Time) predicate.Task
- func EndsAtNEQ(v time.Time) predicate.Task
- func EndsAtNotIn(vs ...time.Time) predicate.Task
- func HasResponses() predicate.Task
- func HasResponsesWith(preds ...predicate.TaskResponse) predicate.Task
- func HasResponsible() predicate.Task
- func HasResponsibleWith(preds ...predicate.Doctor) predicate.Task
- func HasSchedule() predicate.Task
- func HasScheduleWith(preds ...predicate.Schedule) predicate.Task
- func ID(id uuid.UUID) predicate.Task
- func IDEQ(id uuid.UUID) predicate.Task
- func IDGT(id uuid.UUID) predicate.Task
- func IDGTE(id uuid.UUID) predicate.Task
- func IDIn(ids ...uuid.UUID) predicate.Task
- func IDLT(id uuid.UUID) predicate.Task
- func IDLTE(id uuid.UUID) predicate.Task
- func IDNEQ(id uuid.UUID) predicate.Task
- func IDNotIn(ids ...uuid.UUID) predicate.Task
- func Not(p predicate.Task) predicate.Task
- func Or(predicates ...predicate.Task) predicate.Task
- func StartAt(v time.Time) predicate.Task
- func StartAtEQ(v time.Time) predicate.Task
- func StartAtGT(v time.Time) predicate.Task
- func StartAtGTE(v time.Time) predicate.Task
- func StartAtIn(vs ...time.Time) predicate.Task
- func StartAtLT(v time.Time) predicate.Task
- func StartAtLTE(v time.Time) predicate.Task
- func StartAtNEQ(v time.Time) predicate.Task
- func StartAtNotIn(vs ...time.Time) predicate.Task
- func Title(v string) predicate.Task
- func TitleContains(v string) predicate.Task
- func TitleContainsFold(v string) predicate.Task
- func TitleEQ(v string) predicate.Task
- func TitleEqualFold(v string) predicate.Task
- func TitleGT(v string) predicate.Task
- func TitleGTE(v string) predicate.Task
- func TitleHasPrefix(v string) predicate.Task
- func TitleHasSuffix(v string) predicate.Task
- func TitleIn(vs ...string) predicate.Task
- func TitleLT(v string) predicate.Task
- func TitleLTE(v string) predicate.Task
- func TitleNEQ(v string) predicate.Task
- func TitleNotIn(vs ...string) predicate.Task
Constants ¶
const ( // Label holds the string label denoting the task type in the database. Label = "task" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTitle holds the string denoting the title vertex property in the database. FieldTitle = "title" // FieldStartAt holds the string denoting the startat vertex property in the database. FieldStartAt = "start_at" // FieldEndsAt holds the string denoting the endsat vertex property in the database. FieldEndsAt = "ends_at" // FieldDescription holds the string denoting the description vertex property in the database. FieldDescription = "description" // Table holds the table name of the task in the database. Table = "tasks" // ResponsibleTable is the table the holds the responsible relation/edge. The primary key declared below. ResponsibleTable = "task_responsible" // ResponsibleInverseTable is the table name for the Doctor entity. // It exists in this package in order to avoid circular dependency with the "doctor" package. ResponsibleInverseTable = "doctors" // 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 = "task_responses" // ScheduleTable is the table the holds the schedule relation/edge. ScheduleTable = "tasks" // ScheduleInverseTable is the table name for the Schedule entity. // It exists in this package in order to avoid circular dependency with the "schedule" package. ScheduleInverseTable = "schedules" // ScheduleColumn is the table column denoting the schedule relation/edge. ScheduleColumn = "schedule_tasks" )
Variables ¶
var ( // DefaultStartAt holds the default value on creation for the startAt field. DefaultStartAt = descStartAt.Default.(func() time.Time) // DefaultEndsAt holds the default value on creation for the endsAt field. DefaultEndsAt = descEndsAt.Default.(func() time.Time) )
var Columns = []string{ FieldID, FieldTitle, FieldStartAt, FieldEndsAt, FieldDescription, }
Columns holds all SQL columns for task fields.
var ForeignKeys = []string{
"schedule_tasks",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Task type.
var ( // ResponsiblePrimaryKey and ResponsibleColumn2 are the table columns denoting the // primary key for the responsible relation (M2M). ResponsiblePrimaryKey = []string{"task_id", "doctor_id"} )
Functions ¶
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func EndsAt ¶
EndsAt applies equality check predicate on the "endsAt" field. It's identical to EndsAtEQ.
func EndsAtNotIn ¶
EndsAtNotIn applies the NotIn predicate on the "endsAt" field.
func HasResponses ¶
HasResponses applies the HasEdge predicate on the "responses" edge.
func HasResponsesWith ¶
func HasResponsesWith(preds ...predicate.TaskResponse) predicate.Task
HasResponsesWith applies the HasEdge predicate on the "responses" edge with a given conditions (other predicates).
func HasResponsible ¶
HasResponsible applies the HasEdge predicate on the "responsible" edge.
func HasResponsibleWith ¶
HasResponsibleWith applies the HasEdge predicate on the "responsible" edge with a given conditions (other predicates).
func HasSchedule ¶
HasSchedule applies the HasEdge predicate on the "schedule" edge.
func HasScheduleWith ¶
HasScheduleWith applies the HasEdge predicate on the "schedule" edge with a given conditions (other predicates).
func StartAt ¶
StartAt applies equality check predicate on the "startAt" field. It's identical to StartAtEQ.
func StartAtGTE ¶
StartAtGTE applies the GTE predicate on the "startAt" field.
func StartAtLTE ¶
StartAtLTE applies the LTE predicate on the "startAt" field.
func StartAtNEQ ¶
StartAtNEQ applies the NEQ predicate on the "startAt" field.
func StartAtNotIn ¶
StartAtNotIn applies the NotIn predicate on the "startAt" field.
func Title ¶
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEqualFold ¶
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleHasPrefix ¶
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" field.
Types ¶
This section is empty.