timetable

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the timetable type in the database.
	Label = "timetable"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldTimetableType holds the string denoting the timetable_type field in the database.
	FieldTimetableType = "timetable_type"
	// FieldDatetimeFrom holds the string denoting the datetime_from field in the database.
	FieldDatetimeFrom = "datetime_from"
	// FieldDuration holds the string denoting the duration field in the database.
	FieldDuration = "duration"
	// FieldDatetimeTo holds the string denoting the datetime_to field in the database.
	FieldDatetimeTo = "datetime_to"
	// FieldTimeWholeDay holds the string denoting the time_whole_day field in the database.
	FieldTimeWholeDay = "time_whole_day"
	// FieldComment holds the string denoting the comment field in the database.
	FieldComment = "comment"
	// FieldAvailabilityByPhone holds the string denoting the availability_by_phone field in the database.
	FieldAvailabilityByPhone = "availability_by_phone"
	// FieldAvailabilityByEmail holds the string denoting the availability_by_email field in the database.
	FieldAvailabilityByEmail = "availability_by_email"
	// FieldAvailabilityBySms holds the string denoting the availability_by_sms field in the database.
	FieldAvailabilityBySms = "availability_by_sms"
	// FieldAvailabilityByWhatsapp holds the string denoting the availability_by_whatsapp field in the database.
	FieldAvailabilityByWhatsapp = "availability_by_whatsapp"
	// EdgeAddress holds the string denoting the address edge name in mutations.
	EdgeAddress = "address"
	// EdgeOperatorsOnDuty holds the string denoting the operators_on_duty edge name in mutations.
	EdgeOperatorsOnDuty = "operators_on_duty"
	// Table holds the table name of the timetable in the database.
	Table = "timetables"
	// AddressTable is the table that holds the address relation/edge.
	AddressTable = "timetables"
	// AddressInverseTable is the table name for the Address entity.
	// It exists in this package in order to avoid circular dependency with the "address" package.
	AddressInverseTable = "addresses"
	// AddressColumn is the table column denoting the address relation/edge.
	AddressColumn = "address_timetables"
	// OperatorsOnDutyTable is the table that holds the operators_on_duty relation/edge. The primary key declared below.
	OperatorsOnDutyTable = "timetable_operators_on_duty"
	// OperatorsOnDutyInverseTable is the table name for the Operator entity.
	// It exists in this package in order to avoid circular dependency with the "operator" package.
	OperatorsOnDutyInverseTable = "operators"
)
View Source
const DefaultTimetableType = TimetableTypeDEFAULT

TimetableTypeDEFAULT is the default value of the TimetableType enum.

Variables

View Source
var (
	Hooks [4]ent.Hook
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// DurationValidator is a validator for the "duration" field. It is called by the builders before save.
	DurationValidator func(int) error
	// DefaultTimeWholeDay holds the default value on creation for the "time_whole_day" field.
	DefaultTimeWholeDay bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/hkonitzer/ohmab/ent/runtime"

Columns holds all SQL columns for timetable fields.

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

ForeignKeys holds the SQL foreign-keys that are owned by the "timetables" table and are not defined as standalone fields in the schema.

View Source
var (
	// OperatorsOnDutyPrimaryKey and OperatorsOnDutyColumn2 are the table columns denoting the
	// primary key for the operators_on_duty relation (M2M).
	OperatorsOnDutyPrimaryKey = []string{"timetable_id", "operator_id"}
)

Functions

func And

func And(predicates ...predicate.Timetable) predicate.Timetable

And groups predicates with the AND operator between them.

func AvailabilityByEmail

func AvailabilityByEmail(v string) predicate.Timetable

AvailabilityByEmail applies equality check predicate on the "availability_by_email" field. It's identical to AvailabilityByEmailEQ.

func AvailabilityByEmailContains

func AvailabilityByEmailContains(v string) predicate.Timetable

AvailabilityByEmailContains applies the Contains predicate on the "availability_by_email" field.

func AvailabilityByEmailContainsFold

func AvailabilityByEmailContainsFold(v string) predicate.Timetable

AvailabilityByEmailContainsFold applies the ContainsFold predicate on the "availability_by_email" field.

func AvailabilityByEmailEQ

func AvailabilityByEmailEQ(v string) predicate.Timetable

AvailabilityByEmailEQ applies the EQ predicate on the "availability_by_email" field.

func AvailabilityByEmailEqualFold

func AvailabilityByEmailEqualFold(v string) predicate.Timetable

AvailabilityByEmailEqualFold applies the EqualFold predicate on the "availability_by_email" field.

func AvailabilityByEmailGT

func AvailabilityByEmailGT(v string) predicate.Timetable

AvailabilityByEmailGT applies the GT predicate on the "availability_by_email" field.

func AvailabilityByEmailGTE

func AvailabilityByEmailGTE(v string) predicate.Timetable

AvailabilityByEmailGTE applies the GTE predicate on the "availability_by_email" field.

func AvailabilityByEmailHasPrefix

func AvailabilityByEmailHasPrefix(v string) predicate.Timetable

AvailabilityByEmailHasPrefix applies the HasPrefix predicate on the "availability_by_email" field.

func AvailabilityByEmailHasSuffix

func AvailabilityByEmailHasSuffix(v string) predicate.Timetable

AvailabilityByEmailHasSuffix applies the HasSuffix predicate on the "availability_by_email" field.

func AvailabilityByEmailIn

func AvailabilityByEmailIn(vs ...string) predicate.Timetable

AvailabilityByEmailIn applies the In predicate on the "availability_by_email" field.

func AvailabilityByEmailIsNil

func AvailabilityByEmailIsNil() predicate.Timetable

AvailabilityByEmailIsNil applies the IsNil predicate on the "availability_by_email" field.

func AvailabilityByEmailLT

func AvailabilityByEmailLT(v string) predicate.Timetable

AvailabilityByEmailLT applies the LT predicate on the "availability_by_email" field.

func AvailabilityByEmailLTE

func AvailabilityByEmailLTE(v string) predicate.Timetable

AvailabilityByEmailLTE applies the LTE predicate on the "availability_by_email" field.

func AvailabilityByEmailNEQ

func AvailabilityByEmailNEQ(v string) predicate.Timetable

AvailabilityByEmailNEQ applies the NEQ predicate on the "availability_by_email" field.

func AvailabilityByEmailNotIn

func AvailabilityByEmailNotIn(vs ...string) predicate.Timetable

AvailabilityByEmailNotIn applies the NotIn predicate on the "availability_by_email" field.

func AvailabilityByEmailNotNil

func AvailabilityByEmailNotNil() predicate.Timetable

AvailabilityByEmailNotNil applies the NotNil predicate on the "availability_by_email" field.

func AvailabilityByPhone

func AvailabilityByPhone(v string) predicate.Timetable

AvailabilityByPhone applies equality check predicate on the "availability_by_phone" field. It's identical to AvailabilityByPhoneEQ.

func AvailabilityByPhoneContains

func AvailabilityByPhoneContains(v string) predicate.Timetable

AvailabilityByPhoneContains applies the Contains predicate on the "availability_by_phone" field.

func AvailabilityByPhoneContainsFold

func AvailabilityByPhoneContainsFold(v string) predicate.Timetable

AvailabilityByPhoneContainsFold applies the ContainsFold predicate on the "availability_by_phone" field.

func AvailabilityByPhoneEQ

func AvailabilityByPhoneEQ(v string) predicate.Timetable

AvailabilityByPhoneEQ applies the EQ predicate on the "availability_by_phone" field.

func AvailabilityByPhoneEqualFold

func AvailabilityByPhoneEqualFold(v string) predicate.Timetable

AvailabilityByPhoneEqualFold applies the EqualFold predicate on the "availability_by_phone" field.

func AvailabilityByPhoneGT

func AvailabilityByPhoneGT(v string) predicate.Timetable

AvailabilityByPhoneGT applies the GT predicate on the "availability_by_phone" field.

func AvailabilityByPhoneGTE

func AvailabilityByPhoneGTE(v string) predicate.Timetable

AvailabilityByPhoneGTE applies the GTE predicate on the "availability_by_phone" field.

func AvailabilityByPhoneHasPrefix

func AvailabilityByPhoneHasPrefix(v string) predicate.Timetable

AvailabilityByPhoneHasPrefix applies the HasPrefix predicate on the "availability_by_phone" field.

func AvailabilityByPhoneHasSuffix

func AvailabilityByPhoneHasSuffix(v string) predicate.Timetable

AvailabilityByPhoneHasSuffix applies the HasSuffix predicate on the "availability_by_phone" field.

func AvailabilityByPhoneIn

func AvailabilityByPhoneIn(vs ...string) predicate.Timetable

AvailabilityByPhoneIn applies the In predicate on the "availability_by_phone" field.

func AvailabilityByPhoneIsNil

func AvailabilityByPhoneIsNil() predicate.Timetable

AvailabilityByPhoneIsNil applies the IsNil predicate on the "availability_by_phone" field.

func AvailabilityByPhoneLT

func AvailabilityByPhoneLT(v string) predicate.Timetable

AvailabilityByPhoneLT applies the LT predicate on the "availability_by_phone" field.

func AvailabilityByPhoneLTE

func AvailabilityByPhoneLTE(v string) predicate.Timetable

AvailabilityByPhoneLTE applies the LTE predicate on the "availability_by_phone" field.

func AvailabilityByPhoneNEQ

func AvailabilityByPhoneNEQ(v string) predicate.Timetable

AvailabilityByPhoneNEQ applies the NEQ predicate on the "availability_by_phone" field.

func AvailabilityByPhoneNotIn

func AvailabilityByPhoneNotIn(vs ...string) predicate.Timetable

AvailabilityByPhoneNotIn applies the NotIn predicate on the "availability_by_phone" field.

func AvailabilityByPhoneNotNil

func AvailabilityByPhoneNotNil() predicate.Timetable

AvailabilityByPhoneNotNil applies the NotNil predicate on the "availability_by_phone" field.

func AvailabilityBySms

func AvailabilityBySms(v string) predicate.Timetable

AvailabilityBySms applies equality check predicate on the "availability_by_sms" field. It's identical to AvailabilityBySmsEQ.

func AvailabilityBySmsContains

func AvailabilityBySmsContains(v string) predicate.Timetable

AvailabilityBySmsContains applies the Contains predicate on the "availability_by_sms" field.

func AvailabilityBySmsContainsFold

func AvailabilityBySmsContainsFold(v string) predicate.Timetable

AvailabilityBySmsContainsFold applies the ContainsFold predicate on the "availability_by_sms" field.

func AvailabilityBySmsEQ

func AvailabilityBySmsEQ(v string) predicate.Timetable

AvailabilityBySmsEQ applies the EQ predicate on the "availability_by_sms" field.

func AvailabilityBySmsEqualFold

func AvailabilityBySmsEqualFold(v string) predicate.Timetable

AvailabilityBySmsEqualFold applies the EqualFold predicate on the "availability_by_sms" field.

func AvailabilityBySmsGT

func AvailabilityBySmsGT(v string) predicate.Timetable

AvailabilityBySmsGT applies the GT predicate on the "availability_by_sms" field.

func AvailabilityBySmsGTE

func AvailabilityBySmsGTE(v string) predicate.Timetable

AvailabilityBySmsGTE applies the GTE predicate on the "availability_by_sms" field.

func AvailabilityBySmsHasPrefix

func AvailabilityBySmsHasPrefix(v string) predicate.Timetable

AvailabilityBySmsHasPrefix applies the HasPrefix predicate on the "availability_by_sms" field.

func AvailabilityBySmsHasSuffix

func AvailabilityBySmsHasSuffix(v string) predicate.Timetable

AvailabilityBySmsHasSuffix applies the HasSuffix predicate on the "availability_by_sms" field.

func AvailabilityBySmsIn

func AvailabilityBySmsIn(vs ...string) predicate.Timetable

AvailabilityBySmsIn applies the In predicate on the "availability_by_sms" field.

func AvailabilityBySmsIsNil

func AvailabilityBySmsIsNil() predicate.Timetable

AvailabilityBySmsIsNil applies the IsNil predicate on the "availability_by_sms" field.

func AvailabilityBySmsLT

func AvailabilityBySmsLT(v string) predicate.Timetable

AvailabilityBySmsLT applies the LT predicate on the "availability_by_sms" field.

func AvailabilityBySmsLTE

func AvailabilityBySmsLTE(v string) predicate.Timetable

AvailabilityBySmsLTE applies the LTE predicate on the "availability_by_sms" field.

func AvailabilityBySmsNEQ

func AvailabilityBySmsNEQ(v string) predicate.Timetable

AvailabilityBySmsNEQ applies the NEQ predicate on the "availability_by_sms" field.

func AvailabilityBySmsNotIn

func AvailabilityBySmsNotIn(vs ...string) predicate.Timetable

AvailabilityBySmsNotIn applies the NotIn predicate on the "availability_by_sms" field.

func AvailabilityBySmsNotNil

func AvailabilityBySmsNotNil() predicate.Timetable

AvailabilityBySmsNotNil applies the NotNil predicate on the "availability_by_sms" field.

func AvailabilityByWhatsapp

func AvailabilityByWhatsapp(v string) predicate.Timetable

AvailabilityByWhatsapp applies equality check predicate on the "availability_by_whatsapp" field. It's identical to AvailabilityByWhatsappEQ.

func AvailabilityByWhatsappContains

func AvailabilityByWhatsappContains(v string) predicate.Timetable

AvailabilityByWhatsappContains applies the Contains predicate on the "availability_by_whatsapp" field.

func AvailabilityByWhatsappContainsFold

func AvailabilityByWhatsappContainsFold(v string) predicate.Timetable

AvailabilityByWhatsappContainsFold applies the ContainsFold predicate on the "availability_by_whatsapp" field.

func AvailabilityByWhatsappEQ

func AvailabilityByWhatsappEQ(v string) predicate.Timetable

AvailabilityByWhatsappEQ applies the EQ predicate on the "availability_by_whatsapp" field.

func AvailabilityByWhatsappEqualFold

func AvailabilityByWhatsappEqualFold(v string) predicate.Timetable

AvailabilityByWhatsappEqualFold applies the EqualFold predicate on the "availability_by_whatsapp" field.

func AvailabilityByWhatsappGT

func AvailabilityByWhatsappGT(v string) predicate.Timetable

AvailabilityByWhatsappGT applies the GT predicate on the "availability_by_whatsapp" field.

func AvailabilityByWhatsappGTE

func AvailabilityByWhatsappGTE(v string) predicate.Timetable

AvailabilityByWhatsappGTE applies the GTE predicate on the "availability_by_whatsapp" field.

func AvailabilityByWhatsappHasPrefix

func AvailabilityByWhatsappHasPrefix(v string) predicate.Timetable

AvailabilityByWhatsappHasPrefix applies the HasPrefix predicate on the "availability_by_whatsapp" field.

func AvailabilityByWhatsappHasSuffix

func AvailabilityByWhatsappHasSuffix(v string) predicate.Timetable

AvailabilityByWhatsappHasSuffix applies the HasSuffix predicate on the "availability_by_whatsapp" field.

func AvailabilityByWhatsappIn

func AvailabilityByWhatsappIn(vs ...string) predicate.Timetable

AvailabilityByWhatsappIn applies the In predicate on the "availability_by_whatsapp" field.

func AvailabilityByWhatsappIsNil

func AvailabilityByWhatsappIsNil() predicate.Timetable

AvailabilityByWhatsappIsNil applies the IsNil predicate on the "availability_by_whatsapp" field.

func AvailabilityByWhatsappLT

func AvailabilityByWhatsappLT(v string) predicate.Timetable

AvailabilityByWhatsappLT applies the LT predicate on the "availability_by_whatsapp" field.

func AvailabilityByWhatsappLTE

func AvailabilityByWhatsappLTE(v string) predicate.Timetable

AvailabilityByWhatsappLTE applies the LTE predicate on the "availability_by_whatsapp" field.

func AvailabilityByWhatsappNEQ

func AvailabilityByWhatsappNEQ(v string) predicate.Timetable

AvailabilityByWhatsappNEQ applies the NEQ predicate on the "availability_by_whatsapp" field.

func AvailabilityByWhatsappNotIn

func AvailabilityByWhatsappNotIn(vs ...string) predicate.Timetable

AvailabilityByWhatsappNotIn applies the NotIn predicate on the "availability_by_whatsapp" field.

func AvailabilityByWhatsappNotNil

func AvailabilityByWhatsappNotNil() predicate.Timetable

AvailabilityByWhatsappNotNil applies the NotNil predicate on the "availability_by_whatsapp" field.

func Comment

func Comment(v string) predicate.Timetable

Comment applies equality check predicate on the "comment" field. It's identical to CommentEQ.

func CommentContains

func CommentContains(v string) predicate.Timetable

CommentContains applies the Contains predicate on the "comment" field.

func CommentContainsFold

func CommentContainsFold(v string) predicate.Timetable

CommentContainsFold applies the ContainsFold predicate on the "comment" field.

func CommentEQ

func CommentEQ(v string) predicate.Timetable

CommentEQ applies the EQ predicate on the "comment" field.

func CommentEqualFold

func CommentEqualFold(v string) predicate.Timetable

CommentEqualFold applies the EqualFold predicate on the "comment" field.

func CommentGT

func CommentGT(v string) predicate.Timetable

CommentGT applies the GT predicate on the "comment" field.

func CommentGTE

func CommentGTE(v string) predicate.Timetable

CommentGTE applies the GTE predicate on the "comment" field.

func CommentHasPrefix

func CommentHasPrefix(v string) predicate.Timetable

CommentHasPrefix applies the HasPrefix predicate on the "comment" field.

func CommentHasSuffix

func CommentHasSuffix(v string) predicate.Timetable

CommentHasSuffix applies the HasSuffix predicate on the "comment" field.

func CommentIn

func CommentIn(vs ...string) predicate.Timetable

CommentIn applies the In predicate on the "comment" field.

func CommentIsNil

func CommentIsNil() predicate.Timetable

CommentIsNil applies the IsNil predicate on the "comment" field.

func CommentLT

func CommentLT(v string) predicate.Timetable

CommentLT applies the LT predicate on the "comment" field.

func CommentLTE

func CommentLTE(v string) predicate.Timetable

CommentLTE applies the LTE predicate on the "comment" field.

func CommentNEQ

func CommentNEQ(v string) predicate.Timetable

CommentNEQ applies the NEQ predicate on the "comment" field.

func CommentNotIn

func CommentNotIn(vs ...string) predicate.Timetable

CommentNotIn applies the NotIn predicate on the "comment" field.

func CommentNotNil

func CommentNotNil() predicate.Timetable

CommentNotNil applies the NotNil predicate on the "comment" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Timetable

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Timetable

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Timetable

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Timetable

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Timetable

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Timetable

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Timetable

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Timetable

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Timetable

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func DatetimeFrom

func DatetimeFrom(v time.Time) predicate.Timetable

DatetimeFrom applies equality check predicate on the "datetime_from" field. It's identical to DatetimeFromEQ.

func DatetimeFromEQ

func DatetimeFromEQ(v time.Time) predicate.Timetable

DatetimeFromEQ applies the EQ predicate on the "datetime_from" field.

func DatetimeFromGT

func DatetimeFromGT(v time.Time) predicate.Timetable

DatetimeFromGT applies the GT predicate on the "datetime_from" field.

func DatetimeFromGTE

func DatetimeFromGTE(v time.Time) predicate.Timetable

DatetimeFromGTE applies the GTE predicate on the "datetime_from" field.

func DatetimeFromIn

func DatetimeFromIn(vs ...time.Time) predicate.Timetable

DatetimeFromIn applies the In predicate on the "datetime_from" field.

func DatetimeFromLT

func DatetimeFromLT(v time.Time) predicate.Timetable

DatetimeFromLT applies the LT predicate on the "datetime_from" field.

func DatetimeFromLTE

func DatetimeFromLTE(v time.Time) predicate.Timetable

DatetimeFromLTE applies the LTE predicate on the "datetime_from" field.

func DatetimeFromNEQ

func DatetimeFromNEQ(v time.Time) predicate.Timetable

DatetimeFromNEQ applies the NEQ predicate on the "datetime_from" field.

func DatetimeFromNotIn

func DatetimeFromNotIn(vs ...time.Time) predicate.Timetable

DatetimeFromNotIn applies the NotIn predicate on the "datetime_from" field.

func DatetimeTo

func DatetimeTo(v time.Time) predicate.Timetable

DatetimeTo applies equality check predicate on the "datetime_to" field. It's identical to DatetimeToEQ.

func DatetimeToEQ

func DatetimeToEQ(v time.Time) predicate.Timetable

DatetimeToEQ applies the EQ predicate on the "datetime_to" field.

func DatetimeToGT

func DatetimeToGT(v time.Time) predicate.Timetable

DatetimeToGT applies the GT predicate on the "datetime_to" field.

func DatetimeToGTE

func DatetimeToGTE(v time.Time) predicate.Timetable

DatetimeToGTE applies the GTE predicate on the "datetime_to" field.

func DatetimeToIn

func DatetimeToIn(vs ...time.Time) predicate.Timetable

DatetimeToIn applies the In predicate on the "datetime_to" field.

func DatetimeToIsNil

func DatetimeToIsNil() predicate.Timetable

DatetimeToIsNil applies the IsNil predicate on the "datetime_to" field.

func DatetimeToLT

func DatetimeToLT(v time.Time) predicate.Timetable

DatetimeToLT applies the LT predicate on the "datetime_to" field.

func DatetimeToLTE

func DatetimeToLTE(v time.Time) predicate.Timetable

DatetimeToLTE applies the LTE predicate on the "datetime_to" field.

func DatetimeToNEQ

func DatetimeToNEQ(v time.Time) predicate.Timetable

DatetimeToNEQ applies the NEQ predicate on the "datetime_to" field.

func DatetimeToNotIn

func DatetimeToNotIn(vs ...time.Time) predicate.Timetable

DatetimeToNotIn applies the NotIn predicate on the "datetime_to" field.

func DatetimeToNotNil

func DatetimeToNotNil() predicate.Timetable

DatetimeToNotNil applies the NotNil predicate on the "datetime_to" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.Timetable

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Timetable

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Timetable

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Timetable

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.Timetable

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Timetable

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Timetable

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Timetable

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Timetable

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.Timetable

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Timetable

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func Duration

func Duration(v int) predicate.Timetable

Duration applies equality check predicate on the "duration" field. It's identical to DurationEQ.

func DurationEQ

func DurationEQ(v int) predicate.Timetable

DurationEQ applies the EQ predicate on the "duration" field.

func DurationGT

func DurationGT(v int) predicate.Timetable

DurationGT applies the GT predicate on the "duration" field.

func DurationGTE

func DurationGTE(v int) predicate.Timetable

DurationGTE applies the GTE predicate on the "duration" field.

func DurationIn

func DurationIn(vs ...int) predicate.Timetable

DurationIn applies the In predicate on the "duration" field.

func DurationIsNil

func DurationIsNil() predicate.Timetable

DurationIsNil applies the IsNil predicate on the "duration" field.

func DurationLT

func DurationLT(v int) predicate.Timetable

DurationLT applies the LT predicate on the "duration" field.

func DurationLTE

func DurationLTE(v int) predicate.Timetable

DurationLTE applies the LTE predicate on the "duration" field.

func DurationNEQ

func DurationNEQ(v int) predicate.Timetable

DurationNEQ applies the NEQ predicate on the "duration" field.

func DurationNotIn

func DurationNotIn(vs ...int) predicate.Timetable

DurationNotIn applies the NotIn predicate on the "duration" field.

func DurationNotNil

func DurationNotNil() predicate.Timetable

DurationNotNil applies the NotNil predicate on the "duration" field.

func HasAddress

func HasAddress() predicate.Timetable

HasAddress applies the HasEdge predicate on the "address" edge.

func HasAddressWith

func HasAddressWith(preds ...predicate.Address) predicate.Timetable

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

func HasOperatorsOnDuty

func HasOperatorsOnDuty() predicate.Timetable

HasOperatorsOnDuty applies the HasEdge predicate on the "operators_on_duty" edge.

func HasOperatorsOnDutyWith

func HasOperatorsOnDutyWith(preds ...predicate.Operator) predicate.Timetable

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Timetable

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Timetable

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Timetable

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Timetable

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Timetable

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Timetable

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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.Timetable) predicate.Timetable

Or groups predicates with the OR operator between them.

func TimeWholeDay

func TimeWholeDay(v bool) predicate.Timetable

TimeWholeDay applies equality check predicate on the "time_whole_day" field. It's identical to TimeWholeDayEQ.

func TimeWholeDayEQ

func TimeWholeDayEQ(v bool) predicate.Timetable

TimeWholeDayEQ applies the EQ predicate on the "time_whole_day" field.

func TimeWholeDayNEQ

func TimeWholeDayNEQ(v bool) predicate.Timetable

TimeWholeDayNEQ applies the NEQ predicate on the "time_whole_day" field.

func TimetableTypeEQ

func TimetableTypeEQ(v TimetableType) predicate.Timetable

TimetableTypeEQ applies the EQ predicate on the "timetable_type" field.

func TimetableTypeIn

func TimetableTypeIn(vs ...TimetableType) predicate.Timetable

TimetableTypeIn applies the In predicate on the "timetable_type" field.

func TimetableTypeNEQ

func TimetableTypeNEQ(v TimetableType) predicate.Timetable

TimetableTypeNEQ applies the NEQ predicate on the "timetable_type" field.

func TimetableTypeNotIn

func TimetableTypeNotIn(vs ...TimetableType) predicate.Timetable

TimetableTypeNotIn applies the NotIn predicate on the "timetable_type" field.

func TimetableTypeValidator

func TimetableTypeValidator(tt TimetableType) error

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Timetable

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Timetable

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Timetable

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Timetable

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Timetable

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Timetable

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Timetable

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Timetable

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Timetable

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Timetable queries.

func ByAddressField

func ByAddressField(field string, opts ...sql.OrderTermOption) OrderOption

ByAddressField orders the results by address field.

func ByAvailabilityByEmail

func ByAvailabilityByEmail(opts ...sql.OrderTermOption) OrderOption

ByAvailabilityByEmail orders the results by the availability_by_email field.

func ByAvailabilityByPhone

func ByAvailabilityByPhone(opts ...sql.OrderTermOption) OrderOption

ByAvailabilityByPhone orders the results by the availability_by_phone field.

func ByAvailabilityBySms

func ByAvailabilityBySms(opts ...sql.OrderTermOption) OrderOption

ByAvailabilityBySms orders the results by the availability_by_sms field.

func ByAvailabilityByWhatsapp

func ByAvailabilityByWhatsapp(opts ...sql.OrderTermOption) OrderOption

ByAvailabilityByWhatsapp orders the results by the availability_by_whatsapp field.

func ByComment

func ByComment(opts ...sql.OrderTermOption) OrderOption

ByComment orders the results by the comment field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByDatetimeFrom

func ByDatetimeFrom(opts ...sql.OrderTermOption) OrderOption

ByDatetimeFrom orders the results by the datetime_from field.

func ByDatetimeTo

func ByDatetimeTo(opts ...sql.OrderTermOption) OrderOption

ByDatetimeTo orders the results by the datetime_to field.

func ByDeletedAt

func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption

ByDeletedAt orders the results by the deleted_at field.

func ByDuration

func ByDuration(opts ...sql.OrderTermOption) OrderOption

ByDuration orders the results by the duration field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByOperatorsOnDuty

func ByOperatorsOnDuty(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByOperatorsOnDuty orders the results by operators_on_duty terms.

func ByOperatorsOnDutyCount

func ByOperatorsOnDutyCount(opts ...sql.OrderTermOption) OrderOption

ByOperatorsOnDutyCount orders the results by operators_on_duty count.

func ByTimeWholeDay

func ByTimeWholeDay(opts ...sql.OrderTermOption) OrderOption

ByTimeWholeDay orders the results by the time_whole_day field.

func ByTimetableType

func ByTimetableType(opts ...sql.OrderTermOption) OrderOption

ByTimetableType orders the results by the timetable_type field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

type TimetableType

type TimetableType string

TimetableType defines the type for the "timetable_type" enum field.

const (
	TimetableTypeDEFAULT          TimetableType = "DEFAULT"
	TimetableTypeREGULAR          TimetableType = "REGULAR"
	TimetableTypeCLOSED           TimetableType = "CLOSED"
	TimetableTypeEMERGENCYSERVICE TimetableType = "EMERGENCYSERVICE"
	TimetableTypeHOLIDAY          TimetableType = "HOLIDAY"
	TimetableTypeSPECIAL          TimetableType = "SPECIAL"
)

TimetableType values.

func (TimetableType) MarshalGQL

func (e TimetableType) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (TimetableType) String

func (tt TimetableType) String() string

func (*TimetableType) UnmarshalGQL

func (e *TimetableType) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

Jump to

Keyboard shortcuts

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