Files
likedream/internal/ent/cptask/where.go
T
sugarBecomer 6840b69f1a 🐛 登录问题
2025-11-07 15:28:54 +08:00

845 lines
30 KiB
Go

// ENT数据库文件,请勿编辑。
package cptask
import (
"likedream-goframe/internal/ent/internal"
"likedream-goframe/internal/ent/predicate"
"likedream-goframe/internal/framework/ent2"
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
)
// ID filters vertices based on their ID field.
func ID(id int64) predicate.CpTask {
return predicate.CpTask(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id int64) predicate.CpTask {
return predicate.CpTask(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id int64) predicate.CpTask {
return predicate.CpTask(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...int64) predicate.CpTask {
return predicate.CpTask(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...int64) predicate.CpTask {
return predicate.CpTask(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id int64) predicate.CpTask {
return predicate.CpTask(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id int64) predicate.CpTask {
return predicate.CpTask(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id int64) predicate.CpTask {
return predicate.CpTask(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id int64) predicate.CpTask {
return predicate.CpTask(sql.FieldLTE(FieldID, id))
}
// CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTime(v *ent2.CustomTime) predicate.CpTask {
return predicate.CpTask(sql.FieldEQ(FieldCreateTime, v))
}
// UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTime(v *ent2.CustomTime) predicate.CpTask {
return predicate.CpTask(sql.FieldEQ(FieldUpdateTime, v))
}
// CpUserID applies equality check predicate on the "cp_user_id" field. It's identical to CpUserIDEQ.
func CpUserID(v int64) predicate.CpTask {
return predicate.CpTask(sql.FieldEQ(FieldCpUserID, v))
}
// UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserID(v int64) predicate.CpTask {
return predicate.CpTask(sql.FieldEQ(FieldUserID, v))
}
// Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func Title(v string) predicate.CpTask {
return predicate.CpTask(sql.FieldEQ(FieldTitle, v))
}
// Frequency applies equality check predicate on the "frequency" field. It's identical to FrequencyEQ.
func Frequency(v int) predicate.CpTask {
return predicate.CpTask(sql.FieldEQ(FieldFrequency, v))
}
// SuccessCount applies equality check predicate on the "success_count" field. It's identical to SuccessCountEQ.
func SuccessCount(v int) predicate.CpTask {
return predicate.CpTask(sql.FieldEQ(FieldSuccessCount, v))
}
// FormData applies equality check predicate on the "form_data" field. It's identical to FormDataEQ.
func FormData(v string) predicate.CpTask {
return predicate.CpTask(sql.FieldEQ(FieldFormData, v))
}
// ExecuteHour applies equality check predicate on the "execute_hour" field. It's identical to ExecuteHourEQ.
func ExecuteHour(v int) predicate.CpTask {
return predicate.CpTask(sql.FieldEQ(FieldExecuteHour, v))
}
// ExecuteMinute applies equality check predicate on the "execute_minute" field. It's identical to ExecuteMinuteEQ.
func ExecuteMinute(v int) predicate.CpTask {
return predicate.CpTask(sql.FieldEQ(FieldExecuteMinute, v))
}
// NextExecuteTime applies equality check predicate on the "next_execute_time" field. It's identical to NextExecuteTimeEQ.
func NextExecuteTime(v int64) predicate.CpTask {
return predicate.CpTask(sql.FieldEQ(FieldNextExecuteTime, v))
}
// CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeEQ(v *ent2.CustomTime) predicate.CpTask {
return predicate.CpTask(sql.FieldEQ(FieldCreateTime, v))
}
// CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNEQ(v *ent2.CustomTime) predicate.CpTask {
return predicate.CpTask(sql.FieldNEQ(FieldCreateTime, v))
}
// CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeIn(vs ...*ent2.CustomTime) predicate.CpTask {
return predicate.CpTask(sql.FieldIn(FieldCreateTime, vs...))
}
// CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func CreateTimeNotIn(vs ...*ent2.CustomTime) predicate.CpTask {
return predicate.CpTask(sql.FieldNotIn(FieldCreateTime, vs...))
}
// CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGT(v *ent2.CustomTime) predicate.CpTask {
return predicate.CpTask(sql.FieldGT(FieldCreateTime, v))
}
// CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeGTE(v *ent2.CustomTime) predicate.CpTask {
return predicate.CpTask(sql.FieldGTE(FieldCreateTime, v))
}
// CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLT(v *ent2.CustomTime) predicate.CpTask {
return predicate.CpTask(sql.FieldLT(FieldCreateTime, v))
}
// CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeLTE(v *ent2.CustomTime) predicate.CpTask {
return predicate.CpTask(sql.FieldLTE(FieldCreateTime, v))
}
// CreateTimeContains applies the Contains predicate on the "create_time" field.
func CreateTimeContains(v *ent2.CustomTime) predicate.CpTask {
vc := v.String()
return predicate.CpTask(sql.FieldContains(FieldCreateTime, vc))
}
// CreateTimeHasPrefix applies the HasPrefix predicate on the "create_time" field.
func CreateTimeHasPrefix(v *ent2.CustomTime) predicate.CpTask {
vc := v.String()
return predicate.CpTask(sql.FieldHasPrefix(FieldCreateTime, vc))
}
// CreateTimeHasSuffix applies the HasSuffix predicate on the "create_time" field.
func CreateTimeHasSuffix(v *ent2.CustomTime) predicate.CpTask {
vc := v.String()
return predicate.CpTask(sql.FieldHasSuffix(FieldCreateTime, vc))
}
// CreateTimeEqualFold applies the EqualFold predicate on the "create_time" field.
func CreateTimeEqualFold(v *ent2.CustomTime) predicate.CpTask {
vc := v.String()
return predicate.CpTask(sql.FieldEqualFold(FieldCreateTime, vc))
}
// CreateTimeContainsFold applies the ContainsFold predicate on the "create_time" field.
func CreateTimeContainsFold(v *ent2.CustomTime) predicate.CpTask {
vc := v.String()
return predicate.CpTask(sql.FieldContainsFold(FieldCreateTime, vc))
}
// UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeEQ(v *ent2.CustomTime) predicate.CpTask {
return predicate.CpTask(sql.FieldEQ(FieldUpdateTime, v))
}
// UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNEQ(v *ent2.CustomTime) predicate.CpTask {
return predicate.CpTask(sql.FieldNEQ(FieldUpdateTime, v))
}
// UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeIn(vs ...*ent2.CustomTime) predicate.CpTask {
return predicate.CpTask(sql.FieldIn(FieldUpdateTime, vs...))
}
// UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func UpdateTimeNotIn(vs ...*ent2.CustomTime) predicate.CpTask {
return predicate.CpTask(sql.FieldNotIn(FieldUpdateTime, vs...))
}
// UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGT(v *ent2.CustomTime) predicate.CpTask {
return predicate.CpTask(sql.FieldGT(FieldUpdateTime, v))
}
// UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeGTE(v *ent2.CustomTime) predicate.CpTask {
return predicate.CpTask(sql.FieldGTE(FieldUpdateTime, v))
}
// UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLT(v *ent2.CustomTime) predicate.CpTask {
return predicate.CpTask(sql.FieldLT(FieldUpdateTime, v))
}
// UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeLTE(v *ent2.CustomTime) predicate.CpTask {
return predicate.CpTask(sql.FieldLTE(FieldUpdateTime, v))
}
// UpdateTimeContains applies the Contains predicate on the "update_time" field.
func UpdateTimeContains(v *ent2.CustomTime) predicate.CpTask {
vc := v.String()
return predicate.CpTask(sql.FieldContains(FieldUpdateTime, vc))
}
// UpdateTimeHasPrefix applies the HasPrefix predicate on the "update_time" field.
func UpdateTimeHasPrefix(v *ent2.CustomTime) predicate.CpTask {
vc := v.String()
return predicate.CpTask(sql.FieldHasPrefix(FieldUpdateTime, vc))
}
// UpdateTimeHasSuffix applies the HasSuffix predicate on the "update_time" field.
func UpdateTimeHasSuffix(v *ent2.CustomTime) predicate.CpTask {
vc := v.String()
return predicate.CpTask(sql.FieldHasSuffix(FieldUpdateTime, vc))
}
// UpdateTimeEqualFold applies the EqualFold predicate on the "update_time" field.
func UpdateTimeEqualFold(v *ent2.CustomTime) predicate.CpTask {
vc := v.String()
return predicate.CpTask(sql.FieldEqualFold(FieldUpdateTime, vc))
}
// UpdateTimeContainsFold applies the ContainsFold predicate on the "update_time" field.
func UpdateTimeContainsFold(v *ent2.CustomTime) predicate.CpTask {
vc := v.String()
return predicate.CpTask(sql.FieldContainsFold(FieldUpdateTime, vc))
}
// CpUserIDEQ applies the EQ predicate on the "cp_user_id" field.
func CpUserIDEQ(v int64) predicate.CpTask {
return predicate.CpTask(sql.FieldEQ(FieldCpUserID, v))
}
// CpUserIDNEQ applies the NEQ predicate on the "cp_user_id" field.
func CpUserIDNEQ(v int64) predicate.CpTask {
return predicate.CpTask(sql.FieldNEQ(FieldCpUserID, v))
}
// CpUserIDIn applies the In predicate on the "cp_user_id" field.
func CpUserIDIn(vs ...int64) predicate.CpTask {
return predicate.CpTask(sql.FieldIn(FieldCpUserID, vs...))
}
// CpUserIDNotIn applies the NotIn predicate on the "cp_user_id" field.
func CpUserIDNotIn(vs ...int64) predicate.CpTask {
return predicate.CpTask(sql.FieldNotIn(FieldCpUserID, vs...))
}
// UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDEQ(v int64) predicate.CpTask {
return predicate.CpTask(sql.FieldEQ(FieldUserID, v))
}
// UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNEQ(v int64) predicate.CpTask {
return predicate.CpTask(sql.FieldNEQ(FieldUserID, v))
}
// UserIDIn applies the In predicate on the "user_id" field.
func UserIDIn(vs ...int64) predicate.CpTask {
return predicate.CpTask(sql.FieldIn(FieldUserID, vs...))
}
// UserIDNotIn applies the NotIn predicate on the "user_id" field.
func UserIDNotIn(vs ...int64) predicate.CpTask {
return predicate.CpTask(sql.FieldNotIn(FieldUserID, vs...))
}
// TaskTypeEQ applies the EQ predicate on the "task_type" field.
func TaskTypeEQ(v TaskType) predicate.CpTask {
return predicate.CpTask(sql.FieldEQ(FieldTaskType, v))
}
// TaskTypeNEQ applies the NEQ predicate on the "task_type" field.
func TaskTypeNEQ(v TaskType) predicate.CpTask {
return predicate.CpTask(sql.FieldNEQ(FieldTaskType, v))
}
// TaskTypeIn applies the In predicate on the "task_type" field.
func TaskTypeIn(vs ...TaskType) predicate.CpTask {
return predicate.CpTask(sql.FieldIn(FieldTaskType, vs...))
}
// TaskTypeNotIn applies the NotIn predicate on the "task_type" field.
func TaskTypeNotIn(vs ...TaskType) predicate.CpTask {
return predicate.CpTask(sql.FieldNotIn(FieldTaskType, vs...))
}
// TitleEQ applies the EQ predicate on the "title" field.
func TitleEQ(v string) predicate.CpTask {
return predicate.CpTask(sql.FieldEQ(FieldTitle, v))
}
// TitleNEQ applies the NEQ predicate on the "title" field.
func TitleNEQ(v string) predicate.CpTask {
return predicate.CpTask(sql.FieldNEQ(FieldTitle, v))
}
// TitleIn applies the In predicate on the "title" field.
func TitleIn(vs ...string) predicate.CpTask {
return predicate.CpTask(sql.FieldIn(FieldTitle, vs...))
}
// TitleNotIn applies the NotIn predicate on the "title" field.
func TitleNotIn(vs ...string) predicate.CpTask {
return predicate.CpTask(sql.FieldNotIn(FieldTitle, vs...))
}
// TitleGT applies the GT predicate on the "title" field.
func TitleGT(v string) predicate.CpTask {
return predicate.CpTask(sql.FieldGT(FieldTitle, v))
}
// TitleGTE applies the GTE predicate on the "title" field.
func TitleGTE(v string) predicate.CpTask {
return predicate.CpTask(sql.FieldGTE(FieldTitle, v))
}
// TitleLT applies the LT predicate on the "title" field.
func TitleLT(v string) predicate.CpTask {
return predicate.CpTask(sql.FieldLT(FieldTitle, v))
}
// TitleLTE applies the LTE predicate on the "title" field.
func TitleLTE(v string) predicate.CpTask {
return predicate.CpTask(sql.FieldLTE(FieldTitle, v))
}
// TitleContains applies the Contains predicate on the "title" field.
func TitleContains(v string) predicate.CpTask {
return predicate.CpTask(sql.FieldContains(FieldTitle, v))
}
// TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasPrefix(v string) predicate.CpTask {
return predicate.CpTask(sql.FieldHasPrefix(FieldTitle, v))
}
// TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleHasSuffix(v string) predicate.CpTask {
return predicate.CpTask(sql.FieldHasSuffix(FieldTitle, v))
}
// TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleEqualFold(v string) predicate.CpTask {
return predicate.CpTask(sql.FieldEqualFold(FieldTitle, v))
}
// TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleContainsFold(v string) predicate.CpTask {
return predicate.CpTask(sql.FieldContainsFold(FieldTitle, v))
}
// FrequencyEQ applies the EQ predicate on the "frequency" field.
func FrequencyEQ(v int) predicate.CpTask {
return predicate.CpTask(sql.FieldEQ(FieldFrequency, v))
}
// FrequencyNEQ applies the NEQ predicate on the "frequency" field.
func FrequencyNEQ(v int) predicate.CpTask {
return predicate.CpTask(sql.FieldNEQ(FieldFrequency, v))
}
// FrequencyIn applies the In predicate on the "frequency" field.
func FrequencyIn(vs ...int) predicate.CpTask {
return predicate.CpTask(sql.FieldIn(FieldFrequency, vs...))
}
// FrequencyNotIn applies the NotIn predicate on the "frequency" field.
func FrequencyNotIn(vs ...int) predicate.CpTask {
return predicate.CpTask(sql.FieldNotIn(FieldFrequency, vs...))
}
// FrequencyGT applies the GT predicate on the "frequency" field.
func FrequencyGT(v int) predicate.CpTask {
return predicate.CpTask(sql.FieldGT(FieldFrequency, v))
}
// FrequencyGTE applies the GTE predicate on the "frequency" field.
func FrequencyGTE(v int) predicate.CpTask {
return predicate.CpTask(sql.FieldGTE(FieldFrequency, v))
}
// FrequencyLT applies the LT predicate on the "frequency" field.
func FrequencyLT(v int) predicate.CpTask {
return predicate.CpTask(sql.FieldLT(FieldFrequency, v))
}
// FrequencyLTE applies the LTE predicate on the "frequency" field.
func FrequencyLTE(v int) predicate.CpTask {
return predicate.CpTask(sql.FieldLTE(FieldFrequency, v))
}
// TaskStatusEQ applies the EQ predicate on the "task_status" field.
func TaskStatusEQ(v TaskStatus) predicate.CpTask {
return predicate.CpTask(sql.FieldEQ(FieldTaskStatus, v))
}
// TaskStatusNEQ applies the NEQ predicate on the "task_status" field.
func TaskStatusNEQ(v TaskStatus) predicate.CpTask {
return predicate.CpTask(sql.FieldNEQ(FieldTaskStatus, v))
}
// TaskStatusIn applies the In predicate on the "task_status" field.
func TaskStatusIn(vs ...TaskStatus) predicate.CpTask {
return predicate.CpTask(sql.FieldIn(FieldTaskStatus, vs...))
}
// TaskStatusNotIn applies the NotIn predicate on the "task_status" field.
func TaskStatusNotIn(vs ...TaskStatus) predicate.CpTask {
return predicate.CpTask(sql.FieldNotIn(FieldTaskStatus, vs...))
}
// SuccessCountEQ applies the EQ predicate on the "success_count" field.
func SuccessCountEQ(v int) predicate.CpTask {
return predicate.CpTask(sql.FieldEQ(FieldSuccessCount, v))
}
// SuccessCountNEQ applies the NEQ predicate on the "success_count" field.
func SuccessCountNEQ(v int) predicate.CpTask {
return predicate.CpTask(sql.FieldNEQ(FieldSuccessCount, v))
}
// SuccessCountIn applies the In predicate on the "success_count" field.
func SuccessCountIn(vs ...int) predicate.CpTask {
return predicate.CpTask(sql.FieldIn(FieldSuccessCount, vs...))
}
// SuccessCountNotIn applies the NotIn predicate on the "success_count" field.
func SuccessCountNotIn(vs ...int) predicate.CpTask {
return predicate.CpTask(sql.FieldNotIn(FieldSuccessCount, vs...))
}
// SuccessCountGT applies the GT predicate on the "success_count" field.
func SuccessCountGT(v int) predicate.CpTask {
return predicate.CpTask(sql.FieldGT(FieldSuccessCount, v))
}
// SuccessCountGTE applies the GTE predicate on the "success_count" field.
func SuccessCountGTE(v int) predicate.CpTask {
return predicate.CpTask(sql.FieldGTE(FieldSuccessCount, v))
}
// SuccessCountLT applies the LT predicate on the "success_count" field.
func SuccessCountLT(v int) predicate.CpTask {
return predicate.CpTask(sql.FieldLT(FieldSuccessCount, v))
}
// SuccessCountLTE applies the LTE predicate on the "success_count" field.
func SuccessCountLTE(v int) predicate.CpTask {
return predicate.CpTask(sql.FieldLTE(FieldSuccessCount, v))
}
// FormDataEQ applies the EQ predicate on the "form_data" field.
func FormDataEQ(v string) predicate.CpTask {
return predicate.CpTask(sql.FieldEQ(FieldFormData, v))
}
// FormDataNEQ applies the NEQ predicate on the "form_data" field.
func FormDataNEQ(v string) predicate.CpTask {
return predicate.CpTask(sql.FieldNEQ(FieldFormData, v))
}
// FormDataIn applies the In predicate on the "form_data" field.
func FormDataIn(vs ...string) predicate.CpTask {
return predicate.CpTask(sql.FieldIn(FieldFormData, vs...))
}
// FormDataNotIn applies the NotIn predicate on the "form_data" field.
func FormDataNotIn(vs ...string) predicate.CpTask {
return predicate.CpTask(sql.FieldNotIn(FieldFormData, vs...))
}
// FormDataGT applies the GT predicate on the "form_data" field.
func FormDataGT(v string) predicate.CpTask {
return predicate.CpTask(sql.FieldGT(FieldFormData, v))
}
// FormDataGTE applies the GTE predicate on the "form_data" field.
func FormDataGTE(v string) predicate.CpTask {
return predicate.CpTask(sql.FieldGTE(FieldFormData, v))
}
// FormDataLT applies the LT predicate on the "form_data" field.
func FormDataLT(v string) predicate.CpTask {
return predicate.CpTask(sql.FieldLT(FieldFormData, v))
}
// FormDataLTE applies the LTE predicate on the "form_data" field.
func FormDataLTE(v string) predicate.CpTask {
return predicate.CpTask(sql.FieldLTE(FieldFormData, v))
}
// FormDataContains applies the Contains predicate on the "form_data" field.
func FormDataContains(v string) predicate.CpTask {
return predicate.CpTask(sql.FieldContains(FieldFormData, v))
}
// FormDataHasPrefix applies the HasPrefix predicate on the "form_data" field.
func FormDataHasPrefix(v string) predicate.CpTask {
return predicate.CpTask(sql.FieldHasPrefix(FieldFormData, v))
}
// FormDataHasSuffix applies the HasSuffix predicate on the "form_data" field.
func FormDataHasSuffix(v string) predicate.CpTask {
return predicate.CpTask(sql.FieldHasSuffix(FieldFormData, v))
}
// FormDataIsNil applies the IsNil predicate on the "form_data" field.
func FormDataIsNil() predicate.CpTask {
return predicate.CpTask(sql.FieldIsNull(FieldFormData))
}
// FormDataNotNil applies the NotNil predicate on the "form_data" field.
func FormDataNotNil() predicate.CpTask {
return predicate.CpTask(sql.FieldNotNull(FieldFormData))
}
// FormDataEqualFold applies the EqualFold predicate on the "form_data" field.
func FormDataEqualFold(v string) predicate.CpTask {
return predicate.CpTask(sql.FieldEqualFold(FieldFormData, v))
}
// FormDataContainsFold applies the ContainsFold predicate on the "form_data" field.
func FormDataContainsFold(v string) predicate.CpTask {
return predicate.CpTask(sql.FieldContainsFold(FieldFormData, v))
}
// StepEQ applies the EQ predicate on the "step" field.
func StepEQ(v Step) predicate.CpTask {
return predicate.CpTask(sql.FieldEQ(FieldStep, v))
}
// StepNEQ applies the NEQ predicate on the "step" field.
func StepNEQ(v Step) predicate.CpTask {
return predicate.CpTask(sql.FieldNEQ(FieldStep, v))
}
// StepIn applies the In predicate on the "step" field.
func StepIn(vs ...Step) predicate.CpTask {
return predicate.CpTask(sql.FieldIn(FieldStep, vs...))
}
// StepNotIn applies the NotIn predicate on the "step" field.
func StepNotIn(vs ...Step) predicate.CpTask {
return predicate.CpTask(sql.FieldNotIn(FieldStep, vs...))
}
// NotificationTypeEQ applies the EQ predicate on the "notification_type" field.
func NotificationTypeEQ(v NotificationType) predicate.CpTask {
return predicate.CpTask(sql.FieldEQ(FieldNotificationType, v))
}
// NotificationTypeNEQ applies the NEQ predicate on the "notification_type" field.
func NotificationTypeNEQ(v NotificationType) predicate.CpTask {
return predicate.CpTask(sql.FieldNEQ(FieldNotificationType, v))
}
// NotificationTypeIn applies the In predicate on the "notification_type" field.
func NotificationTypeIn(vs ...NotificationType) predicate.CpTask {
return predicate.CpTask(sql.FieldIn(FieldNotificationType, vs...))
}
// NotificationTypeNotIn applies the NotIn predicate on the "notification_type" field.
func NotificationTypeNotIn(vs ...NotificationType) predicate.CpTask {
return predicate.CpTask(sql.FieldNotIn(FieldNotificationType, vs...))
}
// ExecuteHourEQ applies the EQ predicate on the "execute_hour" field.
func ExecuteHourEQ(v int) predicate.CpTask {
return predicate.CpTask(sql.FieldEQ(FieldExecuteHour, v))
}
// ExecuteHourNEQ applies the NEQ predicate on the "execute_hour" field.
func ExecuteHourNEQ(v int) predicate.CpTask {
return predicate.CpTask(sql.FieldNEQ(FieldExecuteHour, v))
}
// ExecuteHourIn applies the In predicate on the "execute_hour" field.
func ExecuteHourIn(vs ...int) predicate.CpTask {
return predicate.CpTask(sql.FieldIn(FieldExecuteHour, vs...))
}
// ExecuteHourNotIn applies the NotIn predicate on the "execute_hour" field.
func ExecuteHourNotIn(vs ...int) predicate.CpTask {
return predicate.CpTask(sql.FieldNotIn(FieldExecuteHour, vs...))
}
// ExecuteHourGT applies the GT predicate on the "execute_hour" field.
func ExecuteHourGT(v int) predicate.CpTask {
return predicate.CpTask(sql.FieldGT(FieldExecuteHour, v))
}
// ExecuteHourGTE applies the GTE predicate on the "execute_hour" field.
func ExecuteHourGTE(v int) predicate.CpTask {
return predicate.CpTask(sql.FieldGTE(FieldExecuteHour, v))
}
// ExecuteHourLT applies the LT predicate on the "execute_hour" field.
func ExecuteHourLT(v int) predicate.CpTask {
return predicate.CpTask(sql.FieldLT(FieldExecuteHour, v))
}
// ExecuteHourLTE applies the LTE predicate on the "execute_hour" field.
func ExecuteHourLTE(v int) predicate.CpTask {
return predicate.CpTask(sql.FieldLTE(FieldExecuteHour, v))
}
// ExecuteHourIsNil applies the IsNil predicate on the "execute_hour" field.
func ExecuteHourIsNil() predicate.CpTask {
return predicate.CpTask(sql.FieldIsNull(FieldExecuteHour))
}
// ExecuteHourNotNil applies the NotNil predicate on the "execute_hour" field.
func ExecuteHourNotNil() predicate.CpTask {
return predicate.CpTask(sql.FieldNotNull(FieldExecuteHour))
}
// ExecuteMinuteEQ applies the EQ predicate on the "execute_minute" field.
func ExecuteMinuteEQ(v int) predicate.CpTask {
return predicate.CpTask(sql.FieldEQ(FieldExecuteMinute, v))
}
// ExecuteMinuteNEQ applies the NEQ predicate on the "execute_minute" field.
func ExecuteMinuteNEQ(v int) predicate.CpTask {
return predicate.CpTask(sql.FieldNEQ(FieldExecuteMinute, v))
}
// ExecuteMinuteIn applies the In predicate on the "execute_minute" field.
func ExecuteMinuteIn(vs ...int) predicate.CpTask {
return predicate.CpTask(sql.FieldIn(FieldExecuteMinute, vs...))
}
// ExecuteMinuteNotIn applies the NotIn predicate on the "execute_minute" field.
func ExecuteMinuteNotIn(vs ...int) predicate.CpTask {
return predicate.CpTask(sql.FieldNotIn(FieldExecuteMinute, vs...))
}
// ExecuteMinuteGT applies the GT predicate on the "execute_minute" field.
func ExecuteMinuteGT(v int) predicate.CpTask {
return predicate.CpTask(sql.FieldGT(FieldExecuteMinute, v))
}
// ExecuteMinuteGTE applies the GTE predicate on the "execute_minute" field.
func ExecuteMinuteGTE(v int) predicate.CpTask {
return predicate.CpTask(sql.FieldGTE(FieldExecuteMinute, v))
}
// ExecuteMinuteLT applies the LT predicate on the "execute_minute" field.
func ExecuteMinuteLT(v int) predicate.CpTask {
return predicate.CpTask(sql.FieldLT(FieldExecuteMinute, v))
}
// ExecuteMinuteLTE applies the LTE predicate on the "execute_minute" field.
func ExecuteMinuteLTE(v int) predicate.CpTask {
return predicate.CpTask(sql.FieldLTE(FieldExecuteMinute, v))
}
// ExecuteMinuteIsNil applies the IsNil predicate on the "execute_minute" field.
func ExecuteMinuteIsNil() predicate.CpTask {
return predicate.CpTask(sql.FieldIsNull(FieldExecuteMinute))
}
// ExecuteMinuteNotNil applies the NotNil predicate on the "execute_minute" field.
func ExecuteMinuteNotNil() predicate.CpTask {
return predicate.CpTask(sql.FieldNotNull(FieldExecuteMinute))
}
// NextExecuteTimeEQ applies the EQ predicate on the "next_execute_time" field.
func NextExecuteTimeEQ(v int64) predicate.CpTask {
return predicate.CpTask(sql.FieldEQ(FieldNextExecuteTime, v))
}
// NextExecuteTimeNEQ applies the NEQ predicate on the "next_execute_time" field.
func NextExecuteTimeNEQ(v int64) predicate.CpTask {
return predicate.CpTask(sql.FieldNEQ(FieldNextExecuteTime, v))
}
// NextExecuteTimeIn applies the In predicate on the "next_execute_time" field.
func NextExecuteTimeIn(vs ...int64) predicate.CpTask {
return predicate.CpTask(sql.FieldIn(FieldNextExecuteTime, vs...))
}
// NextExecuteTimeNotIn applies the NotIn predicate on the "next_execute_time" field.
func NextExecuteTimeNotIn(vs ...int64) predicate.CpTask {
return predicate.CpTask(sql.FieldNotIn(FieldNextExecuteTime, vs...))
}
// NextExecuteTimeGT applies the GT predicate on the "next_execute_time" field.
func NextExecuteTimeGT(v int64) predicate.CpTask {
return predicate.CpTask(sql.FieldGT(FieldNextExecuteTime, v))
}
// NextExecuteTimeGTE applies the GTE predicate on the "next_execute_time" field.
func NextExecuteTimeGTE(v int64) predicate.CpTask {
return predicate.CpTask(sql.FieldGTE(FieldNextExecuteTime, v))
}
// NextExecuteTimeLT applies the LT predicate on the "next_execute_time" field.
func NextExecuteTimeLT(v int64) predicate.CpTask {
return predicate.CpTask(sql.FieldLT(FieldNextExecuteTime, v))
}
// NextExecuteTimeLTE applies the LTE predicate on the "next_execute_time" field.
func NextExecuteTimeLTE(v int64) predicate.CpTask {
return predicate.CpTask(sql.FieldLTE(FieldNextExecuteTime, v))
}
// NextExecuteTimeIsNil applies the IsNil predicate on the "next_execute_time" field.
func NextExecuteTimeIsNil() predicate.CpTask {
return predicate.CpTask(sql.FieldIsNull(FieldNextExecuteTime))
}
// NextExecuteTimeNotNil applies the NotNil predicate on the "next_execute_time" field.
func NextExecuteTimeNotNil() predicate.CpTask {
return predicate.CpTask(sql.FieldNotNull(FieldNextExecuteTime))
}
// HasCpUser applies the HasEdge predicate on the "cp_user" edge.
func HasCpUser() predicate.CpTask {
return predicate.CpTask(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2O, true, CpUserTable, CpUserColumn),
)
schemaConfig := internal.SchemaConfigFromContext(s.Context())
step.To.Schema = schemaConfig.CpUser
step.Edge.Schema = schemaConfig.CpTask
sqlgraph.HasNeighbors(s, step)
})
}
// HasCpUserWith applies the HasEdge predicate on the "cp_user" edge with a given conditions (other predicates).
func HasCpUserWith(preds ...predicate.CpUser) predicate.CpTask {
return predicate.CpTask(func(s *sql.Selector) {
step := newCpUserStep()
schemaConfig := internal.SchemaConfigFromContext(s.Context())
step.To.Schema = schemaConfig.CpUser
step.Edge.Schema = schemaConfig.CpTask
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasSysUser applies the HasEdge predicate on the "sys_user" edge.
func HasSysUser() predicate.CpTask {
return predicate.CpTask(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2O, true, SysUserTable, SysUserColumn),
)
schemaConfig := internal.SchemaConfigFromContext(s.Context())
step.To.Schema = schemaConfig.SysUser
step.Edge.Schema = schemaConfig.CpTask
sqlgraph.HasNeighbors(s, step)
})
}
// HasSysUserWith applies the HasEdge predicate on the "sys_user" edge with a given conditions (other predicates).
func HasSysUserWith(preds ...predicate.SysUser) predicate.CpTask {
return predicate.CpTask(func(s *sql.Selector) {
step := newSysUserStep()
schemaConfig := internal.SchemaConfigFromContext(s.Context())
step.To.Schema = schemaConfig.SysUser
step.Edge.Schema = schemaConfig.CpTask
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasCpTaskLogs applies the HasEdge predicate on the "cp_task_logs" edge.
func HasCpTaskLogs() predicate.CpTask {
return predicate.CpTask(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, false, CpTaskLogsTable, CpTaskLogsColumn),
)
schemaConfig := internal.SchemaConfigFromContext(s.Context())
step.To.Schema = schemaConfig.CpTaskLog
step.Edge.Schema = schemaConfig.CpTaskLog
sqlgraph.HasNeighbors(s, step)
})
}
// HasCpTaskLogsWith applies the HasEdge predicate on the "cp_task_logs" edge with a given conditions (other predicates).
func HasCpTaskLogsWith(preds ...predicate.CpTaskLog) predicate.CpTask {
return predicate.CpTask(func(s *sql.Selector) {
step := newCpTaskLogsStep()
schemaConfig := internal.SchemaConfigFromContext(s.Context())
step.To.Schema = schemaConfig.CpTaskLog
step.Edge.Schema = schemaConfig.CpTaskLog
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// And groups predicates with the AND operator between them.
func And(predicates ...predicate.CpTask) predicate.CpTask {
return predicate.CpTask(sql.AndPredicates(predicates...))
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.CpTask) predicate.CpTask {
return predicate.CpTask(sql.OrPredicates(predicates...))
}
// Not applies the not operator on the given predicate.
func Not(p predicate.CpTask) predicate.CpTask {
return predicate.CpTask(sql.NotPredicates(p))
}