where.go 46 KB

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