task

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 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

View Source
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)
)

Columns holds all SQL columns for task fields.

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

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

View Source
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 And

func And(predicates ...predicate.Task) predicate.Task

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

func DescriptionIsNil

func DescriptionIsNil() predicate.Task

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.Task

DescriptionNotNil applies the NotNil predicate on the "description" field.

func EndsAt

func EndsAt(v time.Time) predicate.Task

EndsAt applies equality check predicate on the "endsAt" field. It's identical to EndsAtEQ.

func EndsAtEQ

func EndsAtEQ(v time.Time) predicate.Task

EndsAtEQ applies the EQ predicate on the "endsAt" field.

func EndsAtGT

func EndsAtGT(v time.Time) predicate.Task

EndsAtGT applies the GT predicate on the "endsAt" field.

func EndsAtGTE

func EndsAtGTE(v time.Time) predicate.Task

EndsAtGTE applies the GTE predicate on the "endsAt" field.

func EndsAtIn

func EndsAtIn(vs ...time.Time) predicate.Task

EndsAtIn applies the In predicate on the "endsAt" field.

func EndsAtLT

func EndsAtLT(v time.Time) predicate.Task

EndsAtLT applies the LT predicate on the "endsAt" field.

func EndsAtLTE

func EndsAtLTE(v time.Time) predicate.Task

EndsAtLTE applies the LTE predicate on the "endsAt" field.

func EndsAtNEQ

func EndsAtNEQ(v time.Time) predicate.Task

EndsAtNEQ applies the NEQ predicate on the "endsAt" field.

func EndsAtNotIn

func EndsAtNotIn(vs ...time.Time) predicate.Task

EndsAtNotIn applies the NotIn predicate on the "endsAt" field.

func HasResponses

func HasResponses() predicate.Task

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

func HasResponsible() predicate.Task

HasResponsible applies the HasEdge predicate on the "responsible" edge.

func HasResponsibleWith

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

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

func HasSchedule

func HasSchedule() predicate.Task

HasSchedule applies the HasEdge predicate on the "schedule" edge.

func HasScheduleWith

func HasScheduleWith(preds ...predicate.Schedule) predicate.Task

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

func ID

func ID(id uuid.UUID) predicate.Task

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Task

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Task

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Task

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Task

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Task

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Task

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Task) predicate.Task

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

func StartAt

func StartAt(v time.Time) predicate.Task

StartAt applies equality check predicate on the "startAt" field. It's identical to StartAtEQ.

func StartAtEQ

func StartAtEQ(v time.Time) predicate.Task

StartAtEQ applies the EQ predicate on the "startAt" field.

func StartAtGT

func StartAtGT(v time.Time) predicate.Task

StartAtGT applies the GT predicate on the "startAt" field.

func StartAtGTE

func StartAtGTE(v time.Time) predicate.Task

StartAtGTE applies the GTE predicate on the "startAt" field.

func StartAtIn

func StartAtIn(vs ...time.Time) predicate.Task

StartAtIn applies the In predicate on the "startAt" field.

func StartAtLT

func StartAtLT(v time.Time) predicate.Task

StartAtLT applies the LT predicate on the "startAt" field.

func StartAtLTE

func StartAtLTE(v time.Time) predicate.Task

StartAtLTE applies the LTE predicate on the "startAt" field.

func StartAtNEQ

func StartAtNEQ(v time.Time) predicate.Task

StartAtNEQ applies the NEQ predicate on the "startAt" field.

func StartAtNotIn

func StartAtNotIn(vs ...time.Time) predicate.Task

StartAtNotIn applies the NotIn predicate on the "startAt" field.

func Title

func Title(v string) predicate.Task

Title applies equality check predicate on the "title" field. It's identical to TitleEQ.

func TitleContains

func TitleContains(v string) predicate.Task

TitleContains applies the Contains predicate on the "title" field.

func TitleContainsFold

func TitleContainsFold(v string) predicate.Task

TitleContainsFold applies the ContainsFold predicate on the "title" field.

func TitleEQ

func TitleEQ(v string) predicate.Task

TitleEQ applies the EQ predicate on the "title" field.

func TitleEqualFold

func TitleEqualFold(v string) predicate.Task

TitleEqualFold applies the EqualFold predicate on the "title" field.

func TitleGT

func TitleGT(v string) predicate.Task

TitleGT applies the GT predicate on the "title" field.

func TitleGTE

func TitleGTE(v string) predicate.Task

TitleGTE applies the GTE predicate on the "title" field.

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.Task

TitleHasPrefix applies the HasPrefix predicate on the "title" field.

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.Task

TitleHasSuffix applies the HasSuffix predicate on the "title" field.

func TitleIn

func TitleIn(vs ...string) predicate.Task

TitleIn applies the In predicate on the "title" field.

func TitleLT

func TitleLT(v string) predicate.Task

TitleLT applies the LT predicate on the "title" field.

func TitleLTE

func TitleLTE(v string) predicate.Task

TitleLTE applies the LTE predicate on the "title" field.

func TitleNEQ

func TitleNEQ(v string) predicate.Task

TitleNEQ applies the NEQ predicate on the "title" field.

func TitleNotIn

func TitleNotIn(vs ...string) predicate.Task

TitleNotIn applies the NotIn predicate on the "title" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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