where.go 46 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342
  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. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  126. func CreatedAtEQ(v time.Time) predicate.Contact {
  127. return predicate.Contact(sql.FieldEQ(FieldCreatedAt, v))
  128. }
  129. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  130. func CreatedAtNEQ(v time.Time) predicate.Contact {
  131. return predicate.Contact(sql.FieldNEQ(FieldCreatedAt, v))
  132. }
  133. // CreatedAtIn applies the In predicate on the "created_at" field.
  134. func CreatedAtIn(vs ...time.Time) predicate.Contact {
  135. return predicate.Contact(sql.FieldIn(FieldCreatedAt, vs...))
  136. }
  137. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  138. func CreatedAtNotIn(vs ...time.Time) predicate.Contact {
  139. return predicate.Contact(sql.FieldNotIn(FieldCreatedAt, vs...))
  140. }
  141. // CreatedAtGT applies the GT predicate on the "created_at" field.
  142. func CreatedAtGT(v time.Time) predicate.Contact {
  143. return predicate.Contact(sql.FieldGT(FieldCreatedAt, v))
  144. }
  145. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  146. func CreatedAtGTE(v time.Time) predicate.Contact {
  147. return predicate.Contact(sql.FieldGTE(FieldCreatedAt, v))
  148. }
  149. // CreatedAtLT applies the LT predicate on the "created_at" field.
  150. func CreatedAtLT(v time.Time) predicate.Contact {
  151. return predicate.Contact(sql.FieldLT(FieldCreatedAt, v))
  152. }
  153. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  154. func CreatedAtLTE(v time.Time) predicate.Contact {
  155. return predicate.Contact(sql.FieldLTE(FieldCreatedAt, v))
  156. }
  157. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  158. func UpdatedAtEQ(v time.Time) predicate.Contact {
  159. return predicate.Contact(sql.FieldEQ(FieldUpdatedAt, v))
  160. }
  161. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  162. func UpdatedAtNEQ(v time.Time) predicate.Contact {
  163. return predicate.Contact(sql.FieldNEQ(FieldUpdatedAt, v))
  164. }
  165. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  166. func UpdatedAtIn(vs ...time.Time) predicate.Contact {
  167. return predicate.Contact(sql.FieldIn(FieldUpdatedAt, vs...))
  168. }
  169. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  170. func UpdatedAtNotIn(vs ...time.Time) predicate.Contact {
  171. return predicate.Contact(sql.FieldNotIn(FieldUpdatedAt, vs...))
  172. }
  173. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  174. func UpdatedAtGT(v time.Time) predicate.Contact {
  175. return predicate.Contact(sql.FieldGT(FieldUpdatedAt, v))
  176. }
  177. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  178. func UpdatedAtGTE(v time.Time) predicate.Contact {
  179. return predicate.Contact(sql.FieldGTE(FieldUpdatedAt, v))
  180. }
  181. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  182. func UpdatedAtLT(v time.Time) predicate.Contact {
  183. return predicate.Contact(sql.FieldLT(FieldUpdatedAt, v))
  184. }
  185. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  186. func UpdatedAtLTE(v time.Time) predicate.Contact {
  187. return predicate.Contact(sql.FieldLTE(FieldUpdatedAt, v))
  188. }
  189. // StatusEQ applies the EQ predicate on the "status" field.
  190. func StatusEQ(v uint8) predicate.Contact {
  191. return predicate.Contact(sql.FieldEQ(FieldStatus, v))
  192. }
  193. // StatusNEQ applies the NEQ predicate on the "status" field.
  194. func StatusNEQ(v uint8) predicate.Contact {
  195. return predicate.Contact(sql.FieldNEQ(FieldStatus, v))
  196. }
  197. // StatusIn applies the In predicate on the "status" field.
  198. func StatusIn(vs ...uint8) predicate.Contact {
  199. return predicate.Contact(sql.FieldIn(FieldStatus, vs...))
  200. }
  201. // StatusNotIn applies the NotIn predicate on the "status" field.
  202. func StatusNotIn(vs ...uint8) predicate.Contact {
  203. return predicate.Contact(sql.FieldNotIn(FieldStatus, vs...))
  204. }
  205. // StatusGT applies the GT predicate on the "status" field.
  206. func StatusGT(v uint8) predicate.Contact {
  207. return predicate.Contact(sql.FieldGT(FieldStatus, v))
  208. }
  209. // StatusGTE applies the GTE predicate on the "status" field.
  210. func StatusGTE(v uint8) predicate.Contact {
  211. return predicate.Contact(sql.FieldGTE(FieldStatus, v))
  212. }
  213. // StatusLT applies the LT predicate on the "status" field.
  214. func StatusLT(v uint8) predicate.Contact {
  215. return predicate.Contact(sql.FieldLT(FieldStatus, v))
  216. }
  217. // StatusLTE applies the LTE predicate on the "status" field.
  218. func StatusLTE(v uint8) predicate.Contact {
  219. return predicate.Contact(sql.FieldLTE(FieldStatus, v))
  220. }
  221. // StatusIsNil applies the IsNil predicate on the "status" field.
  222. func StatusIsNil() predicate.Contact {
  223. return predicate.Contact(sql.FieldIsNull(FieldStatus))
  224. }
  225. // StatusNotNil applies the NotNil predicate on the "status" field.
  226. func StatusNotNil() predicate.Contact {
  227. return predicate.Contact(sql.FieldNotNull(FieldStatus))
  228. }
  229. // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
  230. func DeletedAtEQ(v time.Time) predicate.Contact {
  231. return predicate.Contact(sql.FieldEQ(FieldDeletedAt, v))
  232. }
  233. // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
  234. func DeletedAtNEQ(v time.Time) predicate.Contact {
  235. return predicate.Contact(sql.FieldNEQ(FieldDeletedAt, v))
  236. }
  237. // DeletedAtIn applies the In predicate on the "deleted_at" field.
  238. func DeletedAtIn(vs ...time.Time) predicate.Contact {
  239. return predicate.Contact(sql.FieldIn(FieldDeletedAt, vs...))
  240. }
  241. // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
  242. func DeletedAtNotIn(vs ...time.Time) predicate.Contact {
  243. return predicate.Contact(sql.FieldNotIn(FieldDeletedAt, vs...))
  244. }
  245. // DeletedAtGT applies the GT predicate on the "deleted_at" field.
  246. func DeletedAtGT(v time.Time) predicate.Contact {
  247. return predicate.Contact(sql.FieldGT(FieldDeletedAt, v))
  248. }
  249. // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
  250. func DeletedAtGTE(v time.Time) predicate.Contact {
  251. return predicate.Contact(sql.FieldGTE(FieldDeletedAt, v))
  252. }
  253. // DeletedAtLT applies the LT predicate on the "deleted_at" field.
  254. func DeletedAtLT(v time.Time) predicate.Contact {
  255. return predicate.Contact(sql.FieldLT(FieldDeletedAt, v))
  256. }
  257. // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
  258. func DeletedAtLTE(v time.Time) predicate.Contact {
  259. return predicate.Contact(sql.FieldLTE(FieldDeletedAt, v))
  260. }
  261. // DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
  262. func DeletedAtIsNil() predicate.Contact {
  263. return predicate.Contact(sql.FieldIsNull(FieldDeletedAt))
  264. }
  265. // DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
  266. func DeletedAtNotNil() predicate.Contact {
  267. return predicate.Contact(sql.FieldNotNull(FieldDeletedAt))
  268. }
  269. // WxWxidEQ applies the EQ predicate on the "wx_wxid" field.
  270. func WxWxidEQ(v string) predicate.Contact {
  271. return predicate.Contact(sql.FieldEQ(FieldWxWxid, v))
  272. }
  273. // WxWxidNEQ applies the NEQ predicate on the "wx_wxid" field.
  274. func WxWxidNEQ(v string) predicate.Contact {
  275. return predicate.Contact(sql.FieldNEQ(FieldWxWxid, v))
  276. }
  277. // WxWxidIn applies the In predicate on the "wx_wxid" field.
  278. func WxWxidIn(vs ...string) predicate.Contact {
  279. return predicate.Contact(sql.FieldIn(FieldWxWxid, vs...))
  280. }
  281. // WxWxidNotIn applies the NotIn predicate on the "wx_wxid" field.
  282. func WxWxidNotIn(vs ...string) predicate.Contact {
  283. return predicate.Contact(sql.FieldNotIn(FieldWxWxid, vs...))
  284. }
  285. // WxWxidGT applies the GT predicate on the "wx_wxid" field.
  286. func WxWxidGT(v string) predicate.Contact {
  287. return predicate.Contact(sql.FieldGT(FieldWxWxid, v))
  288. }
  289. // WxWxidGTE applies the GTE predicate on the "wx_wxid" field.
  290. func WxWxidGTE(v string) predicate.Contact {
  291. return predicate.Contact(sql.FieldGTE(FieldWxWxid, v))
  292. }
  293. // WxWxidLT applies the LT predicate on the "wx_wxid" field.
  294. func WxWxidLT(v string) predicate.Contact {
  295. return predicate.Contact(sql.FieldLT(FieldWxWxid, v))
  296. }
  297. // WxWxidLTE applies the LTE predicate on the "wx_wxid" field.
  298. func WxWxidLTE(v string) predicate.Contact {
  299. return predicate.Contact(sql.FieldLTE(FieldWxWxid, v))
  300. }
  301. // WxWxidContains applies the Contains predicate on the "wx_wxid" field.
  302. func WxWxidContains(v string) predicate.Contact {
  303. return predicate.Contact(sql.FieldContains(FieldWxWxid, v))
  304. }
  305. // WxWxidHasPrefix applies the HasPrefix predicate on the "wx_wxid" field.
  306. func WxWxidHasPrefix(v string) predicate.Contact {
  307. return predicate.Contact(sql.FieldHasPrefix(FieldWxWxid, v))
  308. }
  309. // WxWxidHasSuffix applies the HasSuffix predicate on the "wx_wxid" field.
  310. func WxWxidHasSuffix(v string) predicate.Contact {
  311. return predicate.Contact(sql.FieldHasSuffix(FieldWxWxid, v))
  312. }
  313. // WxWxidIsNil applies the IsNil predicate on the "wx_wxid" field.
  314. func WxWxidIsNil() predicate.Contact {
  315. return predicate.Contact(sql.FieldIsNull(FieldWxWxid))
  316. }
  317. // WxWxidNotNil applies the NotNil predicate on the "wx_wxid" field.
  318. func WxWxidNotNil() predicate.Contact {
  319. return predicate.Contact(sql.FieldNotNull(FieldWxWxid))
  320. }
  321. // WxWxidEqualFold applies the EqualFold predicate on the "wx_wxid" field.
  322. func WxWxidEqualFold(v string) predicate.Contact {
  323. return predicate.Contact(sql.FieldEqualFold(FieldWxWxid, v))
  324. }
  325. // WxWxidContainsFold applies the ContainsFold predicate on the "wx_wxid" field.
  326. func WxWxidContainsFold(v string) predicate.Contact {
  327. return predicate.Contact(sql.FieldContainsFold(FieldWxWxid, v))
  328. }
  329. // TypeEQ applies the EQ predicate on the "type" field.
  330. func TypeEQ(v int) predicate.Contact {
  331. return predicate.Contact(sql.FieldEQ(FieldType, v))
  332. }
  333. // TypeNEQ applies the NEQ predicate on the "type" field.
  334. func TypeNEQ(v int) predicate.Contact {
  335. return predicate.Contact(sql.FieldNEQ(FieldType, v))
  336. }
  337. // TypeIn applies the In predicate on the "type" field.
  338. func TypeIn(vs ...int) predicate.Contact {
  339. return predicate.Contact(sql.FieldIn(FieldType, vs...))
  340. }
  341. // TypeNotIn applies the NotIn predicate on the "type" field.
  342. func TypeNotIn(vs ...int) predicate.Contact {
  343. return predicate.Contact(sql.FieldNotIn(FieldType, vs...))
  344. }
  345. // TypeGT applies the GT predicate on the "type" field.
  346. func TypeGT(v int) predicate.Contact {
  347. return predicate.Contact(sql.FieldGT(FieldType, v))
  348. }
  349. // TypeGTE applies the GTE predicate on the "type" field.
  350. func TypeGTE(v int) predicate.Contact {
  351. return predicate.Contact(sql.FieldGTE(FieldType, v))
  352. }
  353. // TypeLT applies the LT predicate on the "type" field.
  354. func TypeLT(v int) predicate.Contact {
  355. return predicate.Contact(sql.FieldLT(FieldType, v))
  356. }
  357. // TypeLTE applies the LTE predicate on the "type" field.
  358. func TypeLTE(v int) predicate.Contact {
  359. return predicate.Contact(sql.FieldLTE(FieldType, v))
  360. }
  361. // TypeIsNil applies the IsNil predicate on the "type" field.
  362. func TypeIsNil() predicate.Contact {
  363. return predicate.Contact(sql.FieldIsNull(FieldType))
  364. }
  365. // TypeNotNil applies the NotNil predicate on the "type" field.
  366. func TypeNotNil() predicate.Contact {
  367. return predicate.Contact(sql.FieldNotNull(FieldType))
  368. }
  369. // WxidEQ applies the EQ predicate on the "wxid" field.
  370. func WxidEQ(v string) predicate.Contact {
  371. return predicate.Contact(sql.FieldEQ(FieldWxid, v))
  372. }
  373. // WxidNEQ applies the NEQ predicate on the "wxid" field.
  374. func WxidNEQ(v string) predicate.Contact {
  375. return predicate.Contact(sql.FieldNEQ(FieldWxid, v))
  376. }
  377. // WxidIn applies the In predicate on the "wxid" field.
  378. func WxidIn(vs ...string) predicate.Contact {
  379. return predicate.Contact(sql.FieldIn(FieldWxid, vs...))
  380. }
  381. // WxidNotIn applies the NotIn predicate on the "wxid" field.
  382. func WxidNotIn(vs ...string) predicate.Contact {
  383. return predicate.Contact(sql.FieldNotIn(FieldWxid, vs...))
  384. }
  385. // WxidGT applies the GT predicate on the "wxid" field.
  386. func WxidGT(v string) predicate.Contact {
  387. return predicate.Contact(sql.FieldGT(FieldWxid, v))
  388. }
  389. // WxidGTE applies the GTE predicate on the "wxid" field.
  390. func WxidGTE(v string) predicate.Contact {
  391. return predicate.Contact(sql.FieldGTE(FieldWxid, v))
  392. }
  393. // WxidLT applies the LT predicate on the "wxid" field.
  394. func WxidLT(v string) predicate.Contact {
  395. return predicate.Contact(sql.FieldLT(FieldWxid, v))
  396. }
  397. // WxidLTE applies the LTE predicate on the "wxid" field.
  398. func WxidLTE(v string) predicate.Contact {
  399. return predicate.Contact(sql.FieldLTE(FieldWxid, v))
  400. }
  401. // WxidContains applies the Contains predicate on the "wxid" field.
  402. func WxidContains(v string) predicate.Contact {
  403. return predicate.Contact(sql.FieldContains(FieldWxid, v))
  404. }
  405. // WxidHasPrefix applies the HasPrefix predicate on the "wxid" field.
  406. func WxidHasPrefix(v string) predicate.Contact {
  407. return predicate.Contact(sql.FieldHasPrefix(FieldWxid, v))
  408. }
  409. // WxidHasSuffix applies the HasSuffix predicate on the "wxid" field.
  410. func WxidHasSuffix(v string) predicate.Contact {
  411. return predicate.Contact(sql.FieldHasSuffix(FieldWxid, v))
  412. }
  413. // WxidEqualFold applies the EqualFold predicate on the "wxid" field.
  414. func WxidEqualFold(v string) predicate.Contact {
  415. return predicate.Contact(sql.FieldEqualFold(FieldWxid, v))
  416. }
  417. // WxidContainsFold applies the ContainsFold predicate on the "wxid" field.
  418. func WxidContainsFold(v string) predicate.Contact {
  419. return predicate.Contact(sql.FieldContainsFold(FieldWxid, v))
  420. }
  421. // AccountEQ applies the EQ predicate on the "account" field.
  422. func AccountEQ(v string) predicate.Contact {
  423. return predicate.Contact(sql.FieldEQ(FieldAccount, v))
  424. }
  425. // AccountNEQ applies the NEQ predicate on the "account" field.
  426. func AccountNEQ(v string) predicate.Contact {
  427. return predicate.Contact(sql.FieldNEQ(FieldAccount, v))
  428. }
  429. // AccountIn applies the In predicate on the "account" field.
  430. func AccountIn(vs ...string) predicate.Contact {
  431. return predicate.Contact(sql.FieldIn(FieldAccount, vs...))
  432. }
  433. // AccountNotIn applies the NotIn predicate on the "account" field.
  434. func AccountNotIn(vs ...string) predicate.Contact {
  435. return predicate.Contact(sql.FieldNotIn(FieldAccount, vs...))
  436. }
  437. // AccountGT applies the GT predicate on the "account" field.
  438. func AccountGT(v string) predicate.Contact {
  439. return predicate.Contact(sql.FieldGT(FieldAccount, v))
  440. }
  441. // AccountGTE applies the GTE predicate on the "account" field.
  442. func AccountGTE(v string) predicate.Contact {
  443. return predicate.Contact(sql.FieldGTE(FieldAccount, v))
  444. }
  445. // AccountLT applies the LT predicate on the "account" field.
  446. func AccountLT(v string) predicate.Contact {
  447. return predicate.Contact(sql.FieldLT(FieldAccount, v))
  448. }
  449. // AccountLTE applies the LTE predicate on the "account" field.
  450. func AccountLTE(v string) predicate.Contact {
  451. return predicate.Contact(sql.FieldLTE(FieldAccount, v))
  452. }
  453. // AccountContains applies the Contains predicate on the "account" field.
  454. func AccountContains(v string) predicate.Contact {
  455. return predicate.Contact(sql.FieldContains(FieldAccount, v))
  456. }
  457. // AccountHasPrefix applies the HasPrefix predicate on the "account" field.
  458. func AccountHasPrefix(v string) predicate.Contact {
  459. return predicate.Contact(sql.FieldHasPrefix(FieldAccount, v))
  460. }
  461. // AccountHasSuffix applies the HasSuffix predicate on the "account" field.
  462. func AccountHasSuffix(v string) predicate.Contact {
  463. return predicate.Contact(sql.FieldHasSuffix(FieldAccount, v))
  464. }
  465. // AccountEqualFold applies the EqualFold predicate on the "account" field.
  466. func AccountEqualFold(v string) predicate.Contact {
  467. return predicate.Contact(sql.FieldEqualFold(FieldAccount, v))
  468. }
  469. // AccountContainsFold applies the ContainsFold predicate on the "account" field.
  470. func AccountContainsFold(v string) predicate.Contact {
  471. return predicate.Contact(sql.FieldContainsFold(FieldAccount, v))
  472. }
  473. // NicknameEQ applies the EQ predicate on the "nickname" field.
  474. func NicknameEQ(v string) predicate.Contact {
  475. return predicate.Contact(sql.FieldEQ(FieldNickname, v))
  476. }
  477. // NicknameNEQ applies the NEQ predicate on the "nickname" field.
  478. func NicknameNEQ(v string) predicate.Contact {
  479. return predicate.Contact(sql.FieldNEQ(FieldNickname, v))
  480. }
  481. // NicknameIn applies the In predicate on the "nickname" field.
  482. func NicknameIn(vs ...string) predicate.Contact {
  483. return predicate.Contact(sql.FieldIn(FieldNickname, vs...))
  484. }
  485. // NicknameNotIn applies the NotIn predicate on the "nickname" field.
  486. func NicknameNotIn(vs ...string) predicate.Contact {
  487. return predicate.Contact(sql.FieldNotIn(FieldNickname, vs...))
  488. }
  489. // NicknameGT applies the GT predicate on the "nickname" field.
  490. func NicknameGT(v string) predicate.Contact {
  491. return predicate.Contact(sql.FieldGT(FieldNickname, v))
  492. }
  493. // NicknameGTE applies the GTE predicate on the "nickname" field.
  494. func NicknameGTE(v string) predicate.Contact {
  495. return predicate.Contact(sql.FieldGTE(FieldNickname, v))
  496. }
  497. // NicknameLT applies the LT predicate on the "nickname" field.
  498. func NicknameLT(v string) predicate.Contact {
  499. return predicate.Contact(sql.FieldLT(FieldNickname, v))
  500. }
  501. // NicknameLTE applies the LTE predicate on the "nickname" field.
  502. func NicknameLTE(v string) predicate.Contact {
  503. return predicate.Contact(sql.FieldLTE(FieldNickname, v))
  504. }
  505. // NicknameContains applies the Contains predicate on the "nickname" field.
  506. func NicknameContains(v string) predicate.Contact {
  507. return predicate.Contact(sql.FieldContains(FieldNickname, v))
  508. }
  509. // NicknameHasPrefix applies the HasPrefix predicate on the "nickname" field.
  510. func NicknameHasPrefix(v string) predicate.Contact {
  511. return predicate.Contact(sql.FieldHasPrefix(FieldNickname, v))
  512. }
  513. // NicknameHasSuffix applies the HasSuffix predicate on the "nickname" field.
  514. func NicknameHasSuffix(v string) predicate.Contact {
  515. return predicate.Contact(sql.FieldHasSuffix(FieldNickname, v))
  516. }
  517. // NicknameEqualFold applies the EqualFold predicate on the "nickname" field.
  518. func NicknameEqualFold(v string) predicate.Contact {
  519. return predicate.Contact(sql.FieldEqualFold(FieldNickname, v))
  520. }
  521. // NicknameContainsFold applies the ContainsFold predicate on the "nickname" field.
  522. func NicknameContainsFold(v string) predicate.Contact {
  523. return predicate.Contact(sql.FieldContainsFold(FieldNickname, v))
  524. }
  525. // MarknameEQ applies the EQ predicate on the "markname" field.
  526. func MarknameEQ(v string) predicate.Contact {
  527. return predicate.Contact(sql.FieldEQ(FieldMarkname, v))
  528. }
  529. // MarknameNEQ applies the NEQ predicate on the "markname" field.
  530. func MarknameNEQ(v string) predicate.Contact {
  531. return predicate.Contact(sql.FieldNEQ(FieldMarkname, v))
  532. }
  533. // MarknameIn applies the In predicate on the "markname" field.
  534. func MarknameIn(vs ...string) predicate.Contact {
  535. return predicate.Contact(sql.FieldIn(FieldMarkname, vs...))
  536. }
  537. // MarknameNotIn applies the NotIn predicate on the "markname" field.
  538. func MarknameNotIn(vs ...string) predicate.Contact {
  539. return predicate.Contact(sql.FieldNotIn(FieldMarkname, vs...))
  540. }
  541. // MarknameGT applies the GT predicate on the "markname" field.
  542. func MarknameGT(v string) predicate.Contact {
  543. return predicate.Contact(sql.FieldGT(FieldMarkname, v))
  544. }
  545. // MarknameGTE applies the GTE predicate on the "markname" field.
  546. func MarknameGTE(v string) predicate.Contact {
  547. return predicate.Contact(sql.FieldGTE(FieldMarkname, v))
  548. }
  549. // MarknameLT applies the LT predicate on the "markname" field.
  550. func MarknameLT(v string) predicate.Contact {
  551. return predicate.Contact(sql.FieldLT(FieldMarkname, v))
  552. }
  553. // MarknameLTE applies the LTE predicate on the "markname" field.
  554. func MarknameLTE(v string) predicate.Contact {
  555. return predicate.Contact(sql.FieldLTE(FieldMarkname, v))
  556. }
  557. // MarknameContains applies the Contains predicate on the "markname" field.
  558. func MarknameContains(v string) predicate.Contact {
  559. return predicate.Contact(sql.FieldContains(FieldMarkname, v))
  560. }
  561. // MarknameHasPrefix applies the HasPrefix predicate on the "markname" field.
  562. func MarknameHasPrefix(v string) predicate.Contact {
  563. return predicate.Contact(sql.FieldHasPrefix(FieldMarkname, v))
  564. }
  565. // MarknameHasSuffix applies the HasSuffix predicate on the "markname" field.
  566. func MarknameHasSuffix(v string) predicate.Contact {
  567. return predicate.Contact(sql.FieldHasSuffix(FieldMarkname, v))
  568. }
  569. // MarknameEqualFold applies the EqualFold predicate on the "markname" field.
  570. func MarknameEqualFold(v string) predicate.Contact {
  571. return predicate.Contact(sql.FieldEqualFold(FieldMarkname, v))
  572. }
  573. // MarknameContainsFold applies the ContainsFold predicate on the "markname" field.
  574. func MarknameContainsFold(v string) predicate.Contact {
  575. return predicate.Contact(sql.FieldContainsFold(FieldMarkname, v))
  576. }
  577. // HeadimgEQ applies the EQ predicate on the "headimg" field.
  578. func HeadimgEQ(v string) predicate.Contact {
  579. return predicate.Contact(sql.FieldEQ(FieldHeadimg, v))
  580. }
  581. // HeadimgNEQ applies the NEQ predicate on the "headimg" field.
  582. func HeadimgNEQ(v string) predicate.Contact {
  583. return predicate.Contact(sql.FieldNEQ(FieldHeadimg, v))
  584. }
  585. // HeadimgIn applies the In predicate on the "headimg" field.
  586. func HeadimgIn(vs ...string) predicate.Contact {
  587. return predicate.Contact(sql.FieldIn(FieldHeadimg, vs...))
  588. }
  589. // HeadimgNotIn applies the NotIn predicate on the "headimg" field.
  590. func HeadimgNotIn(vs ...string) predicate.Contact {
  591. return predicate.Contact(sql.FieldNotIn(FieldHeadimg, vs...))
  592. }
  593. // HeadimgGT applies the GT predicate on the "headimg" field.
  594. func HeadimgGT(v string) predicate.Contact {
  595. return predicate.Contact(sql.FieldGT(FieldHeadimg, v))
  596. }
  597. // HeadimgGTE applies the GTE predicate on the "headimg" field.
  598. func HeadimgGTE(v string) predicate.Contact {
  599. return predicate.Contact(sql.FieldGTE(FieldHeadimg, v))
  600. }
  601. // HeadimgLT applies the LT predicate on the "headimg" field.
  602. func HeadimgLT(v string) predicate.Contact {
  603. return predicate.Contact(sql.FieldLT(FieldHeadimg, v))
  604. }
  605. // HeadimgLTE applies the LTE predicate on the "headimg" field.
  606. func HeadimgLTE(v string) predicate.Contact {
  607. return predicate.Contact(sql.FieldLTE(FieldHeadimg, v))
  608. }
  609. // HeadimgContains applies the Contains predicate on the "headimg" field.
  610. func HeadimgContains(v string) predicate.Contact {
  611. return predicate.Contact(sql.FieldContains(FieldHeadimg, v))
  612. }
  613. // HeadimgHasPrefix applies the HasPrefix predicate on the "headimg" field.
  614. func HeadimgHasPrefix(v string) predicate.Contact {
  615. return predicate.Contact(sql.FieldHasPrefix(FieldHeadimg, v))
  616. }
  617. // HeadimgHasSuffix applies the HasSuffix predicate on the "headimg" field.
  618. func HeadimgHasSuffix(v string) predicate.Contact {
  619. return predicate.Contact(sql.FieldHasSuffix(FieldHeadimg, v))
  620. }
  621. // HeadimgEqualFold applies the EqualFold predicate on the "headimg" field.
  622. func HeadimgEqualFold(v string) predicate.Contact {
  623. return predicate.Contact(sql.FieldEqualFold(FieldHeadimg, v))
  624. }
  625. // HeadimgContainsFold applies the ContainsFold predicate on the "headimg" field.
  626. func HeadimgContainsFold(v string) predicate.Contact {
  627. return predicate.Contact(sql.FieldContainsFold(FieldHeadimg, v))
  628. }
  629. // SexEQ applies the EQ predicate on the "sex" field.
  630. func SexEQ(v int) predicate.Contact {
  631. return predicate.Contact(sql.FieldEQ(FieldSex, v))
  632. }
  633. // SexNEQ applies the NEQ predicate on the "sex" field.
  634. func SexNEQ(v int) predicate.Contact {
  635. return predicate.Contact(sql.FieldNEQ(FieldSex, v))
  636. }
  637. // SexIn applies the In predicate on the "sex" field.
  638. func SexIn(vs ...int) predicate.Contact {
  639. return predicate.Contact(sql.FieldIn(FieldSex, vs...))
  640. }
  641. // SexNotIn applies the NotIn predicate on the "sex" field.
  642. func SexNotIn(vs ...int) predicate.Contact {
  643. return predicate.Contact(sql.FieldNotIn(FieldSex, vs...))
  644. }
  645. // SexGT applies the GT predicate on the "sex" field.
  646. func SexGT(v int) predicate.Contact {
  647. return predicate.Contact(sql.FieldGT(FieldSex, v))
  648. }
  649. // SexGTE applies the GTE predicate on the "sex" field.
  650. func SexGTE(v int) predicate.Contact {
  651. return predicate.Contact(sql.FieldGTE(FieldSex, v))
  652. }
  653. // SexLT applies the LT predicate on the "sex" field.
  654. func SexLT(v int) predicate.Contact {
  655. return predicate.Contact(sql.FieldLT(FieldSex, v))
  656. }
  657. // SexLTE applies the LTE predicate on the "sex" field.
  658. func SexLTE(v int) predicate.Contact {
  659. return predicate.Contact(sql.FieldLTE(FieldSex, v))
  660. }
  661. // StarroleEQ applies the EQ predicate on the "starrole" field.
  662. func StarroleEQ(v string) predicate.Contact {
  663. return predicate.Contact(sql.FieldEQ(FieldStarrole, v))
  664. }
  665. // StarroleNEQ applies the NEQ predicate on the "starrole" field.
  666. func StarroleNEQ(v string) predicate.Contact {
  667. return predicate.Contact(sql.FieldNEQ(FieldStarrole, v))
  668. }
  669. // StarroleIn applies the In predicate on the "starrole" field.
  670. func StarroleIn(vs ...string) predicate.Contact {
  671. return predicate.Contact(sql.FieldIn(FieldStarrole, vs...))
  672. }
  673. // StarroleNotIn applies the NotIn predicate on the "starrole" field.
  674. func StarroleNotIn(vs ...string) predicate.Contact {
  675. return predicate.Contact(sql.FieldNotIn(FieldStarrole, vs...))
  676. }
  677. // StarroleGT applies the GT predicate on the "starrole" field.
  678. func StarroleGT(v string) predicate.Contact {
  679. return predicate.Contact(sql.FieldGT(FieldStarrole, v))
  680. }
  681. // StarroleGTE applies the GTE predicate on the "starrole" field.
  682. func StarroleGTE(v string) predicate.Contact {
  683. return predicate.Contact(sql.FieldGTE(FieldStarrole, v))
  684. }
  685. // StarroleLT applies the LT predicate on the "starrole" field.
  686. func StarroleLT(v string) predicate.Contact {
  687. return predicate.Contact(sql.FieldLT(FieldStarrole, v))
  688. }
  689. // StarroleLTE applies the LTE predicate on the "starrole" field.
  690. func StarroleLTE(v string) predicate.Contact {
  691. return predicate.Contact(sql.FieldLTE(FieldStarrole, v))
  692. }
  693. // StarroleContains applies the Contains predicate on the "starrole" field.
  694. func StarroleContains(v string) predicate.Contact {
  695. return predicate.Contact(sql.FieldContains(FieldStarrole, v))
  696. }
  697. // StarroleHasPrefix applies the HasPrefix predicate on the "starrole" field.
  698. func StarroleHasPrefix(v string) predicate.Contact {
  699. return predicate.Contact(sql.FieldHasPrefix(FieldStarrole, v))
  700. }
  701. // StarroleHasSuffix applies the HasSuffix predicate on the "starrole" field.
  702. func StarroleHasSuffix(v string) predicate.Contact {
  703. return predicate.Contact(sql.FieldHasSuffix(FieldStarrole, v))
  704. }
  705. // StarroleEqualFold applies the EqualFold predicate on the "starrole" field.
  706. func StarroleEqualFold(v string) predicate.Contact {
  707. return predicate.Contact(sql.FieldEqualFold(FieldStarrole, v))
  708. }
  709. // StarroleContainsFold applies the ContainsFold predicate on the "starrole" field.
  710. func StarroleContainsFold(v string) predicate.Contact {
  711. return predicate.Contact(sql.FieldContainsFold(FieldStarrole, v))
  712. }
  713. // DontseeitEQ applies the EQ predicate on the "dontseeit" field.
  714. func DontseeitEQ(v int) predicate.Contact {
  715. return predicate.Contact(sql.FieldEQ(FieldDontseeit, v))
  716. }
  717. // DontseeitNEQ applies the NEQ predicate on the "dontseeit" field.
  718. func DontseeitNEQ(v int) predicate.Contact {
  719. return predicate.Contact(sql.FieldNEQ(FieldDontseeit, v))
  720. }
  721. // DontseeitIn applies the In predicate on the "dontseeit" field.
  722. func DontseeitIn(vs ...int) predicate.Contact {
  723. return predicate.Contact(sql.FieldIn(FieldDontseeit, vs...))
  724. }
  725. // DontseeitNotIn applies the NotIn predicate on the "dontseeit" field.
  726. func DontseeitNotIn(vs ...int) predicate.Contact {
  727. return predicate.Contact(sql.FieldNotIn(FieldDontseeit, vs...))
  728. }
  729. // DontseeitGT applies the GT predicate on the "dontseeit" field.
  730. func DontseeitGT(v int) predicate.Contact {
  731. return predicate.Contact(sql.FieldGT(FieldDontseeit, v))
  732. }
  733. // DontseeitGTE applies the GTE predicate on the "dontseeit" field.
  734. func DontseeitGTE(v int) predicate.Contact {
  735. return predicate.Contact(sql.FieldGTE(FieldDontseeit, v))
  736. }
  737. // DontseeitLT applies the LT predicate on the "dontseeit" field.
  738. func DontseeitLT(v int) predicate.Contact {
  739. return predicate.Contact(sql.FieldLT(FieldDontseeit, v))
  740. }
  741. // DontseeitLTE applies the LTE predicate on the "dontseeit" field.
  742. func DontseeitLTE(v int) predicate.Contact {
  743. return predicate.Contact(sql.FieldLTE(FieldDontseeit, v))
  744. }
  745. // DontseemeEQ applies the EQ predicate on the "dontseeme" field.
  746. func DontseemeEQ(v int) predicate.Contact {
  747. return predicate.Contact(sql.FieldEQ(FieldDontseeme, v))
  748. }
  749. // DontseemeNEQ applies the NEQ predicate on the "dontseeme" field.
  750. func DontseemeNEQ(v int) predicate.Contact {
  751. return predicate.Contact(sql.FieldNEQ(FieldDontseeme, v))
  752. }
  753. // DontseemeIn applies the In predicate on the "dontseeme" field.
  754. func DontseemeIn(vs ...int) predicate.Contact {
  755. return predicate.Contact(sql.FieldIn(FieldDontseeme, vs...))
  756. }
  757. // DontseemeNotIn applies the NotIn predicate on the "dontseeme" field.
  758. func DontseemeNotIn(vs ...int) predicate.Contact {
  759. return predicate.Contact(sql.FieldNotIn(FieldDontseeme, vs...))
  760. }
  761. // DontseemeGT applies the GT predicate on the "dontseeme" field.
  762. func DontseemeGT(v int) predicate.Contact {
  763. return predicate.Contact(sql.FieldGT(FieldDontseeme, v))
  764. }
  765. // DontseemeGTE applies the GTE predicate on the "dontseeme" field.
  766. func DontseemeGTE(v int) predicate.Contact {
  767. return predicate.Contact(sql.FieldGTE(FieldDontseeme, v))
  768. }
  769. // DontseemeLT applies the LT predicate on the "dontseeme" field.
  770. func DontseemeLT(v int) predicate.Contact {
  771. return predicate.Contact(sql.FieldLT(FieldDontseeme, v))
  772. }
  773. // DontseemeLTE applies the LTE predicate on the "dontseeme" field.
  774. func DontseemeLTE(v int) predicate.Contact {
  775. return predicate.Contact(sql.FieldLTE(FieldDontseeme, v))
  776. }
  777. // LagEQ applies the EQ predicate on the "lag" field.
  778. func LagEQ(v string) predicate.Contact {
  779. return predicate.Contact(sql.FieldEQ(FieldLag, v))
  780. }
  781. // LagNEQ applies the NEQ predicate on the "lag" field.
  782. func LagNEQ(v string) predicate.Contact {
  783. return predicate.Contact(sql.FieldNEQ(FieldLag, v))
  784. }
  785. // LagIn applies the In predicate on the "lag" field.
  786. func LagIn(vs ...string) predicate.Contact {
  787. return predicate.Contact(sql.FieldIn(FieldLag, vs...))
  788. }
  789. // LagNotIn applies the NotIn predicate on the "lag" field.
  790. func LagNotIn(vs ...string) predicate.Contact {
  791. return predicate.Contact(sql.FieldNotIn(FieldLag, vs...))
  792. }
  793. // LagGT applies the GT predicate on the "lag" field.
  794. func LagGT(v string) predicate.Contact {
  795. return predicate.Contact(sql.FieldGT(FieldLag, v))
  796. }
  797. // LagGTE applies the GTE predicate on the "lag" field.
  798. func LagGTE(v string) predicate.Contact {
  799. return predicate.Contact(sql.FieldGTE(FieldLag, v))
  800. }
  801. // LagLT applies the LT predicate on the "lag" field.
  802. func LagLT(v string) predicate.Contact {
  803. return predicate.Contact(sql.FieldLT(FieldLag, v))
  804. }
  805. // LagLTE applies the LTE predicate on the "lag" field.
  806. func LagLTE(v string) predicate.Contact {
  807. return predicate.Contact(sql.FieldLTE(FieldLag, v))
  808. }
  809. // LagContains applies the Contains predicate on the "lag" field.
  810. func LagContains(v string) predicate.Contact {
  811. return predicate.Contact(sql.FieldContains(FieldLag, v))
  812. }
  813. // LagHasPrefix applies the HasPrefix predicate on the "lag" field.
  814. func LagHasPrefix(v string) predicate.Contact {
  815. return predicate.Contact(sql.FieldHasPrefix(FieldLag, v))
  816. }
  817. // LagHasSuffix applies the HasSuffix predicate on the "lag" field.
  818. func LagHasSuffix(v string) predicate.Contact {
  819. return predicate.Contact(sql.FieldHasSuffix(FieldLag, v))
  820. }
  821. // LagEqualFold applies the EqualFold predicate on the "lag" field.
  822. func LagEqualFold(v string) predicate.Contact {
  823. return predicate.Contact(sql.FieldEqualFold(FieldLag, v))
  824. }
  825. // LagContainsFold applies the ContainsFold predicate on the "lag" field.
  826. func LagContainsFold(v string) predicate.Contact {
  827. return predicate.Contact(sql.FieldContainsFold(FieldLag, v))
  828. }
  829. // GidEQ applies the EQ predicate on the "gid" field.
  830. func GidEQ(v string) predicate.Contact {
  831. return predicate.Contact(sql.FieldEQ(FieldGid, v))
  832. }
  833. // GidNEQ applies the NEQ predicate on the "gid" field.
  834. func GidNEQ(v string) predicate.Contact {
  835. return predicate.Contact(sql.FieldNEQ(FieldGid, v))
  836. }
  837. // GidIn applies the In predicate on the "gid" field.
  838. func GidIn(vs ...string) predicate.Contact {
  839. return predicate.Contact(sql.FieldIn(FieldGid, vs...))
  840. }
  841. // GidNotIn applies the NotIn predicate on the "gid" field.
  842. func GidNotIn(vs ...string) predicate.Contact {
  843. return predicate.Contact(sql.FieldNotIn(FieldGid, vs...))
  844. }
  845. // GidGT applies the GT predicate on the "gid" field.
  846. func GidGT(v string) predicate.Contact {
  847. return predicate.Contact(sql.FieldGT(FieldGid, v))
  848. }
  849. // GidGTE applies the GTE predicate on the "gid" field.
  850. func GidGTE(v string) predicate.Contact {
  851. return predicate.Contact(sql.FieldGTE(FieldGid, v))
  852. }
  853. // GidLT applies the LT predicate on the "gid" field.
  854. func GidLT(v string) predicate.Contact {
  855. return predicate.Contact(sql.FieldLT(FieldGid, v))
  856. }
  857. // GidLTE applies the LTE predicate on the "gid" field.
  858. func GidLTE(v string) predicate.Contact {
  859. return predicate.Contact(sql.FieldLTE(FieldGid, v))
  860. }
  861. // GidContains applies the Contains predicate on the "gid" field.
  862. func GidContains(v string) predicate.Contact {
  863. return predicate.Contact(sql.FieldContains(FieldGid, v))
  864. }
  865. // GidHasPrefix applies the HasPrefix predicate on the "gid" field.
  866. func GidHasPrefix(v string) predicate.Contact {
  867. return predicate.Contact(sql.FieldHasPrefix(FieldGid, v))
  868. }
  869. // GidHasSuffix applies the HasSuffix predicate on the "gid" field.
  870. func GidHasSuffix(v string) predicate.Contact {
  871. return predicate.Contact(sql.FieldHasSuffix(FieldGid, v))
  872. }
  873. // GidEqualFold applies the EqualFold predicate on the "gid" field.
  874. func GidEqualFold(v string) predicate.Contact {
  875. return predicate.Contact(sql.FieldEqualFold(FieldGid, v))
  876. }
  877. // GidContainsFold applies the ContainsFold predicate on the "gid" field.
  878. func GidContainsFold(v string) predicate.Contact {
  879. return predicate.Contact(sql.FieldContainsFold(FieldGid, v))
  880. }
  881. // GnameEQ applies the EQ predicate on the "gname" field.
  882. func GnameEQ(v string) predicate.Contact {
  883. return predicate.Contact(sql.FieldEQ(FieldGname, v))
  884. }
  885. // GnameNEQ applies the NEQ predicate on the "gname" field.
  886. func GnameNEQ(v string) predicate.Contact {
  887. return predicate.Contact(sql.FieldNEQ(FieldGname, v))
  888. }
  889. // GnameIn applies the In predicate on the "gname" field.
  890. func GnameIn(vs ...string) predicate.Contact {
  891. return predicate.Contact(sql.FieldIn(FieldGname, vs...))
  892. }
  893. // GnameNotIn applies the NotIn predicate on the "gname" field.
  894. func GnameNotIn(vs ...string) predicate.Contact {
  895. return predicate.Contact(sql.FieldNotIn(FieldGname, vs...))
  896. }
  897. // GnameGT applies the GT predicate on the "gname" field.
  898. func GnameGT(v string) predicate.Contact {
  899. return predicate.Contact(sql.FieldGT(FieldGname, v))
  900. }
  901. // GnameGTE applies the GTE predicate on the "gname" field.
  902. func GnameGTE(v string) predicate.Contact {
  903. return predicate.Contact(sql.FieldGTE(FieldGname, v))
  904. }
  905. // GnameLT applies the LT predicate on the "gname" field.
  906. func GnameLT(v string) predicate.Contact {
  907. return predicate.Contact(sql.FieldLT(FieldGname, v))
  908. }
  909. // GnameLTE applies the LTE predicate on the "gname" field.
  910. func GnameLTE(v string) predicate.Contact {
  911. return predicate.Contact(sql.FieldLTE(FieldGname, v))
  912. }
  913. // GnameContains applies the Contains predicate on the "gname" field.
  914. func GnameContains(v string) predicate.Contact {
  915. return predicate.Contact(sql.FieldContains(FieldGname, v))
  916. }
  917. // GnameHasPrefix applies the HasPrefix predicate on the "gname" field.
  918. func GnameHasPrefix(v string) predicate.Contact {
  919. return predicate.Contact(sql.FieldHasPrefix(FieldGname, v))
  920. }
  921. // GnameHasSuffix applies the HasSuffix predicate on the "gname" field.
  922. func GnameHasSuffix(v string) predicate.Contact {
  923. return predicate.Contact(sql.FieldHasSuffix(FieldGname, v))
  924. }
  925. // GnameEqualFold applies the EqualFold predicate on the "gname" field.
  926. func GnameEqualFold(v string) predicate.Contact {
  927. return predicate.Contact(sql.FieldEqualFold(FieldGname, v))
  928. }
  929. // GnameContainsFold applies the ContainsFold predicate on the "gname" field.
  930. func GnameContainsFold(v string) predicate.Contact {
  931. return predicate.Contact(sql.FieldContainsFold(FieldGname, v))
  932. }
  933. // V3EQ applies the EQ predicate on the "v3" field.
  934. func V3EQ(v string) predicate.Contact {
  935. return predicate.Contact(sql.FieldEQ(FieldV3, v))
  936. }
  937. // V3NEQ applies the NEQ predicate on the "v3" field.
  938. func V3NEQ(v string) predicate.Contact {
  939. return predicate.Contact(sql.FieldNEQ(FieldV3, v))
  940. }
  941. // V3In applies the In predicate on the "v3" field.
  942. func V3In(vs ...string) predicate.Contact {
  943. return predicate.Contact(sql.FieldIn(FieldV3, vs...))
  944. }
  945. // V3NotIn applies the NotIn predicate on the "v3" field.
  946. func V3NotIn(vs ...string) predicate.Contact {
  947. return predicate.Contact(sql.FieldNotIn(FieldV3, vs...))
  948. }
  949. // V3GT applies the GT predicate on the "v3" field.
  950. func V3GT(v string) predicate.Contact {
  951. return predicate.Contact(sql.FieldGT(FieldV3, v))
  952. }
  953. // V3GTE applies the GTE predicate on the "v3" field.
  954. func V3GTE(v string) predicate.Contact {
  955. return predicate.Contact(sql.FieldGTE(FieldV3, v))
  956. }
  957. // V3LT applies the LT predicate on the "v3" field.
  958. func V3LT(v string) predicate.Contact {
  959. return predicate.Contact(sql.FieldLT(FieldV3, v))
  960. }
  961. // V3LTE applies the LTE predicate on the "v3" field.
  962. func V3LTE(v string) predicate.Contact {
  963. return predicate.Contact(sql.FieldLTE(FieldV3, v))
  964. }
  965. // V3Contains applies the Contains predicate on the "v3" field.
  966. func V3Contains(v string) predicate.Contact {
  967. return predicate.Contact(sql.FieldContains(FieldV3, v))
  968. }
  969. // V3HasPrefix applies the HasPrefix predicate on the "v3" field.
  970. func V3HasPrefix(v string) predicate.Contact {
  971. return predicate.Contact(sql.FieldHasPrefix(FieldV3, v))
  972. }
  973. // V3HasSuffix applies the HasSuffix predicate on the "v3" field.
  974. func V3HasSuffix(v string) predicate.Contact {
  975. return predicate.Contact(sql.FieldHasSuffix(FieldV3, v))
  976. }
  977. // V3EqualFold applies the EqualFold predicate on the "v3" field.
  978. func V3EqualFold(v string) predicate.Contact {
  979. return predicate.Contact(sql.FieldEqualFold(FieldV3, v))
  980. }
  981. // V3ContainsFold applies the ContainsFold predicate on the "v3" field.
  982. func V3ContainsFold(v string) predicate.Contact {
  983. return predicate.Contact(sql.FieldContainsFold(FieldV3, v))
  984. }
  985. // OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
  986. func OrganizationIDEQ(v uint64) predicate.Contact {
  987. return predicate.Contact(sql.FieldEQ(FieldOrganizationID, v))
  988. }
  989. // OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
  990. func OrganizationIDNEQ(v uint64) predicate.Contact {
  991. return predicate.Contact(sql.FieldNEQ(FieldOrganizationID, v))
  992. }
  993. // OrganizationIDIn applies the In predicate on the "organization_id" field.
  994. func OrganizationIDIn(vs ...uint64) predicate.Contact {
  995. return predicate.Contact(sql.FieldIn(FieldOrganizationID, vs...))
  996. }
  997. // OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
  998. func OrganizationIDNotIn(vs ...uint64) predicate.Contact {
  999. return predicate.Contact(sql.FieldNotIn(FieldOrganizationID, vs...))
  1000. }
  1001. // OrganizationIDGT applies the GT predicate on the "organization_id" field.
  1002. func OrganizationIDGT(v uint64) predicate.Contact {
  1003. return predicate.Contact(sql.FieldGT(FieldOrganizationID, v))
  1004. }
  1005. // OrganizationIDGTE applies the GTE predicate on the "organization_id" field.
  1006. func OrganizationIDGTE(v uint64) predicate.Contact {
  1007. return predicate.Contact(sql.FieldGTE(FieldOrganizationID, v))
  1008. }
  1009. // OrganizationIDLT applies the LT predicate on the "organization_id" field.
  1010. func OrganizationIDLT(v uint64) predicate.Contact {
  1011. return predicate.Contact(sql.FieldLT(FieldOrganizationID, v))
  1012. }
  1013. // OrganizationIDLTE applies the LTE predicate on the "organization_id" field.
  1014. func OrganizationIDLTE(v uint64) predicate.Contact {
  1015. return predicate.Contact(sql.FieldLTE(FieldOrganizationID, v))
  1016. }
  1017. // OrganizationIDIsNil applies the IsNil predicate on the "organization_id" field.
  1018. func OrganizationIDIsNil() predicate.Contact {
  1019. return predicate.Contact(sql.FieldIsNull(FieldOrganizationID))
  1020. }
  1021. // OrganizationIDNotNil applies the NotNil predicate on the "organization_id" field.
  1022. func OrganizationIDNotNil() predicate.Contact {
  1023. return predicate.Contact(sql.FieldNotNull(FieldOrganizationID))
  1024. }
  1025. // HasContactRelationships applies the HasEdge predicate on the "contact_relationships" edge.
  1026. func HasContactRelationships() predicate.Contact {
  1027. return predicate.Contact(func(s *sql.Selector) {
  1028. step := sqlgraph.NewStep(
  1029. sqlgraph.From(Table, FieldID),
  1030. sqlgraph.Edge(sqlgraph.O2M, false, ContactRelationshipsTable, ContactRelationshipsColumn),
  1031. )
  1032. sqlgraph.HasNeighbors(s, step)
  1033. })
  1034. }
  1035. // HasContactRelationshipsWith applies the HasEdge predicate on the "contact_relationships" edge with a given conditions (other predicates).
  1036. func HasContactRelationshipsWith(preds ...predicate.LabelRelationship) predicate.Contact {
  1037. return predicate.Contact(func(s *sql.Selector) {
  1038. step := newContactRelationshipsStep()
  1039. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  1040. for _, p := range preds {
  1041. p(s)
  1042. }
  1043. })
  1044. })
  1045. }
  1046. // HasContactMessages applies the HasEdge predicate on the "contact_messages" edge.
  1047. func HasContactMessages() predicate.Contact {
  1048. return predicate.Contact(func(s *sql.Selector) {
  1049. step := sqlgraph.NewStep(
  1050. sqlgraph.From(Table, FieldID),
  1051. sqlgraph.Edge(sqlgraph.O2M, false, ContactMessagesTable, ContactMessagesColumn),
  1052. )
  1053. sqlgraph.HasNeighbors(s, step)
  1054. })
  1055. }
  1056. // HasContactMessagesWith applies the HasEdge predicate on the "contact_messages" edge with a given conditions (other predicates).
  1057. func HasContactMessagesWith(preds ...predicate.MessageRecords) predicate.Contact {
  1058. return predicate.Contact(func(s *sql.Selector) {
  1059. step := newContactMessagesStep()
  1060. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  1061. for _, p := range preds {
  1062. p(s)
  1063. }
  1064. })
  1065. })
  1066. }
  1067. // And groups predicates with the AND operator between them.
  1068. func And(predicates ...predicate.Contact) predicate.Contact {
  1069. return predicate.Contact(sql.AndPredicates(predicates...))
  1070. }
  1071. // Or groups predicates with the OR operator between them.
  1072. func Or(predicates ...predicate.Contact) predicate.Contact {
  1073. return predicate.Contact(sql.OrPredicates(predicates...))
  1074. }
  1075. // Not applies the not operator on the given predicate.
  1076. func Not(p predicate.Contact) predicate.Contact {
  1077. return predicate.Contact(sql.NotPredicates(p))
  1078. }