Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Timetable) predicate.Timetable
- func AvailabilityByEmail(v string) predicate.Timetable
- func AvailabilityByEmailContains(v string) predicate.Timetable
- func AvailabilityByEmailContainsFold(v string) predicate.Timetable
- func AvailabilityByEmailEQ(v string) predicate.Timetable
- func AvailabilityByEmailEqualFold(v string) predicate.Timetable
- func AvailabilityByEmailGT(v string) predicate.Timetable
- func AvailabilityByEmailGTE(v string) predicate.Timetable
- func AvailabilityByEmailHasPrefix(v string) predicate.Timetable
- func AvailabilityByEmailHasSuffix(v string) predicate.Timetable
- func AvailabilityByEmailIn(vs ...string) predicate.Timetable
- func AvailabilityByEmailIsNil() predicate.Timetable
- func AvailabilityByEmailLT(v string) predicate.Timetable
- func AvailabilityByEmailLTE(v string) predicate.Timetable
- func AvailabilityByEmailNEQ(v string) predicate.Timetable
- func AvailabilityByEmailNotIn(vs ...string) predicate.Timetable
- func AvailabilityByEmailNotNil() predicate.Timetable
- func AvailabilityByPhone(v string) predicate.Timetable
- func AvailabilityByPhoneContains(v string) predicate.Timetable
- func AvailabilityByPhoneContainsFold(v string) predicate.Timetable
- func AvailabilityByPhoneEQ(v string) predicate.Timetable
- func AvailabilityByPhoneEqualFold(v string) predicate.Timetable
- func AvailabilityByPhoneGT(v string) predicate.Timetable
- func AvailabilityByPhoneGTE(v string) predicate.Timetable
- func AvailabilityByPhoneHasPrefix(v string) predicate.Timetable
- func AvailabilityByPhoneHasSuffix(v string) predicate.Timetable
- func AvailabilityByPhoneIn(vs ...string) predicate.Timetable
- func AvailabilityByPhoneIsNil() predicate.Timetable
- func AvailabilityByPhoneLT(v string) predicate.Timetable
- func AvailabilityByPhoneLTE(v string) predicate.Timetable
- func AvailabilityByPhoneNEQ(v string) predicate.Timetable
- func AvailabilityByPhoneNotIn(vs ...string) predicate.Timetable
- func AvailabilityByPhoneNotNil() predicate.Timetable
- func AvailabilityBySms(v string) predicate.Timetable
- func AvailabilityBySmsContains(v string) predicate.Timetable
- func AvailabilityBySmsContainsFold(v string) predicate.Timetable
- func AvailabilityBySmsEQ(v string) predicate.Timetable
- func AvailabilityBySmsEqualFold(v string) predicate.Timetable
- func AvailabilityBySmsGT(v string) predicate.Timetable
- func AvailabilityBySmsGTE(v string) predicate.Timetable
- func AvailabilityBySmsHasPrefix(v string) predicate.Timetable
- func AvailabilityBySmsHasSuffix(v string) predicate.Timetable
- func AvailabilityBySmsIn(vs ...string) predicate.Timetable
- func AvailabilityBySmsIsNil() predicate.Timetable
- func AvailabilityBySmsLT(v string) predicate.Timetable
- func AvailabilityBySmsLTE(v string) predicate.Timetable
- func AvailabilityBySmsNEQ(v string) predicate.Timetable
- func AvailabilityBySmsNotIn(vs ...string) predicate.Timetable
- func AvailabilityBySmsNotNil() predicate.Timetable
- func AvailabilityByWhatsapp(v string) predicate.Timetable
- func AvailabilityByWhatsappContains(v string) predicate.Timetable
- func AvailabilityByWhatsappContainsFold(v string) predicate.Timetable
- func AvailabilityByWhatsappEQ(v string) predicate.Timetable
- func AvailabilityByWhatsappEqualFold(v string) predicate.Timetable
- func AvailabilityByWhatsappGT(v string) predicate.Timetable
- func AvailabilityByWhatsappGTE(v string) predicate.Timetable
- func AvailabilityByWhatsappHasPrefix(v string) predicate.Timetable
- func AvailabilityByWhatsappHasSuffix(v string) predicate.Timetable
- func AvailabilityByWhatsappIn(vs ...string) predicate.Timetable
- func AvailabilityByWhatsappIsNil() predicate.Timetable
- func AvailabilityByWhatsappLT(v string) predicate.Timetable
- func AvailabilityByWhatsappLTE(v string) predicate.Timetable
- func AvailabilityByWhatsappNEQ(v string) predicate.Timetable
- func AvailabilityByWhatsappNotIn(vs ...string) predicate.Timetable
- func AvailabilityByWhatsappNotNil() predicate.Timetable
- func Comment(v string) predicate.Timetable
- func CommentContains(v string) predicate.Timetable
- func CommentContainsFold(v string) predicate.Timetable
- func CommentEQ(v string) predicate.Timetable
- func CommentEqualFold(v string) predicate.Timetable
- func CommentGT(v string) predicate.Timetable
- func CommentGTE(v string) predicate.Timetable
- func CommentHasPrefix(v string) predicate.Timetable
- func CommentHasSuffix(v string) predicate.Timetable
- func CommentIn(vs ...string) predicate.Timetable
- func CommentIsNil() predicate.Timetable
- func CommentLT(v string) predicate.Timetable
- func CommentLTE(v string) predicate.Timetable
- func CommentNEQ(v string) predicate.Timetable
- func CommentNotIn(vs ...string) predicate.Timetable
- func CommentNotNil() predicate.Timetable
- func CreatedAt(v time.Time) predicate.Timetable
- func CreatedAtEQ(v time.Time) predicate.Timetable
- func CreatedAtGT(v time.Time) predicate.Timetable
- func CreatedAtGTE(v time.Time) predicate.Timetable
- func CreatedAtIn(vs ...time.Time) predicate.Timetable
- func CreatedAtLT(v time.Time) predicate.Timetable
- func CreatedAtLTE(v time.Time) predicate.Timetable
- func CreatedAtNEQ(v time.Time) predicate.Timetable
- func CreatedAtNotIn(vs ...time.Time) predicate.Timetable
- func DatetimeFrom(v time.Time) predicate.Timetable
- func DatetimeFromEQ(v time.Time) predicate.Timetable
- func DatetimeFromGT(v time.Time) predicate.Timetable
- func DatetimeFromGTE(v time.Time) predicate.Timetable
- func DatetimeFromIn(vs ...time.Time) predicate.Timetable
- func DatetimeFromLT(v time.Time) predicate.Timetable
- func DatetimeFromLTE(v time.Time) predicate.Timetable
- func DatetimeFromNEQ(v time.Time) predicate.Timetable
- func DatetimeFromNotIn(vs ...time.Time) predicate.Timetable
- func DatetimeTo(v time.Time) predicate.Timetable
- func DatetimeToEQ(v time.Time) predicate.Timetable
- func DatetimeToGT(v time.Time) predicate.Timetable
- func DatetimeToGTE(v time.Time) predicate.Timetable
- func DatetimeToIn(vs ...time.Time) predicate.Timetable
- func DatetimeToIsNil() predicate.Timetable
- func DatetimeToLT(v time.Time) predicate.Timetable
- func DatetimeToLTE(v time.Time) predicate.Timetable
- func DatetimeToNEQ(v time.Time) predicate.Timetable
- func DatetimeToNotIn(vs ...time.Time) predicate.Timetable
- func DatetimeToNotNil() predicate.Timetable
- func DeletedAt(v time.Time) predicate.Timetable
- func DeletedAtEQ(v time.Time) predicate.Timetable
- func DeletedAtGT(v time.Time) predicate.Timetable
- func DeletedAtGTE(v time.Time) predicate.Timetable
- func DeletedAtIn(vs ...time.Time) predicate.Timetable
- func DeletedAtIsNil() predicate.Timetable
- func DeletedAtLT(v time.Time) predicate.Timetable
- func DeletedAtLTE(v time.Time) predicate.Timetable
- func DeletedAtNEQ(v time.Time) predicate.Timetable
- func DeletedAtNotIn(vs ...time.Time) predicate.Timetable
- func DeletedAtNotNil() predicate.Timetable
- func Duration(v int) predicate.Timetable
- func DurationEQ(v int) predicate.Timetable
- func DurationGT(v int) predicate.Timetable
- func DurationGTE(v int) predicate.Timetable
- func DurationIn(vs ...int) predicate.Timetable
- func DurationIsNil() predicate.Timetable
- func DurationLT(v int) predicate.Timetable
- func DurationLTE(v int) predicate.Timetable
- func DurationNEQ(v int) predicate.Timetable
- func DurationNotIn(vs ...int) predicate.Timetable
- func DurationNotNil() predicate.Timetable
- func HasAddress() predicate.Timetable
- func HasAddressWith(preds ...predicate.Address) predicate.Timetable
- func HasOperatorsOnDuty() predicate.Timetable
- func HasOperatorsOnDutyWith(preds ...predicate.Operator) predicate.Timetable
- func ID(id uuid.UUID) predicate.Timetable
- func IDEQ(id uuid.UUID) predicate.Timetable
- func IDGT(id uuid.UUID) predicate.Timetable
- func IDGTE(id uuid.UUID) predicate.Timetable
- func IDIn(ids ...uuid.UUID) predicate.Timetable
- func IDLT(id uuid.UUID) predicate.Timetable
- func IDLTE(id uuid.UUID) predicate.Timetable
- func IDNEQ(id uuid.UUID) predicate.Timetable
- func IDNotIn(ids ...uuid.UUID) predicate.Timetable
- func Not(p predicate.Timetable) predicate.Timetable
- func Or(predicates ...predicate.Timetable) predicate.Timetable
- func TimeWholeDay(v bool) predicate.Timetable
- func TimeWholeDayEQ(v bool) predicate.Timetable
- func TimeWholeDayNEQ(v bool) predicate.Timetable
- func TimetableTypeEQ(v TimetableType) predicate.Timetable
- func TimetableTypeIn(vs ...TimetableType) predicate.Timetable
- func TimetableTypeNEQ(v TimetableType) predicate.Timetable
- func TimetableTypeNotIn(vs ...TimetableType) predicate.Timetable
- func TimetableTypeValidator(tt TimetableType) error
- func UpdatedAt(v time.Time) predicate.Timetable
- func UpdatedAtEQ(v time.Time) predicate.Timetable
- func UpdatedAtGT(v time.Time) predicate.Timetable
- func UpdatedAtGTE(v time.Time) predicate.Timetable
- func UpdatedAtIn(vs ...time.Time) predicate.Timetable
- func UpdatedAtLT(v time.Time) predicate.Timetable
- func UpdatedAtLTE(v time.Time) predicate.Timetable
- func UpdatedAtNEQ(v time.Time) predicate.Timetable
- func UpdatedAtNotIn(vs ...time.Time) predicate.Timetable
- func ValidColumn(column string) bool
- type OrderOption
- func ByAddressField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByAvailabilityByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByAvailabilityByPhone(opts ...sql.OrderTermOption) OrderOption
- func ByAvailabilityBySms(opts ...sql.OrderTermOption) OrderOption
- func ByAvailabilityByWhatsapp(opts ...sql.OrderTermOption) OrderOption
- func ByComment(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDatetimeFrom(opts ...sql.OrderTermOption) OrderOption
- func ByDatetimeTo(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDuration(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByOperatorsOnDuty(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOperatorsOnDutyCount(opts ...sql.OrderTermOption) OrderOption
- func ByTimeWholeDay(opts ...sql.OrderTermOption) OrderOption
- func ByTimetableType(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- type TimetableType
Constants ¶
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" )
const DefaultTimetableType = TimetableTypeDEFAULT
TimetableTypeDEFAULT is the default value of the TimetableType enum.
Variables ¶
var ( Hooks [3]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"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldTimetableType, FieldDatetimeFrom, FieldDuration, FieldDatetimeTo, FieldTimeWholeDay, FieldComment, FieldAvailabilityByPhone, FieldAvailabilityByEmail, FieldAvailabilityBySms, FieldAvailabilityByWhatsapp, }
Columns holds all SQL columns for timetable fields.
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.
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 AvailabilityByEmail ¶
AvailabilityByEmail applies equality check predicate on the "availability_by_email" field. It's identical to AvailabilityByEmailEQ.
func AvailabilityByEmailContains ¶
AvailabilityByEmailContains applies the Contains predicate on the "availability_by_email" field.
func AvailabilityByEmailContainsFold ¶
AvailabilityByEmailContainsFold applies the ContainsFold predicate on the "availability_by_email" field.
func AvailabilityByEmailEQ ¶
AvailabilityByEmailEQ applies the EQ predicate on the "availability_by_email" field.
func AvailabilityByEmailEqualFold ¶
AvailabilityByEmailEqualFold applies the EqualFold predicate on the "availability_by_email" field.
func AvailabilityByEmailGT ¶
AvailabilityByEmailGT applies the GT predicate on the "availability_by_email" field.
func AvailabilityByEmailGTE ¶
AvailabilityByEmailGTE applies the GTE predicate on the "availability_by_email" field.
func AvailabilityByEmailHasPrefix ¶
AvailabilityByEmailHasPrefix applies the HasPrefix predicate on the "availability_by_email" field.
func AvailabilityByEmailHasSuffix ¶
AvailabilityByEmailHasSuffix applies the HasSuffix predicate on the "availability_by_email" field.
func AvailabilityByEmailIn ¶
AvailabilityByEmailIn applies the In predicate on the "availability_by_email" field.
func AvailabilityByEmailIsNil ¶
AvailabilityByEmailIsNil applies the IsNil predicate on the "availability_by_email" field.
func AvailabilityByEmailLT ¶
AvailabilityByEmailLT applies the LT predicate on the "availability_by_email" field.
func AvailabilityByEmailLTE ¶
AvailabilityByEmailLTE applies the LTE predicate on the "availability_by_email" field.
func AvailabilityByEmailNEQ ¶
AvailabilityByEmailNEQ applies the NEQ predicate on the "availability_by_email" field.
func AvailabilityByEmailNotIn ¶
AvailabilityByEmailNotIn applies the NotIn predicate on the "availability_by_email" field.
func AvailabilityByEmailNotNil ¶
AvailabilityByEmailNotNil applies the NotNil predicate on the "availability_by_email" field.
func AvailabilityByPhone ¶
AvailabilityByPhone applies equality check predicate on the "availability_by_phone" field. It's identical to AvailabilityByPhoneEQ.
func AvailabilityByPhoneContains ¶
AvailabilityByPhoneContains applies the Contains predicate on the "availability_by_phone" field.
func AvailabilityByPhoneContainsFold ¶
AvailabilityByPhoneContainsFold applies the ContainsFold predicate on the "availability_by_phone" field.
func AvailabilityByPhoneEQ ¶
AvailabilityByPhoneEQ applies the EQ predicate on the "availability_by_phone" field.
func AvailabilityByPhoneEqualFold ¶
AvailabilityByPhoneEqualFold applies the EqualFold predicate on the "availability_by_phone" field.
func AvailabilityByPhoneGT ¶
AvailabilityByPhoneGT applies the GT predicate on the "availability_by_phone" field.
func AvailabilityByPhoneGTE ¶
AvailabilityByPhoneGTE applies the GTE predicate on the "availability_by_phone" field.
func AvailabilityByPhoneHasPrefix ¶
AvailabilityByPhoneHasPrefix applies the HasPrefix predicate on the "availability_by_phone" field.
func AvailabilityByPhoneHasSuffix ¶
AvailabilityByPhoneHasSuffix applies the HasSuffix predicate on the "availability_by_phone" field.
func AvailabilityByPhoneIn ¶
AvailabilityByPhoneIn applies the In predicate on the "availability_by_phone" field.
func AvailabilityByPhoneIsNil ¶
AvailabilityByPhoneIsNil applies the IsNil predicate on the "availability_by_phone" field.
func AvailabilityByPhoneLT ¶
AvailabilityByPhoneLT applies the LT predicate on the "availability_by_phone" field.
func AvailabilityByPhoneLTE ¶
AvailabilityByPhoneLTE applies the LTE predicate on the "availability_by_phone" field.
func AvailabilityByPhoneNEQ ¶
AvailabilityByPhoneNEQ applies the NEQ predicate on the "availability_by_phone" field.
func AvailabilityByPhoneNotIn ¶
AvailabilityByPhoneNotIn applies the NotIn predicate on the "availability_by_phone" field.
func AvailabilityByPhoneNotNil ¶
AvailabilityByPhoneNotNil applies the NotNil predicate on the "availability_by_phone" field.
func AvailabilityBySms ¶
AvailabilityBySms applies equality check predicate on the "availability_by_sms" field. It's identical to AvailabilityBySmsEQ.
func AvailabilityBySmsContains ¶
AvailabilityBySmsContains applies the Contains predicate on the "availability_by_sms" field.
func AvailabilityBySmsContainsFold ¶
AvailabilityBySmsContainsFold applies the ContainsFold predicate on the "availability_by_sms" field.
func AvailabilityBySmsEQ ¶
AvailabilityBySmsEQ applies the EQ predicate on the "availability_by_sms" field.
func AvailabilityBySmsEqualFold ¶
AvailabilityBySmsEqualFold applies the EqualFold predicate on the "availability_by_sms" field.
func AvailabilityBySmsGT ¶
AvailabilityBySmsGT applies the GT predicate on the "availability_by_sms" field.
func AvailabilityBySmsGTE ¶
AvailabilityBySmsGTE applies the GTE predicate on the "availability_by_sms" field.
func AvailabilityBySmsHasPrefix ¶
AvailabilityBySmsHasPrefix applies the HasPrefix predicate on the "availability_by_sms" field.
func AvailabilityBySmsHasSuffix ¶
AvailabilityBySmsHasSuffix applies the HasSuffix predicate on the "availability_by_sms" field.
func AvailabilityBySmsIn ¶
AvailabilityBySmsIn applies the In predicate on the "availability_by_sms" field.
func AvailabilityBySmsIsNil ¶
AvailabilityBySmsIsNil applies the IsNil predicate on the "availability_by_sms" field.
func AvailabilityBySmsLT ¶
AvailabilityBySmsLT applies the LT predicate on the "availability_by_sms" field.
func AvailabilityBySmsLTE ¶
AvailabilityBySmsLTE applies the LTE predicate on the "availability_by_sms" field.
func AvailabilityBySmsNEQ ¶
AvailabilityBySmsNEQ applies the NEQ predicate on the "availability_by_sms" field.
func AvailabilityBySmsNotIn ¶
AvailabilityBySmsNotIn applies the NotIn predicate on the "availability_by_sms" field.
func AvailabilityBySmsNotNil ¶
AvailabilityBySmsNotNil applies the NotNil predicate on the "availability_by_sms" field.
func AvailabilityByWhatsapp ¶
AvailabilityByWhatsapp applies equality check predicate on the "availability_by_whatsapp" field. It's identical to AvailabilityByWhatsappEQ.
func AvailabilityByWhatsappContains ¶
AvailabilityByWhatsappContains applies the Contains predicate on the "availability_by_whatsapp" field.
func AvailabilityByWhatsappContainsFold ¶
AvailabilityByWhatsappContainsFold applies the ContainsFold predicate on the "availability_by_whatsapp" field.
func AvailabilityByWhatsappEQ ¶
AvailabilityByWhatsappEQ applies the EQ predicate on the "availability_by_whatsapp" field.
func AvailabilityByWhatsappEqualFold ¶
AvailabilityByWhatsappEqualFold applies the EqualFold predicate on the "availability_by_whatsapp" field.
func AvailabilityByWhatsappGT ¶
AvailabilityByWhatsappGT applies the GT predicate on the "availability_by_whatsapp" field.
func AvailabilityByWhatsappGTE ¶
AvailabilityByWhatsappGTE applies the GTE predicate on the "availability_by_whatsapp" field.
func AvailabilityByWhatsappHasPrefix ¶
AvailabilityByWhatsappHasPrefix applies the HasPrefix predicate on the "availability_by_whatsapp" field.
func AvailabilityByWhatsappHasSuffix ¶
AvailabilityByWhatsappHasSuffix applies the HasSuffix predicate on the "availability_by_whatsapp" field.
func AvailabilityByWhatsappIn ¶
AvailabilityByWhatsappIn applies the In predicate on the "availability_by_whatsapp" field.
func AvailabilityByWhatsappIsNil ¶
AvailabilityByWhatsappIsNil applies the IsNil predicate on the "availability_by_whatsapp" field.
func AvailabilityByWhatsappLT ¶
AvailabilityByWhatsappLT applies the LT predicate on the "availability_by_whatsapp" field.
func AvailabilityByWhatsappLTE ¶
AvailabilityByWhatsappLTE applies the LTE predicate on the "availability_by_whatsapp" field.
func AvailabilityByWhatsappNEQ ¶
AvailabilityByWhatsappNEQ applies the NEQ predicate on the "availability_by_whatsapp" field.
func AvailabilityByWhatsappNotIn ¶
AvailabilityByWhatsappNotIn applies the NotIn predicate on the "availability_by_whatsapp" field.
func AvailabilityByWhatsappNotNil ¶
AvailabilityByWhatsappNotNil applies the NotNil predicate on the "availability_by_whatsapp" field.
func Comment ¶
Comment applies equality check predicate on the "comment" field. It's identical to CommentEQ.
func CommentContains ¶
CommentContains applies the Contains predicate on the "comment" field.
func CommentContainsFold ¶
CommentContainsFold applies the ContainsFold predicate on the "comment" field.
func CommentEqualFold ¶
CommentEqualFold applies the EqualFold predicate on the "comment" field.
func CommentGTE ¶
CommentGTE applies the GTE predicate on the "comment" field.
func CommentHasPrefix ¶
CommentHasPrefix applies the HasPrefix predicate on the "comment" field.
func CommentHasSuffix ¶
CommentHasSuffix applies the HasSuffix predicate on the "comment" field.
func CommentIsNil ¶
CommentIsNil applies the IsNil predicate on the "comment" field.
func CommentLTE ¶
CommentLTE applies the LTE predicate on the "comment" field.
func CommentNEQ ¶
CommentNEQ applies the NEQ predicate on the "comment" field.
func CommentNotIn ¶
CommentNotIn applies the NotIn predicate on the "comment" field.
func CommentNotNil ¶
CommentNotNil applies the NotNil predicate on the "comment" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DatetimeFrom ¶
DatetimeFrom applies equality check predicate on the "datetime_from" field. It's identical to DatetimeFromEQ.
func DatetimeFromEQ ¶
DatetimeFromEQ applies the EQ predicate on the "datetime_from" field.
func DatetimeFromGT ¶
DatetimeFromGT applies the GT predicate on the "datetime_from" field.
func DatetimeFromGTE ¶
DatetimeFromGTE applies the GTE predicate on the "datetime_from" field.
func DatetimeFromIn ¶
DatetimeFromIn applies the In predicate on the "datetime_from" field.
func DatetimeFromLT ¶
DatetimeFromLT applies the LT predicate on the "datetime_from" field.
func DatetimeFromLTE ¶
DatetimeFromLTE applies the LTE predicate on the "datetime_from" field.
func DatetimeFromNEQ ¶
DatetimeFromNEQ applies the NEQ predicate on the "datetime_from" field.
func DatetimeFromNotIn ¶
DatetimeFromNotIn applies the NotIn predicate on the "datetime_from" field.
func DatetimeTo ¶
DatetimeTo applies equality check predicate on the "datetime_to" field. It's identical to DatetimeToEQ.
func DatetimeToEQ ¶
DatetimeToEQ applies the EQ predicate on the "datetime_to" field.
func DatetimeToGT ¶
DatetimeToGT applies the GT predicate on the "datetime_to" field.
func DatetimeToGTE ¶
DatetimeToGTE applies the GTE predicate on the "datetime_to" field.
func DatetimeToIn ¶
DatetimeToIn applies the In predicate on the "datetime_to" field.
func DatetimeToIsNil ¶
DatetimeToIsNil applies the IsNil predicate on the "datetime_to" field.
func DatetimeToLT ¶
DatetimeToLT applies the LT predicate on the "datetime_to" field.
func DatetimeToLTE ¶
DatetimeToLTE applies the LTE predicate on the "datetime_to" field.
func DatetimeToNEQ ¶
DatetimeToNEQ applies the NEQ predicate on the "datetime_to" field.
func DatetimeToNotIn ¶
DatetimeToNotIn applies the NotIn predicate on the "datetime_to" field.
func DatetimeToNotNil ¶
DatetimeToNotNil applies the NotNil predicate on the "datetime_to" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func Duration ¶
Duration applies equality check predicate on the "duration" field. It's identical to DurationEQ.
func DurationEQ ¶
DurationEQ applies the EQ predicate on the "duration" field.
func DurationGT ¶
DurationGT applies the GT predicate on the "duration" field.
func DurationGTE ¶
DurationGTE applies the GTE predicate on the "duration" field.
func DurationIn ¶
DurationIn applies the In predicate on the "duration" field.
func DurationIsNil ¶
DurationIsNil applies the IsNil predicate on the "duration" field.
func DurationLT ¶
DurationLT applies the LT predicate on the "duration" field.
func DurationLTE ¶
DurationLTE applies the LTE predicate on the "duration" field.
func DurationNEQ ¶
DurationNEQ applies the NEQ predicate on the "duration" field.
func DurationNotIn ¶
DurationNotIn applies the NotIn predicate on the "duration" field.
func DurationNotNil ¶
DurationNotNil applies the NotNil predicate on the "duration" field.
func HasAddress ¶
HasAddress applies the HasEdge predicate on the "address" edge.
func HasAddressWith ¶
HasAddressWith applies the HasEdge predicate on the "address" edge with a given conditions (other predicates).
func HasOperatorsOnDuty ¶
HasOperatorsOnDuty applies the HasEdge predicate on the "operators_on_duty" edge.
func HasOperatorsOnDutyWith ¶
HasOperatorsOnDutyWith applies the HasEdge predicate on the "operators_on_duty" edge with a given conditions (other predicates).
func TimeWholeDay ¶
TimeWholeDay applies equality check predicate on the "time_whole_day" field. It's identical to TimeWholeDayEQ.
func TimeWholeDayEQ ¶
TimeWholeDayEQ applies the EQ predicate on the "time_whole_day" field.
func TimeWholeDayNEQ ¶
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 ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.