where.go 35 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004
  1. // Code generated by ent, DO NOT EDIT.
  2. package whatsapp
  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.Whatsapp {
  11. return predicate.Whatsapp(sql.FieldEQ(FieldID, id))
  12. }
  13. // IDEQ applies the EQ predicate on the ID field.
  14. func IDEQ(id uint64) predicate.Whatsapp {
  15. return predicate.Whatsapp(sql.FieldEQ(FieldID, id))
  16. }
  17. // IDNEQ applies the NEQ predicate on the ID field.
  18. func IDNEQ(id uint64) predicate.Whatsapp {
  19. return predicate.Whatsapp(sql.FieldNEQ(FieldID, id))
  20. }
  21. // IDIn applies the In predicate on the ID field.
  22. func IDIn(ids ...uint64) predicate.Whatsapp {
  23. return predicate.Whatsapp(sql.FieldIn(FieldID, ids...))
  24. }
  25. // IDNotIn applies the NotIn predicate on the ID field.
  26. func IDNotIn(ids ...uint64) predicate.Whatsapp {
  27. return predicate.Whatsapp(sql.FieldNotIn(FieldID, ids...))
  28. }
  29. // IDGT applies the GT predicate on the ID field.
  30. func IDGT(id uint64) predicate.Whatsapp {
  31. return predicate.Whatsapp(sql.FieldGT(FieldID, id))
  32. }
  33. // IDGTE applies the GTE predicate on the ID field.
  34. func IDGTE(id uint64) predicate.Whatsapp {
  35. return predicate.Whatsapp(sql.FieldGTE(FieldID, id))
  36. }
  37. // IDLT applies the LT predicate on the ID field.
  38. func IDLT(id uint64) predicate.Whatsapp {
  39. return predicate.Whatsapp(sql.FieldLT(FieldID, id))
  40. }
  41. // IDLTE applies the LTE predicate on the ID field.
  42. func IDLTE(id uint64) predicate.Whatsapp {
  43. return predicate.Whatsapp(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.Whatsapp {
  47. return predicate.Whatsapp(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.Whatsapp {
  51. return predicate.Whatsapp(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.Whatsapp {
  55. return predicate.Whatsapp(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.Whatsapp {
  59. return predicate.Whatsapp(sql.FieldEQ(FieldDeletedAt, v))
  60. }
  61. // Ak applies equality check predicate on the "ak" field. It's identical to AkEQ.
  62. func Ak(v string) predicate.Whatsapp {
  63. return predicate.Whatsapp(sql.FieldEQ(FieldAk, v))
  64. }
  65. // Sk applies equality check predicate on the "sk" field. It's identical to SkEQ.
  66. func Sk(v string) predicate.Whatsapp {
  67. return predicate.Whatsapp(sql.FieldEQ(FieldSk, v))
  68. }
  69. // Callback applies equality check predicate on the "callback" field. It's identical to CallbackEQ.
  70. func Callback(v string) predicate.Whatsapp {
  71. return predicate.Whatsapp(sql.FieldEQ(FieldCallback, v))
  72. }
  73. // Account applies equality check predicate on the "account" field. It's identical to AccountEQ.
  74. func Account(v string) predicate.Whatsapp {
  75. return predicate.Whatsapp(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.Whatsapp {
  79. return predicate.Whatsapp(sql.FieldEQ(FieldNickname, v))
  80. }
  81. // Phone applies equality check predicate on the "phone" field. It's identical to PhoneEQ.
  82. func Phone(v string) predicate.Whatsapp {
  83. return predicate.Whatsapp(sql.FieldEQ(FieldPhone, v))
  84. }
  85. // OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
  86. func OrganizationID(v uint64) predicate.Whatsapp {
  87. return predicate.Whatsapp(sql.FieldEQ(FieldOrganizationID, v))
  88. }
  89. // AgentID applies equality check predicate on the "agent_id" field. It's identical to AgentIDEQ.
  90. func AgentID(v uint64) predicate.Whatsapp {
  91. return predicate.Whatsapp(sql.FieldEQ(FieldAgentID, v))
  92. }
  93. // APIBase applies equality check predicate on the "api_base" field. It's identical to APIBaseEQ.
  94. func APIBase(v string) predicate.Whatsapp {
  95. return predicate.Whatsapp(sql.FieldEQ(FieldAPIBase, v))
  96. }
  97. // APIKey applies equality check predicate on the "api_key" field. It's identical to APIKeyEQ.
  98. func APIKey(v string) predicate.Whatsapp {
  99. return predicate.Whatsapp(sql.FieldEQ(FieldAPIKey, v))
  100. }
  101. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  102. func CreatedAtEQ(v time.Time) predicate.Whatsapp {
  103. return predicate.Whatsapp(sql.FieldEQ(FieldCreatedAt, v))
  104. }
  105. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  106. func CreatedAtNEQ(v time.Time) predicate.Whatsapp {
  107. return predicate.Whatsapp(sql.FieldNEQ(FieldCreatedAt, v))
  108. }
  109. // CreatedAtIn applies the In predicate on the "created_at" field.
  110. func CreatedAtIn(vs ...time.Time) predicate.Whatsapp {
  111. return predicate.Whatsapp(sql.FieldIn(FieldCreatedAt, vs...))
  112. }
  113. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  114. func CreatedAtNotIn(vs ...time.Time) predicate.Whatsapp {
  115. return predicate.Whatsapp(sql.FieldNotIn(FieldCreatedAt, vs...))
  116. }
  117. // CreatedAtGT applies the GT predicate on the "created_at" field.
  118. func CreatedAtGT(v time.Time) predicate.Whatsapp {
  119. return predicate.Whatsapp(sql.FieldGT(FieldCreatedAt, v))
  120. }
  121. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  122. func CreatedAtGTE(v time.Time) predicate.Whatsapp {
  123. return predicate.Whatsapp(sql.FieldGTE(FieldCreatedAt, v))
  124. }
  125. // CreatedAtLT applies the LT predicate on the "created_at" field.
  126. func CreatedAtLT(v time.Time) predicate.Whatsapp {
  127. return predicate.Whatsapp(sql.FieldLT(FieldCreatedAt, v))
  128. }
  129. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  130. func CreatedAtLTE(v time.Time) predicate.Whatsapp {
  131. return predicate.Whatsapp(sql.FieldLTE(FieldCreatedAt, v))
  132. }
  133. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  134. func UpdatedAtEQ(v time.Time) predicate.Whatsapp {
  135. return predicate.Whatsapp(sql.FieldEQ(FieldUpdatedAt, v))
  136. }
  137. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  138. func UpdatedAtNEQ(v time.Time) predicate.Whatsapp {
  139. return predicate.Whatsapp(sql.FieldNEQ(FieldUpdatedAt, v))
  140. }
  141. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  142. func UpdatedAtIn(vs ...time.Time) predicate.Whatsapp {
  143. return predicate.Whatsapp(sql.FieldIn(FieldUpdatedAt, vs...))
  144. }
  145. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  146. func UpdatedAtNotIn(vs ...time.Time) predicate.Whatsapp {
  147. return predicate.Whatsapp(sql.FieldNotIn(FieldUpdatedAt, vs...))
  148. }
  149. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  150. func UpdatedAtGT(v time.Time) predicate.Whatsapp {
  151. return predicate.Whatsapp(sql.FieldGT(FieldUpdatedAt, v))
  152. }
  153. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  154. func UpdatedAtGTE(v time.Time) predicate.Whatsapp {
  155. return predicate.Whatsapp(sql.FieldGTE(FieldUpdatedAt, v))
  156. }
  157. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  158. func UpdatedAtLT(v time.Time) predicate.Whatsapp {
  159. return predicate.Whatsapp(sql.FieldLT(FieldUpdatedAt, v))
  160. }
  161. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  162. func UpdatedAtLTE(v time.Time) predicate.Whatsapp {
  163. return predicate.Whatsapp(sql.FieldLTE(FieldUpdatedAt, v))
  164. }
  165. // StatusEQ applies the EQ predicate on the "status" field.
  166. func StatusEQ(v uint8) predicate.Whatsapp {
  167. return predicate.Whatsapp(sql.FieldEQ(FieldStatus, v))
  168. }
  169. // StatusNEQ applies the NEQ predicate on the "status" field.
  170. func StatusNEQ(v uint8) predicate.Whatsapp {
  171. return predicate.Whatsapp(sql.FieldNEQ(FieldStatus, v))
  172. }
  173. // StatusIn applies the In predicate on the "status" field.
  174. func StatusIn(vs ...uint8) predicate.Whatsapp {
  175. return predicate.Whatsapp(sql.FieldIn(FieldStatus, vs...))
  176. }
  177. // StatusNotIn applies the NotIn predicate on the "status" field.
  178. func StatusNotIn(vs ...uint8) predicate.Whatsapp {
  179. return predicate.Whatsapp(sql.FieldNotIn(FieldStatus, vs...))
  180. }
  181. // StatusGT applies the GT predicate on the "status" field.
  182. func StatusGT(v uint8) predicate.Whatsapp {
  183. return predicate.Whatsapp(sql.FieldGT(FieldStatus, v))
  184. }
  185. // StatusGTE applies the GTE predicate on the "status" field.
  186. func StatusGTE(v uint8) predicate.Whatsapp {
  187. return predicate.Whatsapp(sql.FieldGTE(FieldStatus, v))
  188. }
  189. // StatusLT applies the LT predicate on the "status" field.
  190. func StatusLT(v uint8) predicate.Whatsapp {
  191. return predicate.Whatsapp(sql.FieldLT(FieldStatus, v))
  192. }
  193. // StatusLTE applies the LTE predicate on the "status" field.
  194. func StatusLTE(v uint8) predicate.Whatsapp {
  195. return predicate.Whatsapp(sql.FieldLTE(FieldStatus, v))
  196. }
  197. // StatusIsNil applies the IsNil predicate on the "status" field.
  198. func StatusIsNil() predicate.Whatsapp {
  199. return predicate.Whatsapp(sql.FieldIsNull(FieldStatus))
  200. }
  201. // StatusNotNil applies the NotNil predicate on the "status" field.
  202. func StatusNotNil() predicate.Whatsapp {
  203. return predicate.Whatsapp(sql.FieldNotNull(FieldStatus))
  204. }
  205. // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
  206. func DeletedAtEQ(v time.Time) predicate.Whatsapp {
  207. return predicate.Whatsapp(sql.FieldEQ(FieldDeletedAt, v))
  208. }
  209. // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
  210. func DeletedAtNEQ(v time.Time) predicate.Whatsapp {
  211. return predicate.Whatsapp(sql.FieldNEQ(FieldDeletedAt, v))
  212. }
  213. // DeletedAtIn applies the In predicate on the "deleted_at" field.
  214. func DeletedAtIn(vs ...time.Time) predicate.Whatsapp {
  215. return predicate.Whatsapp(sql.FieldIn(FieldDeletedAt, vs...))
  216. }
  217. // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
  218. func DeletedAtNotIn(vs ...time.Time) predicate.Whatsapp {
  219. return predicate.Whatsapp(sql.FieldNotIn(FieldDeletedAt, vs...))
  220. }
  221. // DeletedAtGT applies the GT predicate on the "deleted_at" field.
  222. func DeletedAtGT(v time.Time) predicate.Whatsapp {
  223. return predicate.Whatsapp(sql.FieldGT(FieldDeletedAt, v))
  224. }
  225. // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
  226. func DeletedAtGTE(v time.Time) predicate.Whatsapp {
  227. return predicate.Whatsapp(sql.FieldGTE(FieldDeletedAt, v))
  228. }
  229. // DeletedAtLT applies the LT predicate on the "deleted_at" field.
  230. func DeletedAtLT(v time.Time) predicate.Whatsapp {
  231. return predicate.Whatsapp(sql.FieldLT(FieldDeletedAt, v))
  232. }
  233. // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
  234. func DeletedAtLTE(v time.Time) predicate.Whatsapp {
  235. return predicate.Whatsapp(sql.FieldLTE(FieldDeletedAt, v))
  236. }
  237. // DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
  238. func DeletedAtIsNil() predicate.Whatsapp {
  239. return predicate.Whatsapp(sql.FieldIsNull(FieldDeletedAt))
  240. }
  241. // DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
  242. func DeletedAtNotNil() predicate.Whatsapp {
  243. return predicate.Whatsapp(sql.FieldNotNull(FieldDeletedAt))
  244. }
  245. // AkEQ applies the EQ predicate on the "ak" field.
  246. func AkEQ(v string) predicate.Whatsapp {
  247. return predicate.Whatsapp(sql.FieldEQ(FieldAk, v))
  248. }
  249. // AkNEQ applies the NEQ predicate on the "ak" field.
  250. func AkNEQ(v string) predicate.Whatsapp {
  251. return predicate.Whatsapp(sql.FieldNEQ(FieldAk, v))
  252. }
  253. // AkIn applies the In predicate on the "ak" field.
  254. func AkIn(vs ...string) predicate.Whatsapp {
  255. return predicate.Whatsapp(sql.FieldIn(FieldAk, vs...))
  256. }
  257. // AkNotIn applies the NotIn predicate on the "ak" field.
  258. func AkNotIn(vs ...string) predicate.Whatsapp {
  259. return predicate.Whatsapp(sql.FieldNotIn(FieldAk, vs...))
  260. }
  261. // AkGT applies the GT predicate on the "ak" field.
  262. func AkGT(v string) predicate.Whatsapp {
  263. return predicate.Whatsapp(sql.FieldGT(FieldAk, v))
  264. }
  265. // AkGTE applies the GTE predicate on the "ak" field.
  266. func AkGTE(v string) predicate.Whatsapp {
  267. return predicate.Whatsapp(sql.FieldGTE(FieldAk, v))
  268. }
  269. // AkLT applies the LT predicate on the "ak" field.
  270. func AkLT(v string) predicate.Whatsapp {
  271. return predicate.Whatsapp(sql.FieldLT(FieldAk, v))
  272. }
  273. // AkLTE applies the LTE predicate on the "ak" field.
  274. func AkLTE(v string) predicate.Whatsapp {
  275. return predicate.Whatsapp(sql.FieldLTE(FieldAk, v))
  276. }
  277. // AkContains applies the Contains predicate on the "ak" field.
  278. func AkContains(v string) predicate.Whatsapp {
  279. return predicate.Whatsapp(sql.FieldContains(FieldAk, v))
  280. }
  281. // AkHasPrefix applies the HasPrefix predicate on the "ak" field.
  282. func AkHasPrefix(v string) predicate.Whatsapp {
  283. return predicate.Whatsapp(sql.FieldHasPrefix(FieldAk, v))
  284. }
  285. // AkHasSuffix applies the HasSuffix predicate on the "ak" field.
  286. func AkHasSuffix(v string) predicate.Whatsapp {
  287. return predicate.Whatsapp(sql.FieldHasSuffix(FieldAk, v))
  288. }
  289. // AkIsNil applies the IsNil predicate on the "ak" field.
  290. func AkIsNil() predicate.Whatsapp {
  291. return predicate.Whatsapp(sql.FieldIsNull(FieldAk))
  292. }
  293. // AkNotNil applies the NotNil predicate on the "ak" field.
  294. func AkNotNil() predicate.Whatsapp {
  295. return predicate.Whatsapp(sql.FieldNotNull(FieldAk))
  296. }
  297. // AkEqualFold applies the EqualFold predicate on the "ak" field.
  298. func AkEqualFold(v string) predicate.Whatsapp {
  299. return predicate.Whatsapp(sql.FieldEqualFold(FieldAk, v))
  300. }
  301. // AkContainsFold applies the ContainsFold predicate on the "ak" field.
  302. func AkContainsFold(v string) predicate.Whatsapp {
  303. return predicate.Whatsapp(sql.FieldContainsFold(FieldAk, v))
  304. }
  305. // SkEQ applies the EQ predicate on the "sk" field.
  306. func SkEQ(v string) predicate.Whatsapp {
  307. return predicate.Whatsapp(sql.FieldEQ(FieldSk, v))
  308. }
  309. // SkNEQ applies the NEQ predicate on the "sk" field.
  310. func SkNEQ(v string) predicate.Whatsapp {
  311. return predicate.Whatsapp(sql.FieldNEQ(FieldSk, v))
  312. }
  313. // SkIn applies the In predicate on the "sk" field.
  314. func SkIn(vs ...string) predicate.Whatsapp {
  315. return predicate.Whatsapp(sql.FieldIn(FieldSk, vs...))
  316. }
  317. // SkNotIn applies the NotIn predicate on the "sk" field.
  318. func SkNotIn(vs ...string) predicate.Whatsapp {
  319. return predicate.Whatsapp(sql.FieldNotIn(FieldSk, vs...))
  320. }
  321. // SkGT applies the GT predicate on the "sk" field.
  322. func SkGT(v string) predicate.Whatsapp {
  323. return predicate.Whatsapp(sql.FieldGT(FieldSk, v))
  324. }
  325. // SkGTE applies the GTE predicate on the "sk" field.
  326. func SkGTE(v string) predicate.Whatsapp {
  327. return predicate.Whatsapp(sql.FieldGTE(FieldSk, v))
  328. }
  329. // SkLT applies the LT predicate on the "sk" field.
  330. func SkLT(v string) predicate.Whatsapp {
  331. return predicate.Whatsapp(sql.FieldLT(FieldSk, v))
  332. }
  333. // SkLTE applies the LTE predicate on the "sk" field.
  334. func SkLTE(v string) predicate.Whatsapp {
  335. return predicate.Whatsapp(sql.FieldLTE(FieldSk, v))
  336. }
  337. // SkContains applies the Contains predicate on the "sk" field.
  338. func SkContains(v string) predicate.Whatsapp {
  339. return predicate.Whatsapp(sql.FieldContains(FieldSk, v))
  340. }
  341. // SkHasPrefix applies the HasPrefix predicate on the "sk" field.
  342. func SkHasPrefix(v string) predicate.Whatsapp {
  343. return predicate.Whatsapp(sql.FieldHasPrefix(FieldSk, v))
  344. }
  345. // SkHasSuffix applies the HasSuffix predicate on the "sk" field.
  346. func SkHasSuffix(v string) predicate.Whatsapp {
  347. return predicate.Whatsapp(sql.FieldHasSuffix(FieldSk, v))
  348. }
  349. // SkEqualFold applies the EqualFold predicate on the "sk" field.
  350. func SkEqualFold(v string) predicate.Whatsapp {
  351. return predicate.Whatsapp(sql.FieldEqualFold(FieldSk, v))
  352. }
  353. // SkContainsFold applies the ContainsFold predicate on the "sk" field.
  354. func SkContainsFold(v string) predicate.Whatsapp {
  355. return predicate.Whatsapp(sql.FieldContainsFold(FieldSk, v))
  356. }
  357. // CallbackEQ applies the EQ predicate on the "callback" field.
  358. func CallbackEQ(v string) predicate.Whatsapp {
  359. return predicate.Whatsapp(sql.FieldEQ(FieldCallback, v))
  360. }
  361. // CallbackNEQ applies the NEQ predicate on the "callback" field.
  362. func CallbackNEQ(v string) predicate.Whatsapp {
  363. return predicate.Whatsapp(sql.FieldNEQ(FieldCallback, v))
  364. }
  365. // CallbackIn applies the In predicate on the "callback" field.
  366. func CallbackIn(vs ...string) predicate.Whatsapp {
  367. return predicate.Whatsapp(sql.FieldIn(FieldCallback, vs...))
  368. }
  369. // CallbackNotIn applies the NotIn predicate on the "callback" field.
  370. func CallbackNotIn(vs ...string) predicate.Whatsapp {
  371. return predicate.Whatsapp(sql.FieldNotIn(FieldCallback, vs...))
  372. }
  373. // CallbackGT applies the GT predicate on the "callback" field.
  374. func CallbackGT(v string) predicate.Whatsapp {
  375. return predicate.Whatsapp(sql.FieldGT(FieldCallback, v))
  376. }
  377. // CallbackGTE applies the GTE predicate on the "callback" field.
  378. func CallbackGTE(v string) predicate.Whatsapp {
  379. return predicate.Whatsapp(sql.FieldGTE(FieldCallback, v))
  380. }
  381. // CallbackLT applies the LT predicate on the "callback" field.
  382. func CallbackLT(v string) predicate.Whatsapp {
  383. return predicate.Whatsapp(sql.FieldLT(FieldCallback, v))
  384. }
  385. // CallbackLTE applies the LTE predicate on the "callback" field.
  386. func CallbackLTE(v string) predicate.Whatsapp {
  387. return predicate.Whatsapp(sql.FieldLTE(FieldCallback, v))
  388. }
  389. // CallbackContains applies the Contains predicate on the "callback" field.
  390. func CallbackContains(v string) predicate.Whatsapp {
  391. return predicate.Whatsapp(sql.FieldContains(FieldCallback, v))
  392. }
  393. // CallbackHasPrefix applies the HasPrefix predicate on the "callback" field.
  394. func CallbackHasPrefix(v string) predicate.Whatsapp {
  395. return predicate.Whatsapp(sql.FieldHasPrefix(FieldCallback, v))
  396. }
  397. // CallbackHasSuffix applies the HasSuffix predicate on the "callback" field.
  398. func CallbackHasSuffix(v string) predicate.Whatsapp {
  399. return predicate.Whatsapp(sql.FieldHasSuffix(FieldCallback, v))
  400. }
  401. // CallbackEqualFold applies the EqualFold predicate on the "callback" field.
  402. func CallbackEqualFold(v string) predicate.Whatsapp {
  403. return predicate.Whatsapp(sql.FieldEqualFold(FieldCallback, v))
  404. }
  405. // CallbackContainsFold applies the ContainsFold predicate on the "callback" field.
  406. func CallbackContainsFold(v string) predicate.Whatsapp {
  407. return predicate.Whatsapp(sql.FieldContainsFold(FieldCallback, v))
  408. }
  409. // AccountEQ applies the EQ predicate on the "account" field.
  410. func AccountEQ(v string) predicate.Whatsapp {
  411. return predicate.Whatsapp(sql.FieldEQ(FieldAccount, v))
  412. }
  413. // AccountNEQ applies the NEQ predicate on the "account" field.
  414. func AccountNEQ(v string) predicate.Whatsapp {
  415. return predicate.Whatsapp(sql.FieldNEQ(FieldAccount, v))
  416. }
  417. // AccountIn applies the In predicate on the "account" field.
  418. func AccountIn(vs ...string) predicate.Whatsapp {
  419. return predicate.Whatsapp(sql.FieldIn(FieldAccount, vs...))
  420. }
  421. // AccountNotIn applies the NotIn predicate on the "account" field.
  422. func AccountNotIn(vs ...string) predicate.Whatsapp {
  423. return predicate.Whatsapp(sql.FieldNotIn(FieldAccount, vs...))
  424. }
  425. // AccountGT applies the GT predicate on the "account" field.
  426. func AccountGT(v string) predicate.Whatsapp {
  427. return predicate.Whatsapp(sql.FieldGT(FieldAccount, v))
  428. }
  429. // AccountGTE applies the GTE predicate on the "account" field.
  430. func AccountGTE(v string) predicate.Whatsapp {
  431. return predicate.Whatsapp(sql.FieldGTE(FieldAccount, v))
  432. }
  433. // AccountLT applies the LT predicate on the "account" field.
  434. func AccountLT(v string) predicate.Whatsapp {
  435. return predicate.Whatsapp(sql.FieldLT(FieldAccount, v))
  436. }
  437. // AccountLTE applies the LTE predicate on the "account" field.
  438. func AccountLTE(v string) predicate.Whatsapp {
  439. return predicate.Whatsapp(sql.FieldLTE(FieldAccount, v))
  440. }
  441. // AccountContains applies the Contains predicate on the "account" field.
  442. func AccountContains(v string) predicate.Whatsapp {
  443. return predicate.Whatsapp(sql.FieldContains(FieldAccount, v))
  444. }
  445. // AccountHasPrefix applies the HasPrefix predicate on the "account" field.
  446. func AccountHasPrefix(v string) predicate.Whatsapp {
  447. return predicate.Whatsapp(sql.FieldHasPrefix(FieldAccount, v))
  448. }
  449. // AccountHasSuffix applies the HasSuffix predicate on the "account" field.
  450. func AccountHasSuffix(v string) predicate.Whatsapp {
  451. return predicate.Whatsapp(sql.FieldHasSuffix(FieldAccount, v))
  452. }
  453. // AccountEqualFold applies the EqualFold predicate on the "account" field.
  454. func AccountEqualFold(v string) predicate.Whatsapp {
  455. return predicate.Whatsapp(sql.FieldEqualFold(FieldAccount, v))
  456. }
  457. // AccountContainsFold applies the ContainsFold predicate on the "account" field.
  458. func AccountContainsFold(v string) predicate.Whatsapp {
  459. return predicate.Whatsapp(sql.FieldContainsFold(FieldAccount, v))
  460. }
  461. // NicknameEQ applies the EQ predicate on the "nickname" field.
  462. func NicknameEQ(v string) predicate.Whatsapp {
  463. return predicate.Whatsapp(sql.FieldEQ(FieldNickname, v))
  464. }
  465. // NicknameNEQ applies the NEQ predicate on the "nickname" field.
  466. func NicknameNEQ(v string) predicate.Whatsapp {
  467. return predicate.Whatsapp(sql.FieldNEQ(FieldNickname, v))
  468. }
  469. // NicknameIn applies the In predicate on the "nickname" field.
  470. func NicknameIn(vs ...string) predicate.Whatsapp {
  471. return predicate.Whatsapp(sql.FieldIn(FieldNickname, vs...))
  472. }
  473. // NicknameNotIn applies the NotIn predicate on the "nickname" field.
  474. func NicknameNotIn(vs ...string) predicate.Whatsapp {
  475. return predicate.Whatsapp(sql.FieldNotIn(FieldNickname, vs...))
  476. }
  477. // NicknameGT applies the GT predicate on the "nickname" field.
  478. func NicknameGT(v string) predicate.Whatsapp {
  479. return predicate.Whatsapp(sql.FieldGT(FieldNickname, v))
  480. }
  481. // NicknameGTE applies the GTE predicate on the "nickname" field.
  482. func NicknameGTE(v string) predicate.Whatsapp {
  483. return predicate.Whatsapp(sql.FieldGTE(FieldNickname, v))
  484. }
  485. // NicknameLT applies the LT predicate on the "nickname" field.
  486. func NicknameLT(v string) predicate.Whatsapp {
  487. return predicate.Whatsapp(sql.FieldLT(FieldNickname, v))
  488. }
  489. // NicknameLTE applies the LTE predicate on the "nickname" field.
  490. func NicknameLTE(v string) predicate.Whatsapp {
  491. return predicate.Whatsapp(sql.FieldLTE(FieldNickname, v))
  492. }
  493. // NicknameContains applies the Contains predicate on the "nickname" field.
  494. func NicknameContains(v string) predicate.Whatsapp {
  495. return predicate.Whatsapp(sql.FieldContains(FieldNickname, v))
  496. }
  497. // NicknameHasPrefix applies the HasPrefix predicate on the "nickname" field.
  498. func NicknameHasPrefix(v string) predicate.Whatsapp {
  499. return predicate.Whatsapp(sql.FieldHasPrefix(FieldNickname, v))
  500. }
  501. // NicknameHasSuffix applies the HasSuffix predicate on the "nickname" field.
  502. func NicknameHasSuffix(v string) predicate.Whatsapp {
  503. return predicate.Whatsapp(sql.FieldHasSuffix(FieldNickname, v))
  504. }
  505. // NicknameEqualFold applies the EqualFold predicate on the "nickname" field.
  506. func NicknameEqualFold(v string) predicate.Whatsapp {
  507. return predicate.Whatsapp(sql.FieldEqualFold(FieldNickname, v))
  508. }
  509. // NicknameContainsFold applies the ContainsFold predicate on the "nickname" field.
  510. func NicknameContainsFold(v string) predicate.Whatsapp {
  511. return predicate.Whatsapp(sql.FieldContainsFold(FieldNickname, v))
  512. }
  513. // PhoneEQ applies the EQ predicate on the "phone" field.
  514. func PhoneEQ(v string) predicate.Whatsapp {
  515. return predicate.Whatsapp(sql.FieldEQ(FieldPhone, v))
  516. }
  517. // PhoneNEQ applies the NEQ predicate on the "phone" field.
  518. func PhoneNEQ(v string) predicate.Whatsapp {
  519. return predicate.Whatsapp(sql.FieldNEQ(FieldPhone, v))
  520. }
  521. // PhoneIn applies the In predicate on the "phone" field.
  522. func PhoneIn(vs ...string) predicate.Whatsapp {
  523. return predicate.Whatsapp(sql.FieldIn(FieldPhone, vs...))
  524. }
  525. // PhoneNotIn applies the NotIn predicate on the "phone" field.
  526. func PhoneNotIn(vs ...string) predicate.Whatsapp {
  527. return predicate.Whatsapp(sql.FieldNotIn(FieldPhone, vs...))
  528. }
  529. // PhoneGT applies the GT predicate on the "phone" field.
  530. func PhoneGT(v string) predicate.Whatsapp {
  531. return predicate.Whatsapp(sql.FieldGT(FieldPhone, v))
  532. }
  533. // PhoneGTE applies the GTE predicate on the "phone" field.
  534. func PhoneGTE(v string) predicate.Whatsapp {
  535. return predicate.Whatsapp(sql.FieldGTE(FieldPhone, v))
  536. }
  537. // PhoneLT applies the LT predicate on the "phone" field.
  538. func PhoneLT(v string) predicate.Whatsapp {
  539. return predicate.Whatsapp(sql.FieldLT(FieldPhone, v))
  540. }
  541. // PhoneLTE applies the LTE predicate on the "phone" field.
  542. func PhoneLTE(v string) predicate.Whatsapp {
  543. return predicate.Whatsapp(sql.FieldLTE(FieldPhone, v))
  544. }
  545. // PhoneContains applies the Contains predicate on the "phone" field.
  546. func PhoneContains(v string) predicate.Whatsapp {
  547. return predicate.Whatsapp(sql.FieldContains(FieldPhone, v))
  548. }
  549. // PhoneHasPrefix applies the HasPrefix predicate on the "phone" field.
  550. func PhoneHasPrefix(v string) predicate.Whatsapp {
  551. return predicate.Whatsapp(sql.FieldHasPrefix(FieldPhone, v))
  552. }
  553. // PhoneHasSuffix applies the HasSuffix predicate on the "phone" field.
  554. func PhoneHasSuffix(v string) predicate.Whatsapp {
  555. return predicate.Whatsapp(sql.FieldHasSuffix(FieldPhone, v))
  556. }
  557. // PhoneEqualFold applies the EqualFold predicate on the "phone" field.
  558. func PhoneEqualFold(v string) predicate.Whatsapp {
  559. return predicate.Whatsapp(sql.FieldEqualFold(FieldPhone, v))
  560. }
  561. // PhoneContainsFold applies the ContainsFold predicate on the "phone" field.
  562. func PhoneContainsFold(v string) predicate.Whatsapp {
  563. return predicate.Whatsapp(sql.FieldContainsFold(FieldPhone, v))
  564. }
  565. // OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
  566. func OrganizationIDEQ(v uint64) predicate.Whatsapp {
  567. return predicate.Whatsapp(sql.FieldEQ(FieldOrganizationID, v))
  568. }
  569. // OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
  570. func OrganizationIDNEQ(v uint64) predicate.Whatsapp {
  571. return predicate.Whatsapp(sql.FieldNEQ(FieldOrganizationID, v))
  572. }
  573. // OrganizationIDIn applies the In predicate on the "organization_id" field.
  574. func OrganizationIDIn(vs ...uint64) predicate.Whatsapp {
  575. return predicate.Whatsapp(sql.FieldIn(FieldOrganizationID, vs...))
  576. }
  577. // OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
  578. func OrganizationIDNotIn(vs ...uint64) predicate.Whatsapp {
  579. return predicate.Whatsapp(sql.FieldNotIn(FieldOrganizationID, vs...))
  580. }
  581. // OrganizationIDGT applies the GT predicate on the "organization_id" field.
  582. func OrganizationIDGT(v uint64) predicate.Whatsapp {
  583. return predicate.Whatsapp(sql.FieldGT(FieldOrganizationID, v))
  584. }
  585. // OrganizationIDGTE applies the GTE predicate on the "organization_id" field.
  586. func OrganizationIDGTE(v uint64) predicate.Whatsapp {
  587. return predicate.Whatsapp(sql.FieldGTE(FieldOrganizationID, v))
  588. }
  589. // OrganizationIDLT applies the LT predicate on the "organization_id" field.
  590. func OrganizationIDLT(v uint64) predicate.Whatsapp {
  591. return predicate.Whatsapp(sql.FieldLT(FieldOrganizationID, v))
  592. }
  593. // OrganizationIDLTE applies the LTE predicate on the "organization_id" field.
  594. func OrganizationIDLTE(v uint64) predicate.Whatsapp {
  595. return predicate.Whatsapp(sql.FieldLTE(FieldOrganizationID, v))
  596. }
  597. // OrganizationIDIsNil applies the IsNil predicate on the "organization_id" field.
  598. func OrganizationIDIsNil() predicate.Whatsapp {
  599. return predicate.Whatsapp(sql.FieldIsNull(FieldOrganizationID))
  600. }
  601. // OrganizationIDNotNil applies the NotNil predicate on the "organization_id" field.
  602. func OrganizationIDNotNil() predicate.Whatsapp {
  603. return predicate.Whatsapp(sql.FieldNotNull(FieldOrganizationID))
  604. }
  605. // AgentIDEQ applies the EQ predicate on the "agent_id" field.
  606. func AgentIDEQ(v uint64) predicate.Whatsapp {
  607. return predicate.Whatsapp(sql.FieldEQ(FieldAgentID, v))
  608. }
  609. // AgentIDNEQ applies the NEQ predicate on the "agent_id" field.
  610. func AgentIDNEQ(v uint64) predicate.Whatsapp {
  611. return predicate.Whatsapp(sql.FieldNEQ(FieldAgentID, v))
  612. }
  613. // AgentIDIn applies the In predicate on the "agent_id" field.
  614. func AgentIDIn(vs ...uint64) predicate.Whatsapp {
  615. return predicate.Whatsapp(sql.FieldIn(FieldAgentID, vs...))
  616. }
  617. // AgentIDNotIn applies the NotIn predicate on the "agent_id" field.
  618. func AgentIDNotIn(vs ...uint64) predicate.Whatsapp {
  619. return predicate.Whatsapp(sql.FieldNotIn(FieldAgentID, vs...))
  620. }
  621. // APIBaseEQ applies the EQ predicate on the "api_base" field.
  622. func APIBaseEQ(v string) predicate.Whatsapp {
  623. return predicate.Whatsapp(sql.FieldEQ(FieldAPIBase, v))
  624. }
  625. // APIBaseNEQ applies the NEQ predicate on the "api_base" field.
  626. func APIBaseNEQ(v string) predicate.Whatsapp {
  627. return predicate.Whatsapp(sql.FieldNEQ(FieldAPIBase, v))
  628. }
  629. // APIBaseIn applies the In predicate on the "api_base" field.
  630. func APIBaseIn(vs ...string) predicate.Whatsapp {
  631. return predicate.Whatsapp(sql.FieldIn(FieldAPIBase, vs...))
  632. }
  633. // APIBaseNotIn applies the NotIn predicate on the "api_base" field.
  634. func APIBaseNotIn(vs ...string) predicate.Whatsapp {
  635. return predicate.Whatsapp(sql.FieldNotIn(FieldAPIBase, vs...))
  636. }
  637. // APIBaseGT applies the GT predicate on the "api_base" field.
  638. func APIBaseGT(v string) predicate.Whatsapp {
  639. return predicate.Whatsapp(sql.FieldGT(FieldAPIBase, v))
  640. }
  641. // APIBaseGTE applies the GTE predicate on the "api_base" field.
  642. func APIBaseGTE(v string) predicate.Whatsapp {
  643. return predicate.Whatsapp(sql.FieldGTE(FieldAPIBase, v))
  644. }
  645. // APIBaseLT applies the LT predicate on the "api_base" field.
  646. func APIBaseLT(v string) predicate.Whatsapp {
  647. return predicate.Whatsapp(sql.FieldLT(FieldAPIBase, v))
  648. }
  649. // APIBaseLTE applies the LTE predicate on the "api_base" field.
  650. func APIBaseLTE(v string) predicate.Whatsapp {
  651. return predicate.Whatsapp(sql.FieldLTE(FieldAPIBase, v))
  652. }
  653. // APIBaseContains applies the Contains predicate on the "api_base" field.
  654. func APIBaseContains(v string) predicate.Whatsapp {
  655. return predicate.Whatsapp(sql.FieldContains(FieldAPIBase, v))
  656. }
  657. // APIBaseHasPrefix applies the HasPrefix predicate on the "api_base" field.
  658. func APIBaseHasPrefix(v string) predicate.Whatsapp {
  659. return predicate.Whatsapp(sql.FieldHasPrefix(FieldAPIBase, v))
  660. }
  661. // APIBaseHasSuffix applies the HasSuffix predicate on the "api_base" field.
  662. func APIBaseHasSuffix(v string) predicate.Whatsapp {
  663. return predicate.Whatsapp(sql.FieldHasSuffix(FieldAPIBase, v))
  664. }
  665. // APIBaseIsNil applies the IsNil predicate on the "api_base" field.
  666. func APIBaseIsNil() predicate.Whatsapp {
  667. return predicate.Whatsapp(sql.FieldIsNull(FieldAPIBase))
  668. }
  669. // APIBaseNotNil applies the NotNil predicate on the "api_base" field.
  670. func APIBaseNotNil() predicate.Whatsapp {
  671. return predicate.Whatsapp(sql.FieldNotNull(FieldAPIBase))
  672. }
  673. // APIBaseEqualFold applies the EqualFold predicate on the "api_base" field.
  674. func APIBaseEqualFold(v string) predicate.Whatsapp {
  675. return predicate.Whatsapp(sql.FieldEqualFold(FieldAPIBase, v))
  676. }
  677. // APIBaseContainsFold applies the ContainsFold predicate on the "api_base" field.
  678. func APIBaseContainsFold(v string) predicate.Whatsapp {
  679. return predicate.Whatsapp(sql.FieldContainsFold(FieldAPIBase, v))
  680. }
  681. // APIKeyEQ applies the EQ predicate on the "api_key" field.
  682. func APIKeyEQ(v string) predicate.Whatsapp {
  683. return predicate.Whatsapp(sql.FieldEQ(FieldAPIKey, v))
  684. }
  685. // APIKeyNEQ applies the NEQ predicate on the "api_key" field.
  686. func APIKeyNEQ(v string) predicate.Whatsapp {
  687. return predicate.Whatsapp(sql.FieldNEQ(FieldAPIKey, v))
  688. }
  689. // APIKeyIn applies the In predicate on the "api_key" field.
  690. func APIKeyIn(vs ...string) predicate.Whatsapp {
  691. return predicate.Whatsapp(sql.FieldIn(FieldAPIKey, vs...))
  692. }
  693. // APIKeyNotIn applies the NotIn predicate on the "api_key" field.
  694. func APIKeyNotIn(vs ...string) predicate.Whatsapp {
  695. return predicate.Whatsapp(sql.FieldNotIn(FieldAPIKey, vs...))
  696. }
  697. // APIKeyGT applies the GT predicate on the "api_key" field.
  698. func APIKeyGT(v string) predicate.Whatsapp {
  699. return predicate.Whatsapp(sql.FieldGT(FieldAPIKey, v))
  700. }
  701. // APIKeyGTE applies the GTE predicate on the "api_key" field.
  702. func APIKeyGTE(v string) predicate.Whatsapp {
  703. return predicate.Whatsapp(sql.FieldGTE(FieldAPIKey, v))
  704. }
  705. // APIKeyLT applies the LT predicate on the "api_key" field.
  706. func APIKeyLT(v string) predicate.Whatsapp {
  707. return predicate.Whatsapp(sql.FieldLT(FieldAPIKey, v))
  708. }
  709. // APIKeyLTE applies the LTE predicate on the "api_key" field.
  710. func APIKeyLTE(v string) predicate.Whatsapp {
  711. return predicate.Whatsapp(sql.FieldLTE(FieldAPIKey, v))
  712. }
  713. // APIKeyContains applies the Contains predicate on the "api_key" field.
  714. func APIKeyContains(v string) predicate.Whatsapp {
  715. return predicate.Whatsapp(sql.FieldContains(FieldAPIKey, v))
  716. }
  717. // APIKeyHasPrefix applies the HasPrefix predicate on the "api_key" field.
  718. func APIKeyHasPrefix(v string) predicate.Whatsapp {
  719. return predicate.Whatsapp(sql.FieldHasPrefix(FieldAPIKey, v))
  720. }
  721. // APIKeyHasSuffix applies the HasSuffix predicate on the "api_key" field.
  722. func APIKeyHasSuffix(v string) predicate.Whatsapp {
  723. return predicate.Whatsapp(sql.FieldHasSuffix(FieldAPIKey, v))
  724. }
  725. // APIKeyIsNil applies the IsNil predicate on the "api_key" field.
  726. func APIKeyIsNil() predicate.Whatsapp {
  727. return predicate.Whatsapp(sql.FieldIsNull(FieldAPIKey))
  728. }
  729. // APIKeyNotNil applies the NotNil predicate on the "api_key" field.
  730. func APIKeyNotNil() predicate.Whatsapp {
  731. return predicate.Whatsapp(sql.FieldNotNull(FieldAPIKey))
  732. }
  733. // APIKeyEqualFold applies the EqualFold predicate on the "api_key" field.
  734. func APIKeyEqualFold(v string) predicate.Whatsapp {
  735. return predicate.Whatsapp(sql.FieldEqualFold(FieldAPIKey, v))
  736. }
  737. // APIKeyContainsFold applies the ContainsFold predicate on the "api_key" field.
  738. func APIKeyContainsFold(v string) predicate.Whatsapp {
  739. return predicate.Whatsapp(sql.FieldContainsFold(FieldAPIKey, v))
  740. }
  741. // AllowListIsNil applies the IsNil predicate on the "allow_list" field.
  742. func AllowListIsNil() predicate.Whatsapp {
  743. return predicate.Whatsapp(sql.FieldIsNull(FieldAllowList))
  744. }
  745. // AllowListNotNil applies the NotNil predicate on the "allow_list" field.
  746. func AllowListNotNil() predicate.Whatsapp {
  747. return predicate.Whatsapp(sql.FieldNotNull(FieldAllowList))
  748. }
  749. // GroupAllowListIsNil applies the IsNil predicate on the "group_allow_list" field.
  750. func GroupAllowListIsNil() predicate.Whatsapp {
  751. return predicate.Whatsapp(sql.FieldIsNull(FieldGroupAllowList))
  752. }
  753. // GroupAllowListNotNil applies the NotNil predicate on the "group_allow_list" field.
  754. func GroupAllowListNotNil() predicate.Whatsapp {
  755. return predicate.Whatsapp(sql.FieldNotNull(FieldGroupAllowList))
  756. }
  757. // BlockListIsNil applies the IsNil predicate on the "block_list" field.
  758. func BlockListIsNil() predicate.Whatsapp {
  759. return predicate.Whatsapp(sql.FieldIsNull(FieldBlockList))
  760. }
  761. // BlockListNotNil applies the NotNil predicate on the "block_list" field.
  762. func BlockListNotNil() predicate.Whatsapp {
  763. return predicate.Whatsapp(sql.FieldNotNull(FieldBlockList))
  764. }
  765. // GroupBlockListIsNil applies the IsNil predicate on the "group_block_list" field.
  766. func GroupBlockListIsNil() predicate.Whatsapp {
  767. return predicate.Whatsapp(sql.FieldIsNull(FieldGroupBlockList))
  768. }
  769. // GroupBlockListNotNil applies the NotNil predicate on the "group_block_list" field.
  770. func GroupBlockListNotNil() predicate.Whatsapp {
  771. return predicate.Whatsapp(sql.FieldNotNull(FieldGroupBlockList))
  772. }
  773. // HasAgent applies the HasEdge predicate on the "agent" edge.
  774. func HasAgent() predicate.Whatsapp {
  775. return predicate.Whatsapp(func(s *sql.Selector) {
  776. step := sqlgraph.NewStep(
  777. sqlgraph.From(Table, FieldID),
  778. sqlgraph.Edge(sqlgraph.M2O, true, AgentTable, AgentColumn),
  779. )
  780. sqlgraph.HasNeighbors(s, step)
  781. })
  782. }
  783. // HasAgentWith applies the HasEdge predicate on the "agent" edge with a given conditions (other predicates).
  784. func HasAgentWith(preds ...predicate.Agent) predicate.Whatsapp {
  785. return predicate.Whatsapp(func(s *sql.Selector) {
  786. step := newAgentStep()
  787. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  788. for _, p := range preds {
  789. p(s)
  790. }
  791. })
  792. })
  793. }
  794. // And groups predicates with the AND operator between them.
  795. func And(predicates ...predicate.Whatsapp) predicate.Whatsapp {
  796. return predicate.Whatsapp(sql.AndPredicates(predicates...))
  797. }
  798. // Or groups predicates with the OR operator between them.
  799. func Or(predicates ...predicate.Whatsapp) predicate.Whatsapp {
  800. return predicate.Whatsapp(sql.OrPredicates(predicates...))
  801. }
  802. // Not applies the not operator on the given predicate.
  803. func Not(p predicate.Whatsapp) predicate.Whatsapp {
  804. return predicate.Whatsapp(sql.NotPredicates(p))
  805. }