123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510 |
- // Code generated by ent, DO NOT EDIT.
- package chatrecords
- import (
- "time"
- "wechat-api/ent/predicate"
- "entgo.io/ent/dialect/sql"
- )
- // ID filters vertices based on their ID field.
- func ID(id uint64) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldEQ(FieldID, id))
- }
- // IDEQ applies the EQ predicate on the ID field.
- func IDEQ(id uint64) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldEQ(FieldID, id))
- }
- // IDNEQ applies the NEQ predicate on the ID field.
- func IDNEQ(id uint64) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldNEQ(FieldID, id))
- }
- // IDIn applies the In predicate on the ID field.
- func IDIn(ids ...uint64) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldIn(FieldID, ids...))
- }
- // IDNotIn applies the NotIn predicate on the ID field.
- func IDNotIn(ids ...uint64) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldNotIn(FieldID, ids...))
- }
- // IDGT applies the GT predicate on the ID field.
- func IDGT(id uint64) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldGT(FieldID, id))
- }
- // IDGTE applies the GTE predicate on the ID field.
- func IDGTE(id uint64) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldGTE(FieldID, id))
- }
- // IDLT applies the LT predicate on the ID field.
- func IDLT(id uint64) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldLT(FieldID, id))
- }
- // IDLTE applies the LTE predicate on the ID field.
- func IDLTE(id uint64) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldLTE(FieldID, id))
- }
- // CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
- func CreatedAt(v time.Time) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldEQ(FieldCreatedAt, v))
- }
- // UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
- func UpdatedAt(v time.Time) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldEQ(FieldUpdatedAt, v))
- }
- // DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
- func DeletedAt(v time.Time) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldEQ(FieldDeletedAt, v))
- }
- // Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
- func Content(v string) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldEQ(FieldContent, v))
- }
- // ContentType applies equality check predicate on the "content_type" field. It's identical to ContentTypeEQ.
- func ContentType(v uint8) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldEQ(FieldContentType, v))
- }
- // SessionID applies equality check predicate on the "session_id" field. It's identical to SessionIDEQ.
- func SessionID(v uint64) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldEQ(FieldSessionID, v))
- }
- // UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
- func UserID(v uint64) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldEQ(FieldUserID, v))
- }
- // BotID applies equality check predicate on the "bot_id" field. It's identical to BotIDEQ.
- func BotID(v uint64) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldEQ(FieldBotID, v))
- }
- // BotType applies equality check predicate on the "bot_type" field. It's identical to BotTypeEQ.
- func BotType(v uint8) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldEQ(FieldBotType, v))
- }
- // CreatedAtEQ applies the EQ predicate on the "created_at" field.
- func CreatedAtEQ(v time.Time) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldEQ(FieldCreatedAt, v))
- }
- // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
- func CreatedAtNEQ(v time.Time) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldNEQ(FieldCreatedAt, v))
- }
- // CreatedAtIn applies the In predicate on the "created_at" field.
- func CreatedAtIn(vs ...time.Time) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldIn(FieldCreatedAt, vs...))
- }
- // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
- func CreatedAtNotIn(vs ...time.Time) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldNotIn(FieldCreatedAt, vs...))
- }
- // CreatedAtGT applies the GT predicate on the "created_at" field.
- func CreatedAtGT(v time.Time) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldGT(FieldCreatedAt, v))
- }
- // CreatedAtGTE applies the GTE predicate on the "created_at" field.
- func CreatedAtGTE(v time.Time) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldGTE(FieldCreatedAt, v))
- }
- // CreatedAtLT applies the LT predicate on the "created_at" field.
- func CreatedAtLT(v time.Time) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldLT(FieldCreatedAt, v))
- }
- // CreatedAtLTE applies the LTE predicate on the "created_at" field.
- func CreatedAtLTE(v time.Time) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldLTE(FieldCreatedAt, v))
- }
- // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
- func UpdatedAtEQ(v time.Time) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldEQ(FieldUpdatedAt, v))
- }
- // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
- func UpdatedAtNEQ(v time.Time) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldNEQ(FieldUpdatedAt, v))
- }
- // UpdatedAtIn applies the In predicate on the "updated_at" field.
- func UpdatedAtIn(vs ...time.Time) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldIn(FieldUpdatedAt, vs...))
- }
- // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
- func UpdatedAtNotIn(vs ...time.Time) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldNotIn(FieldUpdatedAt, vs...))
- }
- // UpdatedAtGT applies the GT predicate on the "updated_at" field.
- func UpdatedAtGT(v time.Time) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldGT(FieldUpdatedAt, v))
- }
- // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
- func UpdatedAtGTE(v time.Time) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldGTE(FieldUpdatedAt, v))
- }
- // UpdatedAtLT applies the LT predicate on the "updated_at" field.
- func UpdatedAtLT(v time.Time) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldLT(FieldUpdatedAt, v))
- }
- // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
- func UpdatedAtLTE(v time.Time) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldLTE(FieldUpdatedAt, v))
- }
- // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
- func DeletedAtEQ(v time.Time) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldEQ(FieldDeletedAt, v))
- }
- // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
- func DeletedAtNEQ(v time.Time) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldNEQ(FieldDeletedAt, v))
- }
- // DeletedAtIn applies the In predicate on the "deleted_at" field.
- func DeletedAtIn(vs ...time.Time) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldIn(FieldDeletedAt, vs...))
- }
- // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
- func DeletedAtNotIn(vs ...time.Time) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldNotIn(FieldDeletedAt, vs...))
- }
- // DeletedAtGT applies the GT predicate on the "deleted_at" field.
- func DeletedAtGT(v time.Time) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldGT(FieldDeletedAt, v))
- }
- // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
- func DeletedAtGTE(v time.Time) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldGTE(FieldDeletedAt, v))
- }
- // DeletedAtLT applies the LT predicate on the "deleted_at" field.
- func DeletedAtLT(v time.Time) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldLT(FieldDeletedAt, v))
- }
- // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
- func DeletedAtLTE(v time.Time) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldLTE(FieldDeletedAt, v))
- }
- // DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
- func DeletedAtIsNil() predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldIsNull(FieldDeletedAt))
- }
- // DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
- func DeletedAtNotNil() predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldNotNull(FieldDeletedAt))
- }
- // ContentEQ applies the EQ predicate on the "content" field.
- func ContentEQ(v string) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldEQ(FieldContent, v))
- }
- // ContentNEQ applies the NEQ predicate on the "content" field.
- func ContentNEQ(v string) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldNEQ(FieldContent, v))
- }
- // ContentIn applies the In predicate on the "content" field.
- func ContentIn(vs ...string) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldIn(FieldContent, vs...))
- }
- // ContentNotIn applies the NotIn predicate on the "content" field.
- func ContentNotIn(vs ...string) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldNotIn(FieldContent, vs...))
- }
- // ContentGT applies the GT predicate on the "content" field.
- func ContentGT(v string) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldGT(FieldContent, v))
- }
- // ContentGTE applies the GTE predicate on the "content" field.
- func ContentGTE(v string) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldGTE(FieldContent, v))
- }
- // ContentLT applies the LT predicate on the "content" field.
- func ContentLT(v string) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldLT(FieldContent, v))
- }
- // ContentLTE applies the LTE predicate on the "content" field.
- func ContentLTE(v string) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldLTE(FieldContent, v))
- }
- // ContentContains applies the Contains predicate on the "content" field.
- func ContentContains(v string) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldContains(FieldContent, v))
- }
- // ContentHasPrefix applies the HasPrefix predicate on the "content" field.
- func ContentHasPrefix(v string) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldHasPrefix(FieldContent, v))
- }
- // ContentHasSuffix applies the HasSuffix predicate on the "content" field.
- func ContentHasSuffix(v string) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldHasSuffix(FieldContent, v))
- }
- // ContentEqualFold applies the EqualFold predicate on the "content" field.
- func ContentEqualFold(v string) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldEqualFold(FieldContent, v))
- }
- // ContentContainsFold applies the ContainsFold predicate on the "content" field.
- func ContentContainsFold(v string) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldContainsFold(FieldContent, v))
- }
- // ContentTypeEQ applies the EQ predicate on the "content_type" field.
- func ContentTypeEQ(v uint8) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldEQ(FieldContentType, v))
- }
- // ContentTypeNEQ applies the NEQ predicate on the "content_type" field.
- func ContentTypeNEQ(v uint8) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldNEQ(FieldContentType, v))
- }
- // ContentTypeIn applies the In predicate on the "content_type" field.
- func ContentTypeIn(vs ...uint8) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldIn(FieldContentType, vs...))
- }
- // ContentTypeNotIn applies the NotIn predicate on the "content_type" field.
- func ContentTypeNotIn(vs ...uint8) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldNotIn(FieldContentType, vs...))
- }
- // ContentTypeGT applies the GT predicate on the "content_type" field.
- func ContentTypeGT(v uint8) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldGT(FieldContentType, v))
- }
- // ContentTypeGTE applies the GTE predicate on the "content_type" field.
- func ContentTypeGTE(v uint8) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldGTE(FieldContentType, v))
- }
- // ContentTypeLT applies the LT predicate on the "content_type" field.
- func ContentTypeLT(v uint8) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldLT(FieldContentType, v))
- }
- // ContentTypeLTE applies the LTE predicate on the "content_type" field.
- func ContentTypeLTE(v uint8) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldLTE(FieldContentType, v))
- }
- // SessionIDEQ applies the EQ predicate on the "session_id" field.
- func SessionIDEQ(v uint64) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldEQ(FieldSessionID, v))
- }
- // SessionIDNEQ applies the NEQ predicate on the "session_id" field.
- func SessionIDNEQ(v uint64) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldNEQ(FieldSessionID, v))
- }
- // SessionIDIn applies the In predicate on the "session_id" field.
- func SessionIDIn(vs ...uint64) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldIn(FieldSessionID, vs...))
- }
- // SessionIDNotIn applies the NotIn predicate on the "session_id" field.
- func SessionIDNotIn(vs ...uint64) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldNotIn(FieldSessionID, vs...))
- }
- // SessionIDGT applies the GT predicate on the "session_id" field.
- func SessionIDGT(v uint64) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldGT(FieldSessionID, v))
- }
- // SessionIDGTE applies the GTE predicate on the "session_id" field.
- func SessionIDGTE(v uint64) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldGTE(FieldSessionID, v))
- }
- // SessionIDLT applies the LT predicate on the "session_id" field.
- func SessionIDLT(v uint64) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldLT(FieldSessionID, v))
- }
- // SessionIDLTE applies the LTE predicate on the "session_id" field.
- func SessionIDLTE(v uint64) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldLTE(FieldSessionID, v))
- }
- // UserIDEQ applies the EQ predicate on the "user_id" field.
- func UserIDEQ(v uint64) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldEQ(FieldUserID, v))
- }
- // UserIDNEQ applies the NEQ predicate on the "user_id" field.
- func UserIDNEQ(v uint64) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldNEQ(FieldUserID, v))
- }
- // UserIDIn applies the In predicate on the "user_id" field.
- func UserIDIn(vs ...uint64) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldIn(FieldUserID, vs...))
- }
- // UserIDNotIn applies the NotIn predicate on the "user_id" field.
- func UserIDNotIn(vs ...uint64) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldNotIn(FieldUserID, vs...))
- }
- // UserIDGT applies the GT predicate on the "user_id" field.
- func UserIDGT(v uint64) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldGT(FieldUserID, v))
- }
- // UserIDGTE applies the GTE predicate on the "user_id" field.
- func UserIDGTE(v uint64) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldGTE(FieldUserID, v))
- }
- // UserIDLT applies the LT predicate on the "user_id" field.
- func UserIDLT(v uint64) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldLT(FieldUserID, v))
- }
- // UserIDLTE applies the LTE predicate on the "user_id" field.
- func UserIDLTE(v uint64) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldLTE(FieldUserID, v))
- }
- // BotIDEQ applies the EQ predicate on the "bot_id" field.
- func BotIDEQ(v uint64) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldEQ(FieldBotID, v))
- }
- // BotIDNEQ applies the NEQ predicate on the "bot_id" field.
- func BotIDNEQ(v uint64) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldNEQ(FieldBotID, v))
- }
- // BotIDIn applies the In predicate on the "bot_id" field.
- func BotIDIn(vs ...uint64) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldIn(FieldBotID, vs...))
- }
- // BotIDNotIn applies the NotIn predicate on the "bot_id" field.
- func BotIDNotIn(vs ...uint64) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldNotIn(FieldBotID, vs...))
- }
- // BotIDGT applies the GT predicate on the "bot_id" field.
- func BotIDGT(v uint64) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldGT(FieldBotID, v))
- }
- // BotIDGTE applies the GTE predicate on the "bot_id" field.
- func BotIDGTE(v uint64) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldGTE(FieldBotID, v))
- }
- // BotIDLT applies the LT predicate on the "bot_id" field.
- func BotIDLT(v uint64) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldLT(FieldBotID, v))
- }
- // BotIDLTE applies the LTE predicate on the "bot_id" field.
- func BotIDLTE(v uint64) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldLTE(FieldBotID, v))
- }
- // BotTypeEQ applies the EQ predicate on the "bot_type" field.
- func BotTypeEQ(v uint8) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldEQ(FieldBotType, v))
- }
- // BotTypeNEQ applies the NEQ predicate on the "bot_type" field.
- func BotTypeNEQ(v uint8) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldNEQ(FieldBotType, v))
- }
- // BotTypeIn applies the In predicate on the "bot_type" field.
- func BotTypeIn(vs ...uint8) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldIn(FieldBotType, vs...))
- }
- // BotTypeNotIn applies the NotIn predicate on the "bot_type" field.
- func BotTypeNotIn(vs ...uint8) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldNotIn(FieldBotType, vs...))
- }
- // BotTypeGT applies the GT predicate on the "bot_type" field.
- func BotTypeGT(v uint8) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldGT(FieldBotType, v))
- }
- // BotTypeGTE applies the GTE predicate on the "bot_type" field.
- func BotTypeGTE(v uint8) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldGTE(FieldBotType, v))
- }
- // BotTypeLT applies the LT predicate on the "bot_type" field.
- func BotTypeLT(v uint8) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldLT(FieldBotType, v))
- }
- // BotTypeLTE applies the LTE predicate on the "bot_type" field.
- func BotTypeLTE(v uint8) predicate.ChatRecords {
- return predicate.ChatRecords(sql.FieldLTE(FieldBotType, v))
- }
- // And groups predicates with the AND operator between them.
- func And(predicates ...predicate.ChatRecords) predicate.ChatRecords {
- return predicate.ChatRecords(sql.AndPredicates(predicates...))
- }
- // Or groups predicates with the OR operator between them.
- func Or(predicates ...predicate.ChatRecords) predicate.ChatRecords {
- return predicate.ChatRecords(sql.OrPredicates(predicates...))
- }
- // Not applies the not operator on the given predicate.
- func Not(p predicate.ChatRecords) predicate.ChatRecords {
- return predicate.ChatRecords(sql.NotPredicates(p))
- }
|