where.go 72 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097
  1. // Code generated by ent, DO NOT EDIT.
  2. package contact
  3. import (
  4. "time"
  5. "wechat-api/ent/predicate"
  6. "entgo.io/ent/dialect/sql"
  7. "entgo.io/ent/dialect/sql/sqlgraph"
  8. )
  9. // ID filters vertices based on their ID field.
  10. func ID(id uint64) predicate.Contact {
  11. return predicate.Contact(sql.FieldEQ(FieldID, id))
  12. }
  13. // IDEQ applies the EQ predicate on the ID field.
  14. func IDEQ(id uint64) predicate.Contact {
  15. return predicate.Contact(sql.FieldEQ(FieldID, id))
  16. }
  17. // IDNEQ applies the NEQ predicate on the ID field.
  18. func IDNEQ(id uint64) predicate.Contact {
  19. return predicate.Contact(sql.FieldNEQ(FieldID, id))
  20. }
  21. // IDIn applies the In predicate on the ID field.
  22. func IDIn(ids ...uint64) predicate.Contact {
  23. return predicate.Contact(sql.FieldIn(FieldID, ids...))
  24. }
  25. // IDNotIn applies the NotIn predicate on the ID field.
  26. func IDNotIn(ids ...uint64) predicate.Contact {
  27. return predicate.Contact(sql.FieldNotIn(FieldID, ids...))
  28. }
  29. // IDGT applies the GT predicate on the ID field.
  30. func IDGT(id uint64) predicate.Contact {
  31. return predicate.Contact(sql.FieldGT(FieldID, id))
  32. }
  33. // IDGTE applies the GTE predicate on the ID field.
  34. func IDGTE(id uint64) predicate.Contact {
  35. return predicate.Contact(sql.FieldGTE(FieldID, id))
  36. }
  37. // IDLT applies the LT predicate on the ID field.
  38. func IDLT(id uint64) predicate.Contact {
  39. return predicate.Contact(sql.FieldLT(FieldID, id))
  40. }
  41. // IDLTE applies the LTE predicate on the ID field.
  42. func IDLTE(id uint64) predicate.Contact {
  43. return predicate.Contact(sql.FieldLTE(FieldID, id))
  44. }
  45. // CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
  46. func CreatedAt(v time.Time) predicate.Contact {
  47. return predicate.Contact(sql.FieldEQ(FieldCreatedAt, v))
  48. }
  49. // UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
  50. func UpdatedAt(v time.Time) predicate.Contact {
  51. return predicate.Contact(sql.FieldEQ(FieldUpdatedAt, v))
  52. }
  53. // Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
  54. func Status(v uint8) predicate.Contact {
  55. return predicate.Contact(sql.FieldEQ(FieldStatus, v))
  56. }
  57. // DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
  58. func DeletedAt(v time.Time) predicate.Contact {
  59. return predicate.Contact(sql.FieldEQ(FieldDeletedAt, v))
  60. }
  61. // WxWxid applies equality check predicate on the "wx_wxid" field. It's identical to WxWxidEQ.
  62. func WxWxid(v string) predicate.Contact {
  63. return predicate.Contact(sql.FieldEQ(FieldWxWxid, v))
  64. }
  65. // Type applies equality check predicate on the "type" field. It's identical to TypeEQ.
  66. func Type(v int) predicate.Contact {
  67. return predicate.Contact(sql.FieldEQ(FieldType, v))
  68. }
  69. // Wxid applies equality check predicate on the "wxid" field. It's identical to WxidEQ.
  70. func Wxid(v string) predicate.Contact {
  71. return predicate.Contact(sql.FieldEQ(FieldWxid, v))
  72. }
  73. // Account applies equality check predicate on the "account" field. It's identical to AccountEQ.
  74. func Account(v string) predicate.Contact {
  75. return predicate.Contact(sql.FieldEQ(FieldAccount, v))
  76. }
  77. // Nickname applies equality check predicate on the "nickname" field. It's identical to NicknameEQ.
  78. func Nickname(v string) predicate.Contact {
  79. return predicate.Contact(sql.FieldEQ(FieldNickname, v))
  80. }
  81. // Markname applies equality check predicate on the "markname" field. It's identical to MarknameEQ.
  82. func Markname(v string) predicate.Contact {
  83. return predicate.Contact(sql.FieldEQ(FieldMarkname, v))
  84. }
  85. // Headimg applies equality check predicate on the "headimg" field. It's identical to HeadimgEQ.
  86. func Headimg(v string) predicate.Contact {
  87. return predicate.Contact(sql.FieldEQ(FieldHeadimg, v))
  88. }
  89. // Sex applies equality check predicate on the "sex" field. It's identical to SexEQ.
  90. func Sex(v int) predicate.Contact {
  91. return predicate.Contact(sql.FieldEQ(FieldSex, v))
  92. }
  93. // Starrole applies equality check predicate on the "starrole" field. It's identical to StarroleEQ.
  94. func Starrole(v string) predicate.Contact {
  95. return predicate.Contact(sql.FieldEQ(FieldStarrole, v))
  96. }
  97. // Dontseeit applies equality check predicate on the "dontseeit" field. It's identical to DontseeitEQ.
  98. func Dontseeit(v int) predicate.Contact {
  99. return predicate.Contact(sql.FieldEQ(FieldDontseeit, v))
  100. }
  101. // Dontseeme applies equality check predicate on the "dontseeme" field. It's identical to DontseemeEQ.
  102. func Dontseeme(v int) predicate.Contact {
  103. return predicate.Contact(sql.FieldEQ(FieldDontseeme, v))
  104. }
  105. // Lag applies equality check predicate on the "lag" field. It's identical to LagEQ.
  106. func Lag(v string) predicate.Contact {
  107. return predicate.Contact(sql.FieldEQ(FieldLag, v))
  108. }
  109. // Gid applies equality check predicate on the "gid" field. It's identical to GidEQ.
  110. func Gid(v string) predicate.Contact {
  111. return predicate.Contact(sql.FieldEQ(FieldGid, v))
  112. }
  113. // Gname applies equality check predicate on the "gname" field. It's identical to GnameEQ.
  114. func Gname(v string) predicate.Contact {
  115. return predicate.Contact(sql.FieldEQ(FieldGname, v))
  116. }
  117. // V3 applies equality check predicate on the "v3" field. It's identical to V3EQ.
  118. func V3(v string) predicate.Contact {
  119. return predicate.Contact(sql.FieldEQ(FieldV3, v))
  120. }
  121. // OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
  122. func OrganizationID(v uint64) predicate.Contact {
  123. return predicate.Contact(sql.FieldEQ(FieldOrganizationID, v))
  124. }
  125. // Ctype applies equality check predicate on the "ctype" field. It's identical to CtypeEQ.
  126. func Ctype(v uint64) predicate.Contact {
  127. return predicate.Contact(sql.FieldEQ(FieldCtype, v))
  128. }
  129. // Csex applies equality check predicate on the "csex" field. It's identical to CsexEQ.
  130. func Csex(v int) predicate.Contact {
  131. return predicate.Contact(sql.FieldEQ(FieldCsex, v))
  132. }
  133. // Cage applies equality check predicate on the "cage" field. It's identical to CageEQ.
  134. func Cage(v int) predicate.Contact {
  135. return predicate.Contact(sql.FieldEQ(FieldCage, v))
  136. }
  137. // Cname applies equality check predicate on the "cname" field. It's identical to CnameEQ.
  138. func Cname(v string) predicate.Contact {
  139. return predicate.Contact(sql.FieldEQ(FieldCname, v))
  140. }
  141. // Carea applies equality check predicate on the "carea" field. It's identical to CareaEQ.
  142. func Carea(v string) predicate.Contact {
  143. return predicate.Contact(sql.FieldEQ(FieldCarea, v))
  144. }
  145. // Cmobile applies equality check predicate on the "cmobile" field. It's identical to CmobileEQ.
  146. func Cmobile(v string) predicate.Contact {
  147. return predicate.Contact(sql.FieldEQ(FieldCmobile, v))
  148. }
  149. // Cbirthday applies equality check predicate on the "cbirthday" field. It's identical to CbirthdayEQ.
  150. func Cbirthday(v string) predicate.Contact {
  151. return predicate.Contact(sql.FieldEQ(FieldCbirthday, v))
  152. }
  153. // Cbirtharea applies equality check predicate on the "cbirtharea" field. It's identical to CbirthareaEQ.
  154. func Cbirtharea(v string) predicate.Contact {
  155. return predicate.Contact(sql.FieldEQ(FieldCbirtharea, v))
  156. }
  157. // CidcardNo applies equality check predicate on the "cidcard_no" field. It's identical to CidcardNoEQ.
  158. func CidcardNo(v string) predicate.Contact {
  159. return predicate.Contact(sql.FieldEQ(FieldCidcardNo, v))
  160. }
  161. // Ctitle applies equality check predicate on the "ctitle" field. It's identical to CtitleEQ.
  162. func Ctitle(v string) predicate.Contact {
  163. return predicate.Contact(sql.FieldEQ(FieldCtitle, v))
  164. }
  165. // Cc applies equality check predicate on the "cc" field. It's identical to CcEQ.
  166. func Cc(v string) predicate.Contact {
  167. return predicate.Contact(sql.FieldEQ(FieldCc, v))
  168. }
  169. // Phone applies equality check predicate on the "phone" field. It's identical to PhoneEQ.
  170. func Phone(v string) predicate.Contact {
  171. return predicate.Contact(sql.FieldEQ(FieldPhone, v))
  172. }
  173. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  174. func CreatedAtEQ(v time.Time) predicate.Contact {
  175. return predicate.Contact(sql.FieldEQ(FieldCreatedAt, v))
  176. }
  177. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  178. func CreatedAtNEQ(v time.Time) predicate.Contact {
  179. return predicate.Contact(sql.FieldNEQ(FieldCreatedAt, v))
  180. }
  181. // CreatedAtIn applies the In predicate on the "created_at" field.
  182. func CreatedAtIn(vs ...time.Time) predicate.Contact {
  183. return predicate.Contact(sql.FieldIn(FieldCreatedAt, vs...))
  184. }
  185. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  186. func CreatedAtNotIn(vs ...time.Time) predicate.Contact {
  187. return predicate.Contact(sql.FieldNotIn(FieldCreatedAt, vs...))
  188. }
  189. // CreatedAtGT applies the GT predicate on the "created_at" field.
  190. func CreatedAtGT(v time.Time) predicate.Contact {
  191. return predicate.Contact(sql.FieldGT(FieldCreatedAt, v))
  192. }
  193. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  194. func CreatedAtGTE(v time.Time) predicate.Contact {
  195. return predicate.Contact(sql.FieldGTE(FieldCreatedAt, v))
  196. }
  197. // CreatedAtLT applies the LT predicate on the "created_at" field.
  198. func CreatedAtLT(v time.Time) predicate.Contact {
  199. return predicate.Contact(sql.FieldLT(FieldCreatedAt, v))
  200. }
  201. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  202. func CreatedAtLTE(v time.Time) predicate.Contact {
  203. return predicate.Contact(sql.FieldLTE(FieldCreatedAt, v))
  204. }
  205. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  206. func UpdatedAtEQ(v time.Time) predicate.Contact {
  207. return predicate.Contact(sql.FieldEQ(FieldUpdatedAt, v))
  208. }
  209. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  210. func UpdatedAtNEQ(v time.Time) predicate.Contact {
  211. return predicate.Contact(sql.FieldNEQ(FieldUpdatedAt, v))
  212. }
  213. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  214. func UpdatedAtIn(vs ...time.Time) predicate.Contact {
  215. return predicate.Contact(sql.FieldIn(FieldUpdatedAt, vs...))
  216. }
  217. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  218. func UpdatedAtNotIn(vs ...time.Time) predicate.Contact {
  219. return predicate.Contact(sql.FieldNotIn(FieldUpdatedAt, vs...))
  220. }
  221. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  222. func UpdatedAtGT(v time.Time) predicate.Contact {
  223. return predicate.Contact(sql.FieldGT(FieldUpdatedAt, v))
  224. }
  225. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  226. func UpdatedAtGTE(v time.Time) predicate.Contact {
  227. return predicate.Contact(sql.FieldGTE(FieldUpdatedAt, v))
  228. }
  229. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  230. func UpdatedAtLT(v time.Time) predicate.Contact {
  231. return predicate.Contact(sql.FieldLT(FieldUpdatedAt, v))
  232. }
  233. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  234. func UpdatedAtLTE(v time.Time) predicate.Contact {
  235. return predicate.Contact(sql.FieldLTE(FieldUpdatedAt, v))
  236. }
  237. // StatusEQ applies the EQ predicate on the "status" field.
  238. func StatusEQ(v uint8) predicate.Contact {
  239. return predicate.Contact(sql.FieldEQ(FieldStatus, v))
  240. }
  241. // StatusNEQ applies the NEQ predicate on the "status" field.
  242. func StatusNEQ(v uint8) predicate.Contact {
  243. return predicate.Contact(sql.FieldNEQ(FieldStatus, v))
  244. }
  245. // StatusIn applies the In predicate on the "status" field.
  246. func StatusIn(vs ...uint8) predicate.Contact {
  247. return predicate.Contact(sql.FieldIn(FieldStatus, vs...))
  248. }
  249. // StatusNotIn applies the NotIn predicate on the "status" field.
  250. func StatusNotIn(vs ...uint8) predicate.Contact {
  251. return predicate.Contact(sql.FieldNotIn(FieldStatus, vs...))
  252. }
  253. // StatusGT applies the GT predicate on the "status" field.
  254. func StatusGT(v uint8) predicate.Contact {
  255. return predicate.Contact(sql.FieldGT(FieldStatus, v))
  256. }
  257. // StatusGTE applies the GTE predicate on the "status" field.
  258. func StatusGTE(v uint8) predicate.Contact {
  259. return predicate.Contact(sql.FieldGTE(FieldStatus, v))
  260. }
  261. // StatusLT applies the LT predicate on the "status" field.
  262. func StatusLT(v uint8) predicate.Contact {
  263. return predicate.Contact(sql.FieldLT(FieldStatus, v))
  264. }
  265. // StatusLTE applies the LTE predicate on the "status" field.
  266. func StatusLTE(v uint8) predicate.Contact {
  267. return predicate.Contact(sql.FieldLTE(FieldStatus, v))
  268. }
  269. // StatusIsNil applies the IsNil predicate on the "status" field.
  270. func StatusIsNil() predicate.Contact {
  271. return predicate.Contact(sql.FieldIsNull(FieldStatus))
  272. }
  273. // StatusNotNil applies the NotNil predicate on the "status" field.
  274. func StatusNotNil() predicate.Contact {
  275. return predicate.Contact(sql.FieldNotNull(FieldStatus))
  276. }
  277. // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
  278. func DeletedAtEQ(v time.Time) predicate.Contact {
  279. return predicate.Contact(sql.FieldEQ(FieldDeletedAt, v))
  280. }
  281. // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
  282. func DeletedAtNEQ(v time.Time) predicate.Contact {
  283. return predicate.Contact(sql.FieldNEQ(FieldDeletedAt, v))
  284. }
  285. // DeletedAtIn applies the In predicate on the "deleted_at" field.
  286. func DeletedAtIn(vs ...time.Time) predicate.Contact {
  287. return predicate.Contact(sql.FieldIn(FieldDeletedAt, vs...))
  288. }
  289. // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
  290. func DeletedAtNotIn(vs ...time.Time) predicate.Contact {
  291. return predicate.Contact(sql.FieldNotIn(FieldDeletedAt, vs...))
  292. }
  293. // DeletedAtGT applies the GT predicate on the "deleted_at" field.
  294. func DeletedAtGT(v time.Time) predicate.Contact {
  295. return predicate.Contact(sql.FieldGT(FieldDeletedAt, v))
  296. }
  297. // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
  298. func DeletedAtGTE(v time.Time) predicate.Contact {
  299. return predicate.Contact(sql.FieldGTE(FieldDeletedAt, v))
  300. }
  301. // DeletedAtLT applies the LT predicate on the "deleted_at" field.
  302. func DeletedAtLT(v time.Time) predicate.Contact {
  303. return predicate.Contact(sql.FieldLT(FieldDeletedAt, v))
  304. }
  305. // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
  306. func DeletedAtLTE(v time.Time) predicate.Contact {
  307. return predicate.Contact(sql.FieldLTE(FieldDeletedAt, v))
  308. }
  309. // DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
  310. func DeletedAtIsNil() predicate.Contact {
  311. return predicate.Contact(sql.FieldIsNull(FieldDeletedAt))
  312. }
  313. // DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
  314. func DeletedAtNotNil() predicate.Contact {
  315. return predicate.Contact(sql.FieldNotNull(FieldDeletedAt))
  316. }
  317. // WxWxidEQ applies the EQ predicate on the "wx_wxid" field.
  318. func WxWxidEQ(v string) predicate.Contact {
  319. return predicate.Contact(sql.FieldEQ(FieldWxWxid, v))
  320. }
  321. // WxWxidNEQ applies the NEQ predicate on the "wx_wxid" field.
  322. func WxWxidNEQ(v string) predicate.Contact {
  323. return predicate.Contact(sql.FieldNEQ(FieldWxWxid, v))
  324. }
  325. // WxWxidIn applies the In predicate on the "wx_wxid" field.
  326. func WxWxidIn(vs ...string) predicate.Contact {
  327. return predicate.Contact(sql.FieldIn(FieldWxWxid, vs...))
  328. }
  329. // WxWxidNotIn applies the NotIn predicate on the "wx_wxid" field.
  330. func WxWxidNotIn(vs ...string) predicate.Contact {
  331. return predicate.Contact(sql.FieldNotIn(FieldWxWxid, vs...))
  332. }
  333. // WxWxidGT applies the GT predicate on the "wx_wxid" field.
  334. func WxWxidGT(v string) predicate.Contact {
  335. return predicate.Contact(sql.FieldGT(FieldWxWxid, v))
  336. }
  337. // WxWxidGTE applies the GTE predicate on the "wx_wxid" field.
  338. func WxWxidGTE(v string) predicate.Contact {
  339. return predicate.Contact(sql.FieldGTE(FieldWxWxid, v))
  340. }
  341. // WxWxidLT applies the LT predicate on the "wx_wxid" field.
  342. func WxWxidLT(v string) predicate.Contact {
  343. return predicate.Contact(sql.FieldLT(FieldWxWxid, v))
  344. }
  345. // WxWxidLTE applies the LTE predicate on the "wx_wxid" field.
  346. func WxWxidLTE(v string) predicate.Contact {
  347. return predicate.Contact(sql.FieldLTE(FieldWxWxid, v))
  348. }
  349. // WxWxidContains applies the Contains predicate on the "wx_wxid" field.
  350. func WxWxidContains(v string) predicate.Contact {
  351. return predicate.Contact(sql.FieldContains(FieldWxWxid, v))
  352. }
  353. // WxWxidHasPrefix applies the HasPrefix predicate on the "wx_wxid" field.
  354. func WxWxidHasPrefix(v string) predicate.Contact {
  355. return predicate.Contact(sql.FieldHasPrefix(FieldWxWxid, v))
  356. }
  357. // WxWxidHasSuffix applies the HasSuffix predicate on the "wx_wxid" field.
  358. func WxWxidHasSuffix(v string) predicate.Contact {
  359. return predicate.Contact(sql.FieldHasSuffix(FieldWxWxid, v))
  360. }
  361. // WxWxidEqualFold applies the EqualFold predicate on the "wx_wxid" field.
  362. func WxWxidEqualFold(v string) predicate.Contact {
  363. return predicate.Contact(sql.FieldEqualFold(FieldWxWxid, v))
  364. }
  365. // WxWxidContainsFold applies the ContainsFold predicate on the "wx_wxid" field.
  366. func WxWxidContainsFold(v string) predicate.Contact {
  367. return predicate.Contact(sql.FieldContainsFold(FieldWxWxid, v))
  368. }
  369. // TypeEQ applies the EQ predicate on the "type" field.
  370. func TypeEQ(v int) predicate.Contact {
  371. return predicate.Contact(sql.FieldEQ(FieldType, v))
  372. }
  373. // TypeNEQ applies the NEQ predicate on the "type" field.
  374. func TypeNEQ(v int) predicate.Contact {
  375. return predicate.Contact(sql.FieldNEQ(FieldType, v))
  376. }
  377. // TypeIn applies the In predicate on the "type" field.
  378. func TypeIn(vs ...int) predicate.Contact {
  379. return predicate.Contact(sql.FieldIn(FieldType, vs...))
  380. }
  381. // TypeNotIn applies the NotIn predicate on the "type" field.
  382. func TypeNotIn(vs ...int) predicate.Contact {
  383. return predicate.Contact(sql.FieldNotIn(FieldType, vs...))
  384. }
  385. // TypeGT applies the GT predicate on the "type" field.
  386. func TypeGT(v int) predicate.Contact {
  387. return predicate.Contact(sql.FieldGT(FieldType, v))
  388. }
  389. // TypeGTE applies the GTE predicate on the "type" field.
  390. func TypeGTE(v int) predicate.Contact {
  391. return predicate.Contact(sql.FieldGTE(FieldType, v))
  392. }
  393. // TypeLT applies the LT predicate on the "type" field.
  394. func TypeLT(v int) predicate.Contact {
  395. return predicate.Contact(sql.FieldLT(FieldType, v))
  396. }
  397. // TypeLTE applies the LTE predicate on the "type" field.
  398. func TypeLTE(v int) predicate.Contact {
  399. return predicate.Contact(sql.FieldLTE(FieldType, v))
  400. }
  401. // TypeIsNil applies the IsNil predicate on the "type" field.
  402. func TypeIsNil() predicate.Contact {
  403. return predicate.Contact(sql.FieldIsNull(FieldType))
  404. }
  405. // TypeNotNil applies the NotNil predicate on the "type" field.
  406. func TypeNotNil() predicate.Contact {
  407. return predicate.Contact(sql.FieldNotNull(FieldType))
  408. }
  409. // WxidEQ applies the EQ predicate on the "wxid" field.
  410. func WxidEQ(v string) predicate.Contact {
  411. return predicate.Contact(sql.FieldEQ(FieldWxid, v))
  412. }
  413. // WxidNEQ applies the NEQ predicate on the "wxid" field.
  414. func WxidNEQ(v string) predicate.Contact {
  415. return predicate.Contact(sql.FieldNEQ(FieldWxid, v))
  416. }
  417. // WxidIn applies the In predicate on the "wxid" field.
  418. func WxidIn(vs ...string) predicate.Contact {
  419. return predicate.Contact(sql.FieldIn(FieldWxid, vs...))
  420. }
  421. // WxidNotIn applies the NotIn predicate on the "wxid" field.
  422. func WxidNotIn(vs ...string) predicate.Contact {
  423. return predicate.Contact(sql.FieldNotIn(FieldWxid, vs...))
  424. }
  425. // WxidGT applies the GT predicate on the "wxid" field.
  426. func WxidGT(v string) predicate.Contact {
  427. return predicate.Contact(sql.FieldGT(FieldWxid, v))
  428. }
  429. // WxidGTE applies the GTE predicate on the "wxid" field.
  430. func WxidGTE(v string) predicate.Contact {
  431. return predicate.Contact(sql.FieldGTE(FieldWxid, v))
  432. }
  433. // WxidLT applies the LT predicate on the "wxid" field.
  434. func WxidLT(v string) predicate.Contact {
  435. return predicate.Contact(sql.FieldLT(FieldWxid, v))
  436. }
  437. // WxidLTE applies the LTE predicate on the "wxid" field.
  438. func WxidLTE(v string) predicate.Contact {
  439. return predicate.Contact(sql.FieldLTE(FieldWxid, v))
  440. }
  441. // WxidContains applies the Contains predicate on the "wxid" field.
  442. func WxidContains(v string) predicate.Contact {
  443. return predicate.Contact(sql.FieldContains(FieldWxid, v))
  444. }
  445. // WxidHasPrefix applies the HasPrefix predicate on the "wxid" field.
  446. func WxidHasPrefix(v string) predicate.Contact {
  447. return predicate.Contact(sql.FieldHasPrefix(FieldWxid, v))
  448. }
  449. // WxidHasSuffix applies the HasSuffix predicate on the "wxid" field.
  450. func WxidHasSuffix(v string) predicate.Contact {
  451. return predicate.Contact(sql.FieldHasSuffix(FieldWxid, v))
  452. }
  453. // WxidEqualFold applies the EqualFold predicate on the "wxid" field.
  454. func WxidEqualFold(v string) predicate.Contact {
  455. return predicate.Contact(sql.FieldEqualFold(FieldWxid, v))
  456. }
  457. // WxidContainsFold applies the ContainsFold predicate on the "wxid" field.
  458. func WxidContainsFold(v string) predicate.Contact {
  459. return predicate.Contact(sql.FieldContainsFold(FieldWxid, v))
  460. }
  461. // AccountEQ applies the EQ predicate on the "account" field.
  462. func AccountEQ(v string) predicate.Contact {
  463. return predicate.Contact(sql.FieldEQ(FieldAccount, v))
  464. }
  465. // AccountNEQ applies the NEQ predicate on the "account" field.
  466. func AccountNEQ(v string) predicate.Contact {
  467. return predicate.Contact(sql.FieldNEQ(FieldAccount, v))
  468. }
  469. // AccountIn applies the In predicate on the "account" field.
  470. func AccountIn(vs ...string) predicate.Contact {
  471. return predicate.Contact(sql.FieldIn(FieldAccount, vs...))
  472. }
  473. // AccountNotIn applies the NotIn predicate on the "account" field.
  474. func AccountNotIn(vs ...string) predicate.Contact {
  475. return predicate.Contact(sql.FieldNotIn(FieldAccount, vs...))
  476. }
  477. // AccountGT applies the GT predicate on the "account" field.
  478. func AccountGT(v string) predicate.Contact {
  479. return predicate.Contact(sql.FieldGT(FieldAccount, v))
  480. }
  481. // AccountGTE applies the GTE predicate on the "account" field.
  482. func AccountGTE(v string) predicate.Contact {
  483. return predicate.Contact(sql.FieldGTE(FieldAccount, v))
  484. }
  485. // AccountLT applies the LT predicate on the "account" field.
  486. func AccountLT(v string) predicate.Contact {
  487. return predicate.Contact(sql.FieldLT(FieldAccount, v))
  488. }
  489. // AccountLTE applies the LTE predicate on the "account" field.
  490. func AccountLTE(v string) predicate.Contact {
  491. return predicate.Contact(sql.FieldLTE(FieldAccount, v))
  492. }
  493. // AccountContains applies the Contains predicate on the "account" field.
  494. func AccountContains(v string) predicate.Contact {
  495. return predicate.Contact(sql.FieldContains(FieldAccount, v))
  496. }
  497. // AccountHasPrefix applies the HasPrefix predicate on the "account" field.
  498. func AccountHasPrefix(v string) predicate.Contact {
  499. return predicate.Contact(sql.FieldHasPrefix(FieldAccount, v))
  500. }
  501. // AccountHasSuffix applies the HasSuffix predicate on the "account" field.
  502. func AccountHasSuffix(v string) predicate.Contact {
  503. return predicate.Contact(sql.FieldHasSuffix(FieldAccount, v))
  504. }
  505. // AccountEqualFold applies the EqualFold predicate on the "account" field.
  506. func AccountEqualFold(v string) predicate.Contact {
  507. return predicate.Contact(sql.FieldEqualFold(FieldAccount, v))
  508. }
  509. // AccountContainsFold applies the ContainsFold predicate on the "account" field.
  510. func AccountContainsFold(v string) predicate.Contact {
  511. return predicate.Contact(sql.FieldContainsFold(FieldAccount, v))
  512. }
  513. // NicknameEQ applies the EQ predicate on the "nickname" field.
  514. func NicknameEQ(v string) predicate.Contact {
  515. return predicate.Contact(sql.FieldEQ(FieldNickname, v))
  516. }
  517. // NicknameNEQ applies the NEQ predicate on the "nickname" field.
  518. func NicknameNEQ(v string) predicate.Contact {
  519. return predicate.Contact(sql.FieldNEQ(FieldNickname, v))
  520. }
  521. // NicknameIn applies the In predicate on the "nickname" field.
  522. func NicknameIn(vs ...string) predicate.Contact {
  523. return predicate.Contact(sql.FieldIn(FieldNickname, vs...))
  524. }
  525. // NicknameNotIn applies the NotIn predicate on the "nickname" field.
  526. func NicknameNotIn(vs ...string) predicate.Contact {
  527. return predicate.Contact(sql.FieldNotIn(FieldNickname, vs...))
  528. }
  529. // NicknameGT applies the GT predicate on the "nickname" field.
  530. func NicknameGT(v string) predicate.Contact {
  531. return predicate.Contact(sql.FieldGT(FieldNickname, v))
  532. }
  533. // NicknameGTE applies the GTE predicate on the "nickname" field.
  534. func NicknameGTE(v string) predicate.Contact {
  535. return predicate.Contact(sql.FieldGTE(FieldNickname, v))
  536. }
  537. // NicknameLT applies the LT predicate on the "nickname" field.
  538. func NicknameLT(v string) predicate.Contact {
  539. return predicate.Contact(sql.FieldLT(FieldNickname, v))
  540. }
  541. // NicknameLTE applies the LTE predicate on the "nickname" field.
  542. func NicknameLTE(v string) predicate.Contact {
  543. return predicate.Contact(sql.FieldLTE(FieldNickname, v))
  544. }
  545. // NicknameContains applies the Contains predicate on the "nickname" field.
  546. func NicknameContains(v string) predicate.Contact {
  547. return predicate.Contact(sql.FieldContains(FieldNickname, v))
  548. }
  549. // NicknameHasPrefix applies the HasPrefix predicate on the "nickname" field.
  550. func NicknameHasPrefix(v string) predicate.Contact {
  551. return predicate.Contact(sql.FieldHasPrefix(FieldNickname, v))
  552. }
  553. // NicknameHasSuffix applies the HasSuffix predicate on the "nickname" field.
  554. func NicknameHasSuffix(v string) predicate.Contact {
  555. return predicate.Contact(sql.FieldHasSuffix(FieldNickname, v))
  556. }
  557. // NicknameEqualFold applies the EqualFold predicate on the "nickname" field.
  558. func NicknameEqualFold(v string) predicate.Contact {
  559. return predicate.Contact(sql.FieldEqualFold(FieldNickname, v))
  560. }
  561. // NicknameContainsFold applies the ContainsFold predicate on the "nickname" field.
  562. func NicknameContainsFold(v string) predicate.Contact {
  563. return predicate.Contact(sql.FieldContainsFold(FieldNickname, v))
  564. }
  565. // MarknameEQ applies the EQ predicate on the "markname" field.
  566. func MarknameEQ(v string) predicate.Contact {
  567. return predicate.Contact(sql.FieldEQ(FieldMarkname, v))
  568. }
  569. // MarknameNEQ applies the NEQ predicate on the "markname" field.
  570. func MarknameNEQ(v string) predicate.Contact {
  571. return predicate.Contact(sql.FieldNEQ(FieldMarkname, v))
  572. }
  573. // MarknameIn applies the In predicate on the "markname" field.
  574. func MarknameIn(vs ...string) predicate.Contact {
  575. return predicate.Contact(sql.FieldIn(FieldMarkname, vs...))
  576. }
  577. // MarknameNotIn applies the NotIn predicate on the "markname" field.
  578. func MarknameNotIn(vs ...string) predicate.Contact {
  579. return predicate.Contact(sql.FieldNotIn(FieldMarkname, vs...))
  580. }
  581. // MarknameGT applies the GT predicate on the "markname" field.
  582. func MarknameGT(v string) predicate.Contact {
  583. return predicate.Contact(sql.FieldGT(FieldMarkname, v))
  584. }
  585. // MarknameGTE applies the GTE predicate on the "markname" field.
  586. func MarknameGTE(v string) predicate.Contact {
  587. return predicate.Contact(sql.FieldGTE(FieldMarkname, v))
  588. }
  589. // MarknameLT applies the LT predicate on the "markname" field.
  590. func MarknameLT(v string) predicate.Contact {
  591. return predicate.Contact(sql.FieldLT(FieldMarkname, v))
  592. }
  593. // MarknameLTE applies the LTE predicate on the "markname" field.
  594. func MarknameLTE(v string) predicate.Contact {
  595. return predicate.Contact(sql.FieldLTE(FieldMarkname, v))
  596. }
  597. // MarknameContains applies the Contains predicate on the "markname" field.
  598. func MarknameContains(v string) predicate.Contact {
  599. return predicate.Contact(sql.FieldContains(FieldMarkname, v))
  600. }
  601. // MarknameHasPrefix applies the HasPrefix predicate on the "markname" field.
  602. func MarknameHasPrefix(v string) predicate.Contact {
  603. return predicate.Contact(sql.FieldHasPrefix(FieldMarkname, v))
  604. }
  605. // MarknameHasSuffix applies the HasSuffix predicate on the "markname" field.
  606. func MarknameHasSuffix(v string) predicate.Contact {
  607. return predicate.Contact(sql.FieldHasSuffix(FieldMarkname, v))
  608. }
  609. // MarknameEqualFold applies the EqualFold predicate on the "markname" field.
  610. func MarknameEqualFold(v string) predicate.Contact {
  611. return predicate.Contact(sql.FieldEqualFold(FieldMarkname, v))
  612. }
  613. // MarknameContainsFold applies the ContainsFold predicate on the "markname" field.
  614. func MarknameContainsFold(v string) predicate.Contact {
  615. return predicate.Contact(sql.FieldContainsFold(FieldMarkname, v))
  616. }
  617. // HeadimgEQ applies the EQ predicate on the "headimg" field.
  618. func HeadimgEQ(v string) predicate.Contact {
  619. return predicate.Contact(sql.FieldEQ(FieldHeadimg, v))
  620. }
  621. // HeadimgNEQ applies the NEQ predicate on the "headimg" field.
  622. func HeadimgNEQ(v string) predicate.Contact {
  623. return predicate.Contact(sql.FieldNEQ(FieldHeadimg, v))
  624. }
  625. // HeadimgIn applies the In predicate on the "headimg" field.
  626. func HeadimgIn(vs ...string) predicate.Contact {
  627. return predicate.Contact(sql.FieldIn(FieldHeadimg, vs...))
  628. }
  629. // HeadimgNotIn applies the NotIn predicate on the "headimg" field.
  630. func HeadimgNotIn(vs ...string) predicate.Contact {
  631. return predicate.Contact(sql.FieldNotIn(FieldHeadimg, vs...))
  632. }
  633. // HeadimgGT applies the GT predicate on the "headimg" field.
  634. func HeadimgGT(v string) predicate.Contact {
  635. return predicate.Contact(sql.FieldGT(FieldHeadimg, v))
  636. }
  637. // HeadimgGTE applies the GTE predicate on the "headimg" field.
  638. func HeadimgGTE(v string) predicate.Contact {
  639. return predicate.Contact(sql.FieldGTE(FieldHeadimg, v))
  640. }
  641. // HeadimgLT applies the LT predicate on the "headimg" field.
  642. func HeadimgLT(v string) predicate.Contact {
  643. return predicate.Contact(sql.FieldLT(FieldHeadimg, v))
  644. }
  645. // HeadimgLTE applies the LTE predicate on the "headimg" field.
  646. func HeadimgLTE(v string) predicate.Contact {
  647. return predicate.Contact(sql.FieldLTE(FieldHeadimg, v))
  648. }
  649. // HeadimgContains applies the Contains predicate on the "headimg" field.
  650. func HeadimgContains(v string) predicate.Contact {
  651. return predicate.Contact(sql.FieldContains(FieldHeadimg, v))
  652. }
  653. // HeadimgHasPrefix applies the HasPrefix predicate on the "headimg" field.
  654. func HeadimgHasPrefix(v string) predicate.Contact {
  655. return predicate.Contact(sql.FieldHasPrefix(FieldHeadimg, v))
  656. }
  657. // HeadimgHasSuffix applies the HasSuffix predicate on the "headimg" field.
  658. func HeadimgHasSuffix(v string) predicate.Contact {
  659. return predicate.Contact(sql.FieldHasSuffix(FieldHeadimg, v))
  660. }
  661. // HeadimgEqualFold applies the EqualFold predicate on the "headimg" field.
  662. func HeadimgEqualFold(v string) predicate.Contact {
  663. return predicate.Contact(sql.FieldEqualFold(FieldHeadimg, v))
  664. }
  665. // HeadimgContainsFold applies the ContainsFold predicate on the "headimg" field.
  666. func HeadimgContainsFold(v string) predicate.Contact {
  667. return predicate.Contact(sql.FieldContainsFold(FieldHeadimg, v))
  668. }
  669. // SexEQ applies the EQ predicate on the "sex" field.
  670. func SexEQ(v int) predicate.Contact {
  671. return predicate.Contact(sql.FieldEQ(FieldSex, v))
  672. }
  673. // SexNEQ applies the NEQ predicate on the "sex" field.
  674. func SexNEQ(v int) predicate.Contact {
  675. return predicate.Contact(sql.FieldNEQ(FieldSex, v))
  676. }
  677. // SexIn applies the In predicate on the "sex" field.
  678. func SexIn(vs ...int) predicate.Contact {
  679. return predicate.Contact(sql.FieldIn(FieldSex, vs...))
  680. }
  681. // SexNotIn applies the NotIn predicate on the "sex" field.
  682. func SexNotIn(vs ...int) predicate.Contact {
  683. return predicate.Contact(sql.FieldNotIn(FieldSex, vs...))
  684. }
  685. // SexGT applies the GT predicate on the "sex" field.
  686. func SexGT(v int) predicate.Contact {
  687. return predicate.Contact(sql.FieldGT(FieldSex, v))
  688. }
  689. // SexGTE applies the GTE predicate on the "sex" field.
  690. func SexGTE(v int) predicate.Contact {
  691. return predicate.Contact(sql.FieldGTE(FieldSex, v))
  692. }
  693. // SexLT applies the LT predicate on the "sex" field.
  694. func SexLT(v int) predicate.Contact {
  695. return predicate.Contact(sql.FieldLT(FieldSex, v))
  696. }
  697. // SexLTE applies the LTE predicate on the "sex" field.
  698. func SexLTE(v int) predicate.Contact {
  699. return predicate.Contact(sql.FieldLTE(FieldSex, v))
  700. }
  701. // StarroleEQ applies the EQ predicate on the "starrole" field.
  702. func StarroleEQ(v string) predicate.Contact {
  703. return predicate.Contact(sql.FieldEQ(FieldStarrole, v))
  704. }
  705. // StarroleNEQ applies the NEQ predicate on the "starrole" field.
  706. func StarroleNEQ(v string) predicate.Contact {
  707. return predicate.Contact(sql.FieldNEQ(FieldStarrole, v))
  708. }
  709. // StarroleIn applies the In predicate on the "starrole" field.
  710. func StarroleIn(vs ...string) predicate.Contact {
  711. return predicate.Contact(sql.FieldIn(FieldStarrole, vs...))
  712. }
  713. // StarroleNotIn applies the NotIn predicate on the "starrole" field.
  714. func StarroleNotIn(vs ...string) predicate.Contact {
  715. return predicate.Contact(sql.FieldNotIn(FieldStarrole, vs...))
  716. }
  717. // StarroleGT applies the GT predicate on the "starrole" field.
  718. func StarroleGT(v string) predicate.Contact {
  719. return predicate.Contact(sql.FieldGT(FieldStarrole, v))
  720. }
  721. // StarroleGTE applies the GTE predicate on the "starrole" field.
  722. func StarroleGTE(v string) predicate.Contact {
  723. return predicate.Contact(sql.FieldGTE(FieldStarrole, v))
  724. }
  725. // StarroleLT applies the LT predicate on the "starrole" field.
  726. func StarroleLT(v string) predicate.Contact {
  727. return predicate.Contact(sql.FieldLT(FieldStarrole, v))
  728. }
  729. // StarroleLTE applies the LTE predicate on the "starrole" field.
  730. func StarroleLTE(v string) predicate.Contact {
  731. return predicate.Contact(sql.FieldLTE(FieldStarrole, v))
  732. }
  733. // StarroleContains applies the Contains predicate on the "starrole" field.
  734. func StarroleContains(v string) predicate.Contact {
  735. return predicate.Contact(sql.FieldContains(FieldStarrole, v))
  736. }
  737. // StarroleHasPrefix applies the HasPrefix predicate on the "starrole" field.
  738. func StarroleHasPrefix(v string) predicate.Contact {
  739. return predicate.Contact(sql.FieldHasPrefix(FieldStarrole, v))
  740. }
  741. // StarroleHasSuffix applies the HasSuffix predicate on the "starrole" field.
  742. func StarroleHasSuffix(v string) predicate.Contact {
  743. return predicate.Contact(sql.FieldHasSuffix(FieldStarrole, v))
  744. }
  745. // StarroleEqualFold applies the EqualFold predicate on the "starrole" field.
  746. func StarroleEqualFold(v string) predicate.Contact {
  747. return predicate.Contact(sql.FieldEqualFold(FieldStarrole, v))
  748. }
  749. // StarroleContainsFold applies the ContainsFold predicate on the "starrole" field.
  750. func StarroleContainsFold(v string) predicate.Contact {
  751. return predicate.Contact(sql.FieldContainsFold(FieldStarrole, v))
  752. }
  753. // DontseeitEQ applies the EQ predicate on the "dontseeit" field.
  754. func DontseeitEQ(v int) predicate.Contact {
  755. return predicate.Contact(sql.FieldEQ(FieldDontseeit, v))
  756. }
  757. // DontseeitNEQ applies the NEQ predicate on the "dontseeit" field.
  758. func DontseeitNEQ(v int) predicate.Contact {
  759. return predicate.Contact(sql.FieldNEQ(FieldDontseeit, v))
  760. }
  761. // DontseeitIn applies the In predicate on the "dontseeit" field.
  762. func DontseeitIn(vs ...int) predicate.Contact {
  763. return predicate.Contact(sql.FieldIn(FieldDontseeit, vs...))
  764. }
  765. // DontseeitNotIn applies the NotIn predicate on the "dontseeit" field.
  766. func DontseeitNotIn(vs ...int) predicate.Contact {
  767. return predicate.Contact(sql.FieldNotIn(FieldDontseeit, vs...))
  768. }
  769. // DontseeitGT applies the GT predicate on the "dontseeit" field.
  770. func DontseeitGT(v int) predicate.Contact {
  771. return predicate.Contact(sql.FieldGT(FieldDontseeit, v))
  772. }
  773. // DontseeitGTE applies the GTE predicate on the "dontseeit" field.
  774. func DontseeitGTE(v int) predicate.Contact {
  775. return predicate.Contact(sql.FieldGTE(FieldDontseeit, v))
  776. }
  777. // DontseeitLT applies the LT predicate on the "dontseeit" field.
  778. func DontseeitLT(v int) predicate.Contact {
  779. return predicate.Contact(sql.FieldLT(FieldDontseeit, v))
  780. }
  781. // DontseeitLTE applies the LTE predicate on the "dontseeit" field.
  782. func DontseeitLTE(v int) predicate.Contact {
  783. return predicate.Contact(sql.FieldLTE(FieldDontseeit, v))
  784. }
  785. // DontseemeEQ applies the EQ predicate on the "dontseeme" field.
  786. func DontseemeEQ(v int) predicate.Contact {
  787. return predicate.Contact(sql.FieldEQ(FieldDontseeme, v))
  788. }
  789. // DontseemeNEQ applies the NEQ predicate on the "dontseeme" field.
  790. func DontseemeNEQ(v int) predicate.Contact {
  791. return predicate.Contact(sql.FieldNEQ(FieldDontseeme, v))
  792. }
  793. // DontseemeIn applies the In predicate on the "dontseeme" field.
  794. func DontseemeIn(vs ...int) predicate.Contact {
  795. return predicate.Contact(sql.FieldIn(FieldDontseeme, vs...))
  796. }
  797. // DontseemeNotIn applies the NotIn predicate on the "dontseeme" field.
  798. func DontseemeNotIn(vs ...int) predicate.Contact {
  799. return predicate.Contact(sql.FieldNotIn(FieldDontseeme, vs...))
  800. }
  801. // DontseemeGT applies the GT predicate on the "dontseeme" field.
  802. func DontseemeGT(v int) predicate.Contact {
  803. return predicate.Contact(sql.FieldGT(FieldDontseeme, v))
  804. }
  805. // DontseemeGTE applies the GTE predicate on the "dontseeme" field.
  806. func DontseemeGTE(v int) predicate.Contact {
  807. return predicate.Contact(sql.FieldGTE(FieldDontseeme, v))
  808. }
  809. // DontseemeLT applies the LT predicate on the "dontseeme" field.
  810. func DontseemeLT(v int) predicate.Contact {
  811. return predicate.Contact(sql.FieldLT(FieldDontseeme, v))
  812. }
  813. // DontseemeLTE applies the LTE predicate on the "dontseeme" field.
  814. func DontseemeLTE(v int) predicate.Contact {
  815. return predicate.Contact(sql.FieldLTE(FieldDontseeme, v))
  816. }
  817. // LagEQ applies the EQ predicate on the "lag" field.
  818. func LagEQ(v string) predicate.Contact {
  819. return predicate.Contact(sql.FieldEQ(FieldLag, v))
  820. }
  821. // LagNEQ applies the NEQ predicate on the "lag" field.
  822. func LagNEQ(v string) predicate.Contact {
  823. return predicate.Contact(sql.FieldNEQ(FieldLag, v))
  824. }
  825. // LagIn applies the In predicate on the "lag" field.
  826. func LagIn(vs ...string) predicate.Contact {
  827. return predicate.Contact(sql.FieldIn(FieldLag, vs...))
  828. }
  829. // LagNotIn applies the NotIn predicate on the "lag" field.
  830. func LagNotIn(vs ...string) predicate.Contact {
  831. return predicate.Contact(sql.FieldNotIn(FieldLag, vs...))
  832. }
  833. // LagGT applies the GT predicate on the "lag" field.
  834. func LagGT(v string) predicate.Contact {
  835. return predicate.Contact(sql.FieldGT(FieldLag, v))
  836. }
  837. // LagGTE applies the GTE predicate on the "lag" field.
  838. func LagGTE(v string) predicate.Contact {
  839. return predicate.Contact(sql.FieldGTE(FieldLag, v))
  840. }
  841. // LagLT applies the LT predicate on the "lag" field.
  842. func LagLT(v string) predicate.Contact {
  843. return predicate.Contact(sql.FieldLT(FieldLag, v))
  844. }
  845. // LagLTE applies the LTE predicate on the "lag" field.
  846. func LagLTE(v string) predicate.Contact {
  847. return predicate.Contact(sql.FieldLTE(FieldLag, v))
  848. }
  849. // LagContains applies the Contains predicate on the "lag" field.
  850. func LagContains(v string) predicate.Contact {
  851. return predicate.Contact(sql.FieldContains(FieldLag, v))
  852. }
  853. // LagHasPrefix applies the HasPrefix predicate on the "lag" field.
  854. func LagHasPrefix(v string) predicate.Contact {
  855. return predicate.Contact(sql.FieldHasPrefix(FieldLag, v))
  856. }
  857. // LagHasSuffix applies the HasSuffix predicate on the "lag" field.
  858. func LagHasSuffix(v string) predicate.Contact {
  859. return predicate.Contact(sql.FieldHasSuffix(FieldLag, v))
  860. }
  861. // LagEqualFold applies the EqualFold predicate on the "lag" field.
  862. func LagEqualFold(v string) predicate.Contact {
  863. return predicate.Contact(sql.FieldEqualFold(FieldLag, v))
  864. }
  865. // LagContainsFold applies the ContainsFold predicate on the "lag" field.
  866. func LagContainsFold(v string) predicate.Contact {
  867. return predicate.Contact(sql.FieldContainsFold(FieldLag, v))
  868. }
  869. // GidEQ applies the EQ predicate on the "gid" field.
  870. func GidEQ(v string) predicate.Contact {
  871. return predicate.Contact(sql.FieldEQ(FieldGid, v))
  872. }
  873. // GidNEQ applies the NEQ predicate on the "gid" field.
  874. func GidNEQ(v string) predicate.Contact {
  875. return predicate.Contact(sql.FieldNEQ(FieldGid, v))
  876. }
  877. // GidIn applies the In predicate on the "gid" field.
  878. func GidIn(vs ...string) predicate.Contact {
  879. return predicate.Contact(sql.FieldIn(FieldGid, vs...))
  880. }
  881. // GidNotIn applies the NotIn predicate on the "gid" field.
  882. func GidNotIn(vs ...string) predicate.Contact {
  883. return predicate.Contact(sql.FieldNotIn(FieldGid, vs...))
  884. }
  885. // GidGT applies the GT predicate on the "gid" field.
  886. func GidGT(v string) predicate.Contact {
  887. return predicate.Contact(sql.FieldGT(FieldGid, v))
  888. }
  889. // GidGTE applies the GTE predicate on the "gid" field.
  890. func GidGTE(v string) predicate.Contact {
  891. return predicate.Contact(sql.FieldGTE(FieldGid, v))
  892. }
  893. // GidLT applies the LT predicate on the "gid" field.
  894. func GidLT(v string) predicate.Contact {
  895. return predicate.Contact(sql.FieldLT(FieldGid, v))
  896. }
  897. // GidLTE applies the LTE predicate on the "gid" field.
  898. func GidLTE(v string) predicate.Contact {
  899. return predicate.Contact(sql.FieldLTE(FieldGid, v))
  900. }
  901. // GidContains applies the Contains predicate on the "gid" field.
  902. func GidContains(v string) predicate.Contact {
  903. return predicate.Contact(sql.FieldContains(FieldGid, v))
  904. }
  905. // GidHasPrefix applies the HasPrefix predicate on the "gid" field.
  906. func GidHasPrefix(v string) predicate.Contact {
  907. return predicate.Contact(sql.FieldHasPrefix(FieldGid, v))
  908. }
  909. // GidHasSuffix applies the HasSuffix predicate on the "gid" field.
  910. func GidHasSuffix(v string) predicate.Contact {
  911. return predicate.Contact(sql.FieldHasSuffix(FieldGid, v))
  912. }
  913. // GidEqualFold applies the EqualFold predicate on the "gid" field.
  914. func GidEqualFold(v string) predicate.Contact {
  915. return predicate.Contact(sql.FieldEqualFold(FieldGid, v))
  916. }
  917. // GidContainsFold applies the ContainsFold predicate on the "gid" field.
  918. func GidContainsFold(v string) predicate.Contact {
  919. return predicate.Contact(sql.FieldContainsFold(FieldGid, v))
  920. }
  921. // GnameEQ applies the EQ predicate on the "gname" field.
  922. func GnameEQ(v string) predicate.Contact {
  923. return predicate.Contact(sql.FieldEQ(FieldGname, v))
  924. }
  925. // GnameNEQ applies the NEQ predicate on the "gname" field.
  926. func GnameNEQ(v string) predicate.Contact {
  927. return predicate.Contact(sql.FieldNEQ(FieldGname, v))
  928. }
  929. // GnameIn applies the In predicate on the "gname" field.
  930. func GnameIn(vs ...string) predicate.Contact {
  931. return predicate.Contact(sql.FieldIn(FieldGname, vs...))
  932. }
  933. // GnameNotIn applies the NotIn predicate on the "gname" field.
  934. func GnameNotIn(vs ...string) predicate.Contact {
  935. return predicate.Contact(sql.FieldNotIn(FieldGname, vs...))
  936. }
  937. // GnameGT applies the GT predicate on the "gname" field.
  938. func GnameGT(v string) predicate.Contact {
  939. return predicate.Contact(sql.FieldGT(FieldGname, v))
  940. }
  941. // GnameGTE applies the GTE predicate on the "gname" field.
  942. func GnameGTE(v string) predicate.Contact {
  943. return predicate.Contact(sql.FieldGTE(FieldGname, v))
  944. }
  945. // GnameLT applies the LT predicate on the "gname" field.
  946. func GnameLT(v string) predicate.Contact {
  947. return predicate.Contact(sql.FieldLT(FieldGname, v))
  948. }
  949. // GnameLTE applies the LTE predicate on the "gname" field.
  950. func GnameLTE(v string) predicate.Contact {
  951. return predicate.Contact(sql.FieldLTE(FieldGname, v))
  952. }
  953. // GnameContains applies the Contains predicate on the "gname" field.
  954. func GnameContains(v string) predicate.Contact {
  955. return predicate.Contact(sql.FieldContains(FieldGname, v))
  956. }
  957. // GnameHasPrefix applies the HasPrefix predicate on the "gname" field.
  958. func GnameHasPrefix(v string) predicate.Contact {
  959. return predicate.Contact(sql.FieldHasPrefix(FieldGname, v))
  960. }
  961. // GnameHasSuffix applies the HasSuffix predicate on the "gname" field.
  962. func GnameHasSuffix(v string) predicate.Contact {
  963. return predicate.Contact(sql.FieldHasSuffix(FieldGname, v))
  964. }
  965. // GnameEqualFold applies the EqualFold predicate on the "gname" field.
  966. func GnameEqualFold(v string) predicate.Contact {
  967. return predicate.Contact(sql.FieldEqualFold(FieldGname, v))
  968. }
  969. // GnameContainsFold applies the ContainsFold predicate on the "gname" field.
  970. func GnameContainsFold(v string) predicate.Contact {
  971. return predicate.Contact(sql.FieldContainsFold(FieldGname, v))
  972. }
  973. // V3EQ applies the EQ predicate on the "v3" field.
  974. func V3EQ(v string) predicate.Contact {
  975. return predicate.Contact(sql.FieldEQ(FieldV3, v))
  976. }
  977. // V3NEQ applies the NEQ predicate on the "v3" field.
  978. func V3NEQ(v string) predicate.Contact {
  979. return predicate.Contact(sql.FieldNEQ(FieldV3, v))
  980. }
  981. // V3In applies the In predicate on the "v3" field.
  982. func V3In(vs ...string) predicate.Contact {
  983. return predicate.Contact(sql.FieldIn(FieldV3, vs...))
  984. }
  985. // V3NotIn applies the NotIn predicate on the "v3" field.
  986. func V3NotIn(vs ...string) predicate.Contact {
  987. return predicate.Contact(sql.FieldNotIn(FieldV3, vs...))
  988. }
  989. // V3GT applies the GT predicate on the "v3" field.
  990. func V3GT(v string) predicate.Contact {
  991. return predicate.Contact(sql.FieldGT(FieldV3, v))
  992. }
  993. // V3GTE applies the GTE predicate on the "v3" field.
  994. func V3GTE(v string) predicate.Contact {
  995. return predicate.Contact(sql.FieldGTE(FieldV3, v))
  996. }
  997. // V3LT applies the LT predicate on the "v3" field.
  998. func V3LT(v string) predicate.Contact {
  999. return predicate.Contact(sql.FieldLT(FieldV3, v))
  1000. }
  1001. // V3LTE applies the LTE predicate on the "v3" field.
  1002. func V3LTE(v string) predicate.Contact {
  1003. return predicate.Contact(sql.FieldLTE(FieldV3, v))
  1004. }
  1005. // V3Contains applies the Contains predicate on the "v3" field.
  1006. func V3Contains(v string) predicate.Contact {
  1007. return predicate.Contact(sql.FieldContains(FieldV3, v))
  1008. }
  1009. // V3HasPrefix applies the HasPrefix predicate on the "v3" field.
  1010. func V3HasPrefix(v string) predicate.Contact {
  1011. return predicate.Contact(sql.FieldHasPrefix(FieldV3, v))
  1012. }
  1013. // V3HasSuffix applies the HasSuffix predicate on the "v3" field.
  1014. func V3HasSuffix(v string) predicate.Contact {
  1015. return predicate.Contact(sql.FieldHasSuffix(FieldV3, v))
  1016. }
  1017. // V3EqualFold applies the EqualFold predicate on the "v3" field.
  1018. func V3EqualFold(v string) predicate.Contact {
  1019. return predicate.Contact(sql.FieldEqualFold(FieldV3, v))
  1020. }
  1021. // V3ContainsFold applies the ContainsFold predicate on the "v3" field.
  1022. func V3ContainsFold(v string) predicate.Contact {
  1023. return predicate.Contact(sql.FieldContainsFold(FieldV3, v))
  1024. }
  1025. // OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
  1026. func OrganizationIDEQ(v uint64) predicate.Contact {
  1027. return predicate.Contact(sql.FieldEQ(FieldOrganizationID, v))
  1028. }
  1029. // OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
  1030. func OrganizationIDNEQ(v uint64) predicate.Contact {
  1031. return predicate.Contact(sql.FieldNEQ(FieldOrganizationID, v))
  1032. }
  1033. // OrganizationIDIn applies the In predicate on the "organization_id" field.
  1034. func OrganizationIDIn(vs ...uint64) predicate.Contact {
  1035. return predicate.Contact(sql.FieldIn(FieldOrganizationID, vs...))
  1036. }
  1037. // OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
  1038. func OrganizationIDNotIn(vs ...uint64) predicate.Contact {
  1039. return predicate.Contact(sql.FieldNotIn(FieldOrganizationID, vs...))
  1040. }
  1041. // OrganizationIDGT applies the GT predicate on the "organization_id" field.
  1042. func OrganizationIDGT(v uint64) predicate.Contact {
  1043. return predicate.Contact(sql.FieldGT(FieldOrganizationID, v))
  1044. }
  1045. // OrganizationIDGTE applies the GTE predicate on the "organization_id" field.
  1046. func OrganizationIDGTE(v uint64) predicate.Contact {
  1047. return predicate.Contact(sql.FieldGTE(FieldOrganizationID, v))
  1048. }
  1049. // OrganizationIDLT applies the LT predicate on the "organization_id" field.
  1050. func OrganizationIDLT(v uint64) predicate.Contact {
  1051. return predicate.Contact(sql.FieldLT(FieldOrganizationID, v))
  1052. }
  1053. // OrganizationIDLTE applies the LTE predicate on the "organization_id" field.
  1054. func OrganizationIDLTE(v uint64) predicate.Contact {
  1055. return predicate.Contact(sql.FieldLTE(FieldOrganizationID, v))
  1056. }
  1057. // OrganizationIDIsNil applies the IsNil predicate on the "organization_id" field.
  1058. func OrganizationIDIsNil() predicate.Contact {
  1059. return predicate.Contact(sql.FieldIsNull(FieldOrganizationID))
  1060. }
  1061. // OrganizationIDNotNil applies the NotNil predicate on the "organization_id" field.
  1062. func OrganizationIDNotNil() predicate.Contact {
  1063. return predicate.Contact(sql.FieldNotNull(FieldOrganizationID))
  1064. }
  1065. // CtypeEQ applies the EQ predicate on the "ctype" field.
  1066. func CtypeEQ(v uint64) predicate.Contact {
  1067. return predicate.Contact(sql.FieldEQ(FieldCtype, v))
  1068. }
  1069. // CtypeNEQ applies the NEQ predicate on the "ctype" field.
  1070. func CtypeNEQ(v uint64) predicate.Contact {
  1071. return predicate.Contact(sql.FieldNEQ(FieldCtype, v))
  1072. }
  1073. // CtypeIn applies the In predicate on the "ctype" field.
  1074. func CtypeIn(vs ...uint64) predicate.Contact {
  1075. return predicate.Contact(sql.FieldIn(FieldCtype, vs...))
  1076. }
  1077. // CtypeNotIn applies the NotIn predicate on the "ctype" field.
  1078. func CtypeNotIn(vs ...uint64) predicate.Contact {
  1079. return predicate.Contact(sql.FieldNotIn(FieldCtype, vs...))
  1080. }
  1081. // CtypeGT applies the GT predicate on the "ctype" field.
  1082. func CtypeGT(v uint64) predicate.Contact {
  1083. return predicate.Contact(sql.FieldGT(FieldCtype, v))
  1084. }
  1085. // CtypeGTE applies the GTE predicate on the "ctype" field.
  1086. func CtypeGTE(v uint64) predicate.Contact {
  1087. return predicate.Contact(sql.FieldGTE(FieldCtype, v))
  1088. }
  1089. // CtypeLT applies the LT predicate on the "ctype" field.
  1090. func CtypeLT(v uint64) predicate.Contact {
  1091. return predicate.Contact(sql.FieldLT(FieldCtype, v))
  1092. }
  1093. // CtypeLTE applies the LTE predicate on the "ctype" field.
  1094. func CtypeLTE(v uint64) predicate.Contact {
  1095. return predicate.Contact(sql.FieldLTE(FieldCtype, v))
  1096. }
  1097. // CsexEQ applies the EQ predicate on the "csex" field.
  1098. func CsexEQ(v int) predicate.Contact {
  1099. return predicate.Contact(sql.FieldEQ(FieldCsex, v))
  1100. }
  1101. // CsexNEQ applies the NEQ predicate on the "csex" field.
  1102. func CsexNEQ(v int) predicate.Contact {
  1103. return predicate.Contact(sql.FieldNEQ(FieldCsex, v))
  1104. }
  1105. // CsexIn applies the In predicate on the "csex" field.
  1106. func CsexIn(vs ...int) predicate.Contact {
  1107. return predicate.Contact(sql.FieldIn(FieldCsex, vs...))
  1108. }
  1109. // CsexNotIn applies the NotIn predicate on the "csex" field.
  1110. func CsexNotIn(vs ...int) predicate.Contact {
  1111. return predicate.Contact(sql.FieldNotIn(FieldCsex, vs...))
  1112. }
  1113. // CsexGT applies the GT predicate on the "csex" field.
  1114. func CsexGT(v int) predicate.Contact {
  1115. return predicate.Contact(sql.FieldGT(FieldCsex, v))
  1116. }
  1117. // CsexGTE applies the GTE predicate on the "csex" field.
  1118. func CsexGTE(v int) predicate.Contact {
  1119. return predicate.Contact(sql.FieldGTE(FieldCsex, v))
  1120. }
  1121. // CsexLT applies the LT predicate on the "csex" field.
  1122. func CsexLT(v int) predicate.Contact {
  1123. return predicate.Contact(sql.FieldLT(FieldCsex, v))
  1124. }
  1125. // CsexLTE applies the LTE predicate on the "csex" field.
  1126. func CsexLTE(v int) predicate.Contact {
  1127. return predicate.Contact(sql.FieldLTE(FieldCsex, v))
  1128. }
  1129. // CageEQ applies the EQ predicate on the "cage" field.
  1130. func CageEQ(v int) predicate.Contact {
  1131. return predicate.Contact(sql.FieldEQ(FieldCage, v))
  1132. }
  1133. // CageNEQ applies the NEQ predicate on the "cage" field.
  1134. func CageNEQ(v int) predicate.Contact {
  1135. return predicate.Contact(sql.FieldNEQ(FieldCage, v))
  1136. }
  1137. // CageIn applies the In predicate on the "cage" field.
  1138. func CageIn(vs ...int) predicate.Contact {
  1139. return predicate.Contact(sql.FieldIn(FieldCage, vs...))
  1140. }
  1141. // CageNotIn applies the NotIn predicate on the "cage" field.
  1142. func CageNotIn(vs ...int) predicate.Contact {
  1143. return predicate.Contact(sql.FieldNotIn(FieldCage, vs...))
  1144. }
  1145. // CageGT applies the GT predicate on the "cage" field.
  1146. func CageGT(v int) predicate.Contact {
  1147. return predicate.Contact(sql.FieldGT(FieldCage, v))
  1148. }
  1149. // CageGTE applies the GTE predicate on the "cage" field.
  1150. func CageGTE(v int) predicate.Contact {
  1151. return predicate.Contact(sql.FieldGTE(FieldCage, v))
  1152. }
  1153. // CageLT applies the LT predicate on the "cage" field.
  1154. func CageLT(v int) predicate.Contact {
  1155. return predicate.Contact(sql.FieldLT(FieldCage, v))
  1156. }
  1157. // CageLTE applies the LTE predicate on the "cage" field.
  1158. func CageLTE(v int) predicate.Contact {
  1159. return predicate.Contact(sql.FieldLTE(FieldCage, v))
  1160. }
  1161. // CnameEQ applies the EQ predicate on the "cname" field.
  1162. func CnameEQ(v string) predicate.Contact {
  1163. return predicate.Contact(sql.FieldEQ(FieldCname, v))
  1164. }
  1165. // CnameNEQ applies the NEQ predicate on the "cname" field.
  1166. func CnameNEQ(v string) predicate.Contact {
  1167. return predicate.Contact(sql.FieldNEQ(FieldCname, v))
  1168. }
  1169. // CnameIn applies the In predicate on the "cname" field.
  1170. func CnameIn(vs ...string) predicate.Contact {
  1171. return predicate.Contact(sql.FieldIn(FieldCname, vs...))
  1172. }
  1173. // CnameNotIn applies the NotIn predicate on the "cname" field.
  1174. func CnameNotIn(vs ...string) predicate.Contact {
  1175. return predicate.Contact(sql.FieldNotIn(FieldCname, vs...))
  1176. }
  1177. // CnameGT applies the GT predicate on the "cname" field.
  1178. func CnameGT(v string) predicate.Contact {
  1179. return predicate.Contact(sql.FieldGT(FieldCname, v))
  1180. }
  1181. // CnameGTE applies the GTE predicate on the "cname" field.
  1182. func CnameGTE(v string) predicate.Contact {
  1183. return predicate.Contact(sql.FieldGTE(FieldCname, v))
  1184. }
  1185. // CnameLT applies the LT predicate on the "cname" field.
  1186. func CnameLT(v string) predicate.Contact {
  1187. return predicate.Contact(sql.FieldLT(FieldCname, v))
  1188. }
  1189. // CnameLTE applies the LTE predicate on the "cname" field.
  1190. func CnameLTE(v string) predicate.Contact {
  1191. return predicate.Contact(sql.FieldLTE(FieldCname, v))
  1192. }
  1193. // CnameContains applies the Contains predicate on the "cname" field.
  1194. func CnameContains(v string) predicate.Contact {
  1195. return predicate.Contact(sql.FieldContains(FieldCname, v))
  1196. }
  1197. // CnameHasPrefix applies the HasPrefix predicate on the "cname" field.
  1198. func CnameHasPrefix(v string) predicate.Contact {
  1199. return predicate.Contact(sql.FieldHasPrefix(FieldCname, v))
  1200. }
  1201. // CnameHasSuffix applies the HasSuffix predicate on the "cname" field.
  1202. func CnameHasSuffix(v string) predicate.Contact {
  1203. return predicate.Contact(sql.FieldHasSuffix(FieldCname, v))
  1204. }
  1205. // CnameEqualFold applies the EqualFold predicate on the "cname" field.
  1206. func CnameEqualFold(v string) predicate.Contact {
  1207. return predicate.Contact(sql.FieldEqualFold(FieldCname, v))
  1208. }
  1209. // CnameContainsFold applies the ContainsFold predicate on the "cname" field.
  1210. func CnameContainsFold(v string) predicate.Contact {
  1211. return predicate.Contact(sql.FieldContainsFold(FieldCname, v))
  1212. }
  1213. // CareaEQ applies the EQ predicate on the "carea" field.
  1214. func CareaEQ(v string) predicate.Contact {
  1215. return predicate.Contact(sql.FieldEQ(FieldCarea, v))
  1216. }
  1217. // CareaNEQ applies the NEQ predicate on the "carea" field.
  1218. func CareaNEQ(v string) predicate.Contact {
  1219. return predicate.Contact(sql.FieldNEQ(FieldCarea, v))
  1220. }
  1221. // CareaIn applies the In predicate on the "carea" field.
  1222. func CareaIn(vs ...string) predicate.Contact {
  1223. return predicate.Contact(sql.FieldIn(FieldCarea, vs...))
  1224. }
  1225. // CareaNotIn applies the NotIn predicate on the "carea" field.
  1226. func CareaNotIn(vs ...string) predicate.Contact {
  1227. return predicate.Contact(sql.FieldNotIn(FieldCarea, vs...))
  1228. }
  1229. // CareaGT applies the GT predicate on the "carea" field.
  1230. func CareaGT(v string) predicate.Contact {
  1231. return predicate.Contact(sql.FieldGT(FieldCarea, v))
  1232. }
  1233. // CareaGTE applies the GTE predicate on the "carea" field.
  1234. func CareaGTE(v string) predicate.Contact {
  1235. return predicate.Contact(sql.FieldGTE(FieldCarea, v))
  1236. }
  1237. // CareaLT applies the LT predicate on the "carea" field.
  1238. func CareaLT(v string) predicate.Contact {
  1239. return predicate.Contact(sql.FieldLT(FieldCarea, v))
  1240. }
  1241. // CareaLTE applies the LTE predicate on the "carea" field.
  1242. func CareaLTE(v string) predicate.Contact {
  1243. return predicate.Contact(sql.FieldLTE(FieldCarea, v))
  1244. }
  1245. // CareaContains applies the Contains predicate on the "carea" field.
  1246. func CareaContains(v string) predicate.Contact {
  1247. return predicate.Contact(sql.FieldContains(FieldCarea, v))
  1248. }
  1249. // CareaHasPrefix applies the HasPrefix predicate on the "carea" field.
  1250. func CareaHasPrefix(v string) predicate.Contact {
  1251. return predicate.Contact(sql.FieldHasPrefix(FieldCarea, v))
  1252. }
  1253. // CareaHasSuffix applies the HasSuffix predicate on the "carea" field.
  1254. func CareaHasSuffix(v string) predicate.Contact {
  1255. return predicate.Contact(sql.FieldHasSuffix(FieldCarea, v))
  1256. }
  1257. // CareaEqualFold applies the EqualFold predicate on the "carea" field.
  1258. func CareaEqualFold(v string) predicate.Contact {
  1259. return predicate.Contact(sql.FieldEqualFold(FieldCarea, v))
  1260. }
  1261. // CareaContainsFold applies the ContainsFold predicate on the "carea" field.
  1262. func CareaContainsFold(v string) predicate.Contact {
  1263. return predicate.Contact(sql.FieldContainsFold(FieldCarea, v))
  1264. }
  1265. // CmobileEQ applies the EQ predicate on the "cmobile" field.
  1266. func CmobileEQ(v string) predicate.Contact {
  1267. return predicate.Contact(sql.FieldEQ(FieldCmobile, v))
  1268. }
  1269. // CmobileNEQ applies the NEQ predicate on the "cmobile" field.
  1270. func CmobileNEQ(v string) predicate.Contact {
  1271. return predicate.Contact(sql.FieldNEQ(FieldCmobile, v))
  1272. }
  1273. // CmobileIn applies the In predicate on the "cmobile" field.
  1274. func CmobileIn(vs ...string) predicate.Contact {
  1275. return predicate.Contact(sql.FieldIn(FieldCmobile, vs...))
  1276. }
  1277. // CmobileNotIn applies the NotIn predicate on the "cmobile" field.
  1278. func CmobileNotIn(vs ...string) predicate.Contact {
  1279. return predicate.Contact(sql.FieldNotIn(FieldCmobile, vs...))
  1280. }
  1281. // CmobileGT applies the GT predicate on the "cmobile" field.
  1282. func CmobileGT(v string) predicate.Contact {
  1283. return predicate.Contact(sql.FieldGT(FieldCmobile, v))
  1284. }
  1285. // CmobileGTE applies the GTE predicate on the "cmobile" field.
  1286. func CmobileGTE(v string) predicate.Contact {
  1287. return predicate.Contact(sql.FieldGTE(FieldCmobile, v))
  1288. }
  1289. // CmobileLT applies the LT predicate on the "cmobile" field.
  1290. func CmobileLT(v string) predicate.Contact {
  1291. return predicate.Contact(sql.FieldLT(FieldCmobile, v))
  1292. }
  1293. // CmobileLTE applies the LTE predicate on the "cmobile" field.
  1294. func CmobileLTE(v string) predicate.Contact {
  1295. return predicate.Contact(sql.FieldLTE(FieldCmobile, v))
  1296. }
  1297. // CmobileContains applies the Contains predicate on the "cmobile" field.
  1298. func CmobileContains(v string) predicate.Contact {
  1299. return predicate.Contact(sql.FieldContains(FieldCmobile, v))
  1300. }
  1301. // CmobileHasPrefix applies the HasPrefix predicate on the "cmobile" field.
  1302. func CmobileHasPrefix(v string) predicate.Contact {
  1303. return predicate.Contact(sql.FieldHasPrefix(FieldCmobile, v))
  1304. }
  1305. // CmobileHasSuffix applies the HasSuffix predicate on the "cmobile" field.
  1306. func CmobileHasSuffix(v string) predicate.Contact {
  1307. return predicate.Contact(sql.FieldHasSuffix(FieldCmobile, v))
  1308. }
  1309. // CmobileEqualFold applies the EqualFold predicate on the "cmobile" field.
  1310. func CmobileEqualFold(v string) predicate.Contact {
  1311. return predicate.Contact(sql.FieldEqualFold(FieldCmobile, v))
  1312. }
  1313. // CmobileContainsFold applies the ContainsFold predicate on the "cmobile" field.
  1314. func CmobileContainsFold(v string) predicate.Contact {
  1315. return predicate.Contact(sql.FieldContainsFold(FieldCmobile, v))
  1316. }
  1317. // CbirthdayEQ applies the EQ predicate on the "cbirthday" field.
  1318. func CbirthdayEQ(v string) predicate.Contact {
  1319. return predicate.Contact(sql.FieldEQ(FieldCbirthday, v))
  1320. }
  1321. // CbirthdayNEQ applies the NEQ predicate on the "cbirthday" field.
  1322. func CbirthdayNEQ(v string) predicate.Contact {
  1323. return predicate.Contact(sql.FieldNEQ(FieldCbirthday, v))
  1324. }
  1325. // CbirthdayIn applies the In predicate on the "cbirthday" field.
  1326. func CbirthdayIn(vs ...string) predicate.Contact {
  1327. return predicate.Contact(sql.FieldIn(FieldCbirthday, vs...))
  1328. }
  1329. // CbirthdayNotIn applies the NotIn predicate on the "cbirthday" field.
  1330. func CbirthdayNotIn(vs ...string) predicate.Contact {
  1331. return predicate.Contact(sql.FieldNotIn(FieldCbirthday, vs...))
  1332. }
  1333. // CbirthdayGT applies the GT predicate on the "cbirthday" field.
  1334. func CbirthdayGT(v string) predicate.Contact {
  1335. return predicate.Contact(sql.FieldGT(FieldCbirthday, v))
  1336. }
  1337. // CbirthdayGTE applies the GTE predicate on the "cbirthday" field.
  1338. func CbirthdayGTE(v string) predicate.Contact {
  1339. return predicate.Contact(sql.FieldGTE(FieldCbirthday, v))
  1340. }
  1341. // CbirthdayLT applies the LT predicate on the "cbirthday" field.
  1342. func CbirthdayLT(v string) predicate.Contact {
  1343. return predicate.Contact(sql.FieldLT(FieldCbirthday, v))
  1344. }
  1345. // CbirthdayLTE applies the LTE predicate on the "cbirthday" field.
  1346. func CbirthdayLTE(v string) predicate.Contact {
  1347. return predicate.Contact(sql.FieldLTE(FieldCbirthday, v))
  1348. }
  1349. // CbirthdayContains applies the Contains predicate on the "cbirthday" field.
  1350. func CbirthdayContains(v string) predicate.Contact {
  1351. return predicate.Contact(sql.FieldContains(FieldCbirthday, v))
  1352. }
  1353. // CbirthdayHasPrefix applies the HasPrefix predicate on the "cbirthday" field.
  1354. func CbirthdayHasPrefix(v string) predicate.Contact {
  1355. return predicate.Contact(sql.FieldHasPrefix(FieldCbirthday, v))
  1356. }
  1357. // CbirthdayHasSuffix applies the HasSuffix predicate on the "cbirthday" field.
  1358. func CbirthdayHasSuffix(v string) predicate.Contact {
  1359. return predicate.Contact(sql.FieldHasSuffix(FieldCbirthday, v))
  1360. }
  1361. // CbirthdayEqualFold applies the EqualFold predicate on the "cbirthday" field.
  1362. func CbirthdayEqualFold(v string) predicate.Contact {
  1363. return predicate.Contact(sql.FieldEqualFold(FieldCbirthday, v))
  1364. }
  1365. // CbirthdayContainsFold applies the ContainsFold predicate on the "cbirthday" field.
  1366. func CbirthdayContainsFold(v string) predicate.Contact {
  1367. return predicate.Contact(sql.FieldContainsFold(FieldCbirthday, v))
  1368. }
  1369. // CbirthareaEQ applies the EQ predicate on the "cbirtharea" field.
  1370. func CbirthareaEQ(v string) predicate.Contact {
  1371. return predicate.Contact(sql.FieldEQ(FieldCbirtharea, v))
  1372. }
  1373. // CbirthareaNEQ applies the NEQ predicate on the "cbirtharea" field.
  1374. func CbirthareaNEQ(v string) predicate.Contact {
  1375. return predicate.Contact(sql.FieldNEQ(FieldCbirtharea, v))
  1376. }
  1377. // CbirthareaIn applies the In predicate on the "cbirtharea" field.
  1378. func CbirthareaIn(vs ...string) predicate.Contact {
  1379. return predicate.Contact(sql.FieldIn(FieldCbirtharea, vs...))
  1380. }
  1381. // CbirthareaNotIn applies the NotIn predicate on the "cbirtharea" field.
  1382. func CbirthareaNotIn(vs ...string) predicate.Contact {
  1383. return predicate.Contact(sql.FieldNotIn(FieldCbirtharea, vs...))
  1384. }
  1385. // CbirthareaGT applies the GT predicate on the "cbirtharea" field.
  1386. func CbirthareaGT(v string) predicate.Contact {
  1387. return predicate.Contact(sql.FieldGT(FieldCbirtharea, v))
  1388. }
  1389. // CbirthareaGTE applies the GTE predicate on the "cbirtharea" field.
  1390. func CbirthareaGTE(v string) predicate.Contact {
  1391. return predicate.Contact(sql.FieldGTE(FieldCbirtharea, v))
  1392. }
  1393. // CbirthareaLT applies the LT predicate on the "cbirtharea" field.
  1394. func CbirthareaLT(v string) predicate.Contact {
  1395. return predicate.Contact(sql.FieldLT(FieldCbirtharea, v))
  1396. }
  1397. // CbirthareaLTE applies the LTE predicate on the "cbirtharea" field.
  1398. func CbirthareaLTE(v string) predicate.Contact {
  1399. return predicate.Contact(sql.FieldLTE(FieldCbirtharea, v))
  1400. }
  1401. // CbirthareaContains applies the Contains predicate on the "cbirtharea" field.
  1402. func CbirthareaContains(v string) predicate.Contact {
  1403. return predicate.Contact(sql.FieldContains(FieldCbirtharea, v))
  1404. }
  1405. // CbirthareaHasPrefix applies the HasPrefix predicate on the "cbirtharea" field.
  1406. func CbirthareaHasPrefix(v string) predicate.Contact {
  1407. return predicate.Contact(sql.FieldHasPrefix(FieldCbirtharea, v))
  1408. }
  1409. // CbirthareaHasSuffix applies the HasSuffix predicate on the "cbirtharea" field.
  1410. func CbirthareaHasSuffix(v string) predicate.Contact {
  1411. return predicate.Contact(sql.FieldHasSuffix(FieldCbirtharea, v))
  1412. }
  1413. // CbirthareaEqualFold applies the EqualFold predicate on the "cbirtharea" field.
  1414. func CbirthareaEqualFold(v string) predicate.Contact {
  1415. return predicate.Contact(sql.FieldEqualFold(FieldCbirtharea, v))
  1416. }
  1417. // CbirthareaContainsFold applies the ContainsFold predicate on the "cbirtharea" field.
  1418. func CbirthareaContainsFold(v string) predicate.Contact {
  1419. return predicate.Contact(sql.FieldContainsFold(FieldCbirtharea, v))
  1420. }
  1421. // CidcardNoEQ applies the EQ predicate on the "cidcard_no" field.
  1422. func CidcardNoEQ(v string) predicate.Contact {
  1423. return predicate.Contact(sql.FieldEQ(FieldCidcardNo, v))
  1424. }
  1425. // CidcardNoNEQ applies the NEQ predicate on the "cidcard_no" field.
  1426. func CidcardNoNEQ(v string) predicate.Contact {
  1427. return predicate.Contact(sql.FieldNEQ(FieldCidcardNo, v))
  1428. }
  1429. // CidcardNoIn applies the In predicate on the "cidcard_no" field.
  1430. func CidcardNoIn(vs ...string) predicate.Contact {
  1431. return predicate.Contact(sql.FieldIn(FieldCidcardNo, vs...))
  1432. }
  1433. // CidcardNoNotIn applies the NotIn predicate on the "cidcard_no" field.
  1434. func CidcardNoNotIn(vs ...string) predicate.Contact {
  1435. return predicate.Contact(sql.FieldNotIn(FieldCidcardNo, vs...))
  1436. }
  1437. // CidcardNoGT applies the GT predicate on the "cidcard_no" field.
  1438. func CidcardNoGT(v string) predicate.Contact {
  1439. return predicate.Contact(sql.FieldGT(FieldCidcardNo, v))
  1440. }
  1441. // CidcardNoGTE applies the GTE predicate on the "cidcard_no" field.
  1442. func CidcardNoGTE(v string) predicate.Contact {
  1443. return predicate.Contact(sql.FieldGTE(FieldCidcardNo, v))
  1444. }
  1445. // CidcardNoLT applies the LT predicate on the "cidcard_no" field.
  1446. func CidcardNoLT(v string) predicate.Contact {
  1447. return predicate.Contact(sql.FieldLT(FieldCidcardNo, v))
  1448. }
  1449. // CidcardNoLTE applies the LTE predicate on the "cidcard_no" field.
  1450. func CidcardNoLTE(v string) predicate.Contact {
  1451. return predicate.Contact(sql.FieldLTE(FieldCidcardNo, v))
  1452. }
  1453. // CidcardNoContains applies the Contains predicate on the "cidcard_no" field.
  1454. func CidcardNoContains(v string) predicate.Contact {
  1455. return predicate.Contact(sql.FieldContains(FieldCidcardNo, v))
  1456. }
  1457. // CidcardNoHasPrefix applies the HasPrefix predicate on the "cidcard_no" field.
  1458. func CidcardNoHasPrefix(v string) predicate.Contact {
  1459. return predicate.Contact(sql.FieldHasPrefix(FieldCidcardNo, v))
  1460. }
  1461. // CidcardNoHasSuffix applies the HasSuffix predicate on the "cidcard_no" field.
  1462. func CidcardNoHasSuffix(v string) predicate.Contact {
  1463. return predicate.Contact(sql.FieldHasSuffix(FieldCidcardNo, v))
  1464. }
  1465. // CidcardNoEqualFold applies the EqualFold predicate on the "cidcard_no" field.
  1466. func CidcardNoEqualFold(v string) predicate.Contact {
  1467. return predicate.Contact(sql.FieldEqualFold(FieldCidcardNo, v))
  1468. }
  1469. // CidcardNoContainsFold applies the ContainsFold predicate on the "cidcard_no" field.
  1470. func CidcardNoContainsFold(v string) predicate.Contact {
  1471. return predicate.Contact(sql.FieldContainsFold(FieldCidcardNo, v))
  1472. }
  1473. // CtitleEQ applies the EQ predicate on the "ctitle" field.
  1474. func CtitleEQ(v string) predicate.Contact {
  1475. return predicate.Contact(sql.FieldEQ(FieldCtitle, v))
  1476. }
  1477. // CtitleNEQ applies the NEQ predicate on the "ctitle" field.
  1478. func CtitleNEQ(v string) predicate.Contact {
  1479. return predicate.Contact(sql.FieldNEQ(FieldCtitle, v))
  1480. }
  1481. // CtitleIn applies the In predicate on the "ctitle" field.
  1482. func CtitleIn(vs ...string) predicate.Contact {
  1483. return predicate.Contact(sql.FieldIn(FieldCtitle, vs...))
  1484. }
  1485. // CtitleNotIn applies the NotIn predicate on the "ctitle" field.
  1486. func CtitleNotIn(vs ...string) predicate.Contact {
  1487. return predicate.Contact(sql.FieldNotIn(FieldCtitle, vs...))
  1488. }
  1489. // CtitleGT applies the GT predicate on the "ctitle" field.
  1490. func CtitleGT(v string) predicate.Contact {
  1491. return predicate.Contact(sql.FieldGT(FieldCtitle, v))
  1492. }
  1493. // CtitleGTE applies the GTE predicate on the "ctitle" field.
  1494. func CtitleGTE(v string) predicate.Contact {
  1495. return predicate.Contact(sql.FieldGTE(FieldCtitle, v))
  1496. }
  1497. // CtitleLT applies the LT predicate on the "ctitle" field.
  1498. func CtitleLT(v string) predicate.Contact {
  1499. return predicate.Contact(sql.FieldLT(FieldCtitle, v))
  1500. }
  1501. // CtitleLTE applies the LTE predicate on the "ctitle" field.
  1502. func CtitleLTE(v string) predicate.Contact {
  1503. return predicate.Contact(sql.FieldLTE(FieldCtitle, v))
  1504. }
  1505. // CtitleContains applies the Contains predicate on the "ctitle" field.
  1506. func CtitleContains(v string) predicate.Contact {
  1507. return predicate.Contact(sql.FieldContains(FieldCtitle, v))
  1508. }
  1509. // CtitleHasPrefix applies the HasPrefix predicate on the "ctitle" field.
  1510. func CtitleHasPrefix(v string) predicate.Contact {
  1511. return predicate.Contact(sql.FieldHasPrefix(FieldCtitle, v))
  1512. }
  1513. // CtitleHasSuffix applies the HasSuffix predicate on the "ctitle" field.
  1514. func CtitleHasSuffix(v string) predicate.Contact {
  1515. return predicate.Contact(sql.FieldHasSuffix(FieldCtitle, v))
  1516. }
  1517. // CtitleEqualFold applies the EqualFold predicate on the "ctitle" field.
  1518. func CtitleEqualFold(v string) predicate.Contact {
  1519. return predicate.Contact(sql.FieldEqualFold(FieldCtitle, v))
  1520. }
  1521. // CtitleContainsFold applies the ContainsFold predicate on the "ctitle" field.
  1522. func CtitleContainsFold(v string) predicate.Contact {
  1523. return predicate.Contact(sql.FieldContainsFold(FieldCtitle, v))
  1524. }
  1525. // CcEQ applies the EQ predicate on the "cc" field.
  1526. func CcEQ(v string) predicate.Contact {
  1527. return predicate.Contact(sql.FieldEQ(FieldCc, v))
  1528. }
  1529. // CcNEQ applies the NEQ predicate on the "cc" field.
  1530. func CcNEQ(v string) predicate.Contact {
  1531. return predicate.Contact(sql.FieldNEQ(FieldCc, v))
  1532. }
  1533. // CcIn applies the In predicate on the "cc" field.
  1534. func CcIn(vs ...string) predicate.Contact {
  1535. return predicate.Contact(sql.FieldIn(FieldCc, vs...))
  1536. }
  1537. // CcNotIn applies the NotIn predicate on the "cc" field.
  1538. func CcNotIn(vs ...string) predicate.Contact {
  1539. return predicate.Contact(sql.FieldNotIn(FieldCc, vs...))
  1540. }
  1541. // CcGT applies the GT predicate on the "cc" field.
  1542. func CcGT(v string) predicate.Contact {
  1543. return predicate.Contact(sql.FieldGT(FieldCc, v))
  1544. }
  1545. // CcGTE applies the GTE predicate on the "cc" field.
  1546. func CcGTE(v string) predicate.Contact {
  1547. return predicate.Contact(sql.FieldGTE(FieldCc, v))
  1548. }
  1549. // CcLT applies the LT predicate on the "cc" field.
  1550. func CcLT(v string) predicate.Contact {
  1551. return predicate.Contact(sql.FieldLT(FieldCc, v))
  1552. }
  1553. // CcLTE applies the LTE predicate on the "cc" field.
  1554. func CcLTE(v string) predicate.Contact {
  1555. return predicate.Contact(sql.FieldLTE(FieldCc, v))
  1556. }
  1557. // CcContains applies the Contains predicate on the "cc" field.
  1558. func CcContains(v string) predicate.Contact {
  1559. return predicate.Contact(sql.FieldContains(FieldCc, v))
  1560. }
  1561. // CcHasPrefix applies the HasPrefix predicate on the "cc" field.
  1562. func CcHasPrefix(v string) predicate.Contact {
  1563. return predicate.Contact(sql.FieldHasPrefix(FieldCc, v))
  1564. }
  1565. // CcHasSuffix applies the HasSuffix predicate on the "cc" field.
  1566. func CcHasSuffix(v string) predicate.Contact {
  1567. return predicate.Contact(sql.FieldHasSuffix(FieldCc, v))
  1568. }
  1569. // CcEqualFold applies the EqualFold predicate on the "cc" field.
  1570. func CcEqualFold(v string) predicate.Contact {
  1571. return predicate.Contact(sql.FieldEqualFold(FieldCc, v))
  1572. }
  1573. // CcContainsFold applies the ContainsFold predicate on the "cc" field.
  1574. func CcContainsFold(v string) predicate.Contact {
  1575. return predicate.Contact(sql.FieldContainsFold(FieldCc, v))
  1576. }
  1577. // PhoneEQ applies the EQ predicate on the "phone" field.
  1578. func PhoneEQ(v string) predicate.Contact {
  1579. return predicate.Contact(sql.FieldEQ(FieldPhone, v))
  1580. }
  1581. // PhoneNEQ applies the NEQ predicate on the "phone" field.
  1582. func PhoneNEQ(v string) predicate.Contact {
  1583. return predicate.Contact(sql.FieldNEQ(FieldPhone, v))
  1584. }
  1585. // PhoneIn applies the In predicate on the "phone" field.
  1586. func PhoneIn(vs ...string) predicate.Contact {
  1587. return predicate.Contact(sql.FieldIn(FieldPhone, vs...))
  1588. }
  1589. // PhoneNotIn applies the NotIn predicate on the "phone" field.
  1590. func PhoneNotIn(vs ...string) predicate.Contact {
  1591. return predicate.Contact(sql.FieldNotIn(FieldPhone, vs...))
  1592. }
  1593. // PhoneGT applies the GT predicate on the "phone" field.
  1594. func PhoneGT(v string) predicate.Contact {
  1595. return predicate.Contact(sql.FieldGT(FieldPhone, v))
  1596. }
  1597. // PhoneGTE applies the GTE predicate on the "phone" field.
  1598. func PhoneGTE(v string) predicate.Contact {
  1599. return predicate.Contact(sql.FieldGTE(FieldPhone, v))
  1600. }
  1601. // PhoneLT applies the LT predicate on the "phone" field.
  1602. func PhoneLT(v string) predicate.Contact {
  1603. return predicate.Contact(sql.FieldLT(FieldPhone, v))
  1604. }
  1605. // PhoneLTE applies the LTE predicate on the "phone" field.
  1606. func PhoneLTE(v string) predicate.Contact {
  1607. return predicate.Contact(sql.FieldLTE(FieldPhone, v))
  1608. }
  1609. // PhoneContains applies the Contains predicate on the "phone" field.
  1610. func PhoneContains(v string) predicate.Contact {
  1611. return predicate.Contact(sql.FieldContains(FieldPhone, v))
  1612. }
  1613. // PhoneHasPrefix applies the HasPrefix predicate on the "phone" field.
  1614. func PhoneHasPrefix(v string) predicate.Contact {
  1615. return predicate.Contact(sql.FieldHasPrefix(FieldPhone, v))
  1616. }
  1617. // PhoneHasSuffix applies the HasSuffix predicate on the "phone" field.
  1618. func PhoneHasSuffix(v string) predicate.Contact {
  1619. return predicate.Contact(sql.FieldHasSuffix(FieldPhone, v))
  1620. }
  1621. // PhoneEqualFold applies the EqualFold predicate on the "phone" field.
  1622. func PhoneEqualFold(v string) predicate.Contact {
  1623. return predicate.Contact(sql.FieldEqualFold(FieldPhone, v))
  1624. }
  1625. // PhoneContainsFold applies the ContainsFold predicate on the "phone" field.
  1626. func PhoneContainsFold(v string) predicate.Contact {
  1627. return predicate.Contact(sql.FieldContainsFold(FieldPhone, v))
  1628. }
  1629. // HasContactRelationships applies the HasEdge predicate on the "contact_relationships" edge.
  1630. func HasContactRelationships() predicate.Contact {
  1631. return predicate.Contact(func(s *sql.Selector) {
  1632. step := sqlgraph.NewStep(
  1633. sqlgraph.From(Table, FieldID),
  1634. sqlgraph.Edge(sqlgraph.O2M, false, ContactRelationshipsTable, ContactRelationshipsColumn),
  1635. )
  1636. sqlgraph.HasNeighbors(s, step)
  1637. })
  1638. }
  1639. // HasContactRelationshipsWith applies the HasEdge predicate on the "contact_relationships" edge with a given conditions (other predicates).
  1640. func HasContactRelationshipsWith(preds ...predicate.LabelRelationship) predicate.Contact {
  1641. return predicate.Contact(func(s *sql.Selector) {
  1642. step := newContactRelationshipsStep()
  1643. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  1644. for _, p := range preds {
  1645. p(s)
  1646. }
  1647. })
  1648. })
  1649. }
  1650. // HasContactMessages applies the HasEdge predicate on the "contact_messages" edge.
  1651. func HasContactMessages() predicate.Contact {
  1652. return predicate.Contact(func(s *sql.Selector) {
  1653. step := sqlgraph.NewStep(
  1654. sqlgraph.From(Table, FieldID),
  1655. sqlgraph.Edge(sqlgraph.O2M, false, ContactMessagesTable, ContactMessagesColumn),
  1656. )
  1657. sqlgraph.HasNeighbors(s, step)
  1658. })
  1659. }
  1660. // HasContactMessagesWith applies the HasEdge predicate on the "contact_messages" edge with a given conditions (other predicates).
  1661. func HasContactMessagesWith(preds ...predicate.MessageRecords) predicate.Contact {
  1662. return predicate.Contact(func(s *sql.Selector) {
  1663. step := newContactMessagesStep()
  1664. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  1665. for _, p := range preds {
  1666. p(s)
  1667. }
  1668. })
  1669. })
  1670. }
  1671. // And groups predicates with the AND operator between them.
  1672. func And(predicates ...predicate.Contact) predicate.Contact {
  1673. return predicate.Contact(sql.AndPredicates(predicates...))
  1674. }
  1675. // Or groups predicates with the OR operator between them.
  1676. func Or(predicates ...predicate.Contact) predicate.Contact {
  1677. return predicate.Contact(sql.OrPredicates(predicates...))
  1678. }
  1679. // Not applies the not operator on the given predicate.
  1680. func Not(p predicate.Contact) predicate.Contact {
  1681. return predicate.Contact(sql.NotPredicates(p))
  1682. }