where.go 43 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219
  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. // WaID applies equality check predicate on the "wa_id" field. It's identical to WaIDEQ.
  62. func WaID(v string) predicate.Whatsapp {
  63. return predicate.Whatsapp(sql.FieldEQ(FieldWaID, v))
  64. }
  65. // WaName applies equality check predicate on the "wa_name" field. It's identical to WaNameEQ.
  66. func WaName(v string) predicate.Whatsapp {
  67. return predicate.Whatsapp(sql.FieldEQ(FieldWaName, 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. // AgentID applies equality check predicate on the "agent_id" field. It's identical to AgentIDEQ.
  74. func AgentID(v uint64) predicate.Whatsapp {
  75. return predicate.Whatsapp(sql.FieldEQ(FieldAgentID, v))
  76. }
  77. // Account applies equality check predicate on the "account" field. It's identical to AccountEQ.
  78. func Account(v string) predicate.Whatsapp {
  79. return predicate.Whatsapp(sql.FieldEQ(FieldAccount, v))
  80. }
  81. // Cc applies equality check predicate on the "cc" field. It's identical to CcEQ.
  82. func Cc(v string) predicate.Whatsapp {
  83. return predicate.Whatsapp(sql.FieldEQ(FieldCc, v))
  84. }
  85. // Phone applies equality check predicate on the "phone" field. It's identical to PhoneEQ.
  86. func Phone(v string) predicate.Whatsapp {
  87. return predicate.Whatsapp(sql.FieldEQ(FieldPhone, v))
  88. }
  89. // CcPhone applies equality check predicate on the "cc_phone" field. It's identical to CcPhoneEQ.
  90. func CcPhone(v string) predicate.Whatsapp {
  91. return predicate.Whatsapp(sql.FieldEQ(FieldCcPhone, v))
  92. }
  93. // PhoneName applies equality check predicate on the "phone_name" field. It's identical to PhoneNameEQ.
  94. func PhoneName(v string) predicate.Whatsapp {
  95. return predicate.Whatsapp(sql.FieldEQ(FieldPhoneName, v))
  96. }
  97. // PhoneStatus applies equality check predicate on the "phone_status" field. It's identical to PhoneStatusEQ.
  98. func PhoneStatus(v int8) predicate.Whatsapp {
  99. return predicate.Whatsapp(sql.FieldEQ(FieldPhoneStatus, v))
  100. }
  101. // OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
  102. func OrganizationID(v uint64) predicate.Whatsapp {
  103. return predicate.Whatsapp(sql.FieldEQ(FieldOrganizationID, v))
  104. }
  105. // APIBase applies equality check predicate on the "api_base" field. It's identical to APIBaseEQ.
  106. func APIBase(v string) predicate.Whatsapp {
  107. return predicate.Whatsapp(sql.FieldEQ(FieldAPIBase, v))
  108. }
  109. // APIKey applies equality check predicate on the "api_key" field. It's identical to APIKeyEQ.
  110. func APIKey(v string) predicate.Whatsapp {
  111. return predicate.Whatsapp(sql.FieldEQ(FieldAPIKey, v))
  112. }
  113. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  114. func CreatedAtEQ(v time.Time) predicate.Whatsapp {
  115. return predicate.Whatsapp(sql.FieldEQ(FieldCreatedAt, v))
  116. }
  117. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  118. func CreatedAtNEQ(v time.Time) predicate.Whatsapp {
  119. return predicate.Whatsapp(sql.FieldNEQ(FieldCreatedAt, v))
  120. }
  121. // CreatedAtIn applies the In predicate on the "created_at" field.
  122. func CreatedAtIn(vs ...time.Time) predicate.Whatsapp {
  123. return predicate.Whatsapp(sql.FieldIn(FieldCreatedAt, vs...))
  124. }
  125. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  126. func CreatedAtNotIn(vs ...time.Time) predicate.Whatsapp {
  127. return predicate.Whatsapp(sql.FieldNotIn(FieldCreatedAt, vs...))
  128. }
  129. // CreatedAtGT applies the GT predicate on the "created_at" field.
  130. func CreatedAtGT(v time.Time) predicate.Whatsapp {
  131. return predicate.Whatsapp(sql.FieldGT(FieldCreatedAt, v))
  132. }
  133. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  134. func CreatedAtGTE(v time.Time) predicate.Whatsapp {
  135. return predicate.Whatsapp(sql.FieldGTE(FieldCreatedAt, v))
  136. }
  137. // CreatedAtLT applies the LT predicate on the "created_at" field.
  138. func CreatedAtLT(v time.Time) predicate.Whatsapp {
  139. return predicate.Whatsapp(sql.FieldLT(FieldCreatedAt, v))
  140. }
  141. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  142. func CreatedAtLTE(v time.Time) predicate.Whatsapp {
  143. return predicate.Whatsapp(sql.FieldLTE(FieldCreatedAt, v))
  144. }
  145. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  146. func UpdatedAtEQ(v time.Time) predicate.Whatsapp {
  147. return predicate.Whatsapp(sql.FieldEQ(FieldUpdatedAt, v))
  148. }
  149. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  150. func UpdatedAtNEQ(v time.Time) predicate.Whatsapp {
  151. return predicate.Whatsapp(sql.FieldNEQ(FieldUpdatedAt, v))
  152. }
  153. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  154. func UpdatedAtIn(vs ...time.Time) predicate.Whatsapp {
  155. return predicate.Whatsapp(sql.FieldIn(FieldUpdatedAt, vs...))
  156. }
  157. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  158. func UpdatedAtNotIn(vs ...time.Time) predicate.Whatsapp {
  159. return predicate.Whatsapp(sql.FieldNotIn(FieldUpdatedAt, vs...))
  160. }
  161. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  162. func UpdatedAtGT(v time.Time) predicate.Whatsapp {
  163. return predicate.Whatsapp(sql.FieldGT(FieldUpdatedAt, v))
  164. }
  165. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  166. func UpdatedAtGTE(v time.Time) predicate.Whatsapp {
  167. return predicate.Whatsapp(sql.FieldGTE(FieldUpdatedAt, v))
  168. }
  169. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  170. func UpdatedAtLT(v time.Time) predicate.Whatsapp {
  171. return predicate.Whatsapp(sql.FieldLT(FieldUpdatedAt, v))
  172. }
  173. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  174. func UpdatedAtLTE(v time.Time) predicate.Whatsapp {
  175. return predicate.Whatsapp(sql.FieldLTE(FieldUpdatedAt, v))
  176. }
  177. // StatusEQ applies the EQ predicate on the "status" field.
  178. func StatusEQ(v uint8) predicate.Whatsapp {
  179. return predicate.Whatsapp(sql.FieldEQ(FieldStatus, v))
  180. }
  181. // StatusNEQ applies the NEQ predicate on the "status" field.
  182. func StatusNEQ(v uint8) predicate.Whatsapp {
  183. return predicate.Whatsapp(sql.FieldNEQ(FieldStatus, v))
  184. }
  185. // StatusIn applies the In predicate on the "status" field.
  186. func StatusIn(vs ...uint8) predicate.Whatsapp {
  187. return predicate.Whatsapp(sql.FieldIn(FieldStatus, vs...))
  188. }
  189. // StatusNotIn applies the NotIn predicate on the "status" field.
  190. func StatusNotIn(vs ...uint8) predicate.Whatsapp {
  191. return predicate.Whatsapp(sql.FieldNotIn(FieldStatus, vs...))
  192. }
  193. // StatusGT applies the GT predicate on the "status" field.
  194. func StatusGT(v uint8) predicate.Whatsapp {
  195. return predicate.Whatsapp(sql.FieldGT(FieldStatus, v))
  196. }
  197. // StatusGTE applies the GTE predicate on the "status" field.
  198. func StatusGTE(v uint8) predicate.Whatsapp {
  199. return predicate.Whatsapp(sql.FieldGTE(FieldStatus, v))
  200. }
  201. // StatusLT applies the LT predicate on the "status" field.
  202. func StatusLT(v uint8) predicate.Whatsapp {
  203. return predicate.Whatsapp(sql.FieldLT(FieldStatus, v))
  204. }
  205. // StatusLTE applies the LTE predicate on the "status" field.
  206. func StatusLTE(v uint8) predicate.Whatsapp {
  207. return predicate.Whatsapp(sql.FieldLTE(FieldStatus, v))
  208. }
  209. // StatusIsNil applies the IsNil predicate on the "status" field.
  210. func StatusIsNil() predicate.Whatsapp {
  211. return predicate.Whatsapp(sql.FieldIsNull(FieldStatus))
  212. }
  213. // StatusNotNil applies the NotNil predicate on the "status" field.
  214. func StatusNotNil() predicate.Whatsapp {
  215. return predicate.Whatsapp(sql.FieldNotNull(FieldStatus))
  216. }
  217. // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
  218. func DeletedAtEQ(v time.Time) predicate.Whatsapp {
  219. return predicate.Whatsapp(sql.FieldEQ(FieldDeletedAt, v))
  220. }
  221. // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
  222. func DeletedAtNEQ(v time.Time) predicate.Whatsapp {
  223. return predicate.Whatsapp(sql.FieldNEQ(FieldDeletedAt, v))
  224. }
  225. // DeletedAtIn applies the In predicate on the "deleted_at" field.
  226. func DeletedAtIn(vs ...time.Time) predicate.Whatsapp {
  227. return predicate.Whatsapp(sql.FieldIn(FieldDeletedAt, vs...))
  228. }
  229. // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
  230. func DeletedAtNotIn(vs ...time.Time) predicate.Whatsapp {
  231. return predicate.Whatsapp(sql.FieldNotIn(FieldDeletedAt, vs...))
  232. }
  233. // DeletedAtGT applies the GT predicate on the "deleted_at" field.
  234. func DeletedAtGT(v time.Time) predicate.Whatsapp {
  235. return predicate.Whatsapp(sql.FieldGT(FieldDeletedAt, v))
  236. }
  237. // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
  238. func DeletedAtGTE(v time.Time) predicate.Whatsapp {
  239. return predicate.Whatsapp(sql.FieldGTE(FieldDeletedAt, v))
  240. }
  241. // DeletedAtLT applies the LT predicate on the "deleted_at" field.
  242. func DeletedAtLT(v time.Time) predicate.Whatsapp {
  243. return predicate.Whatsapp(sql.FieldLT(FieldDeletedAt, v))
  244. }
  245. // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
  246. func DeletedAtLTE(v time.Time) predicate.Whatsapp {
  247. return predicate.Whatsapp(sql.FieldLTE(FieldDeletedAt, v))
  248. }
  249. // DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
  250. func DeletedAtIsNil() predicate.Whatsapp {
  251. return predicate.Whatsapp(sql.FieldIsNull(FieldDeletedAt))
  252. }
  253. // DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
  254. func DeletedAtNotNil() predicate.Whatsapp {
  255. return predicate.Whatsapp(sql.FieldNotNull(FieldDeletedAt))
  256. }
  257. // WaIDEQ applies the EQ predicate on the "wa_id" field.
  258. func WaIDEQ(v string) predicate.Whatsapp {
  259. return predicate.Whatsapp(sql.FieldEQ(FieldWaID, v))
  260. }
  261. // WaIDNEQ applies the NEQ predicate on the "wa_id" field.
  262. func WaIDNEQ(v string) predicate.Whatsapp {
  263. return predicate.Whatsapp(sql.FieldNEQ(FieldWaID, v))
  264. }
  265. // WaIDIn applies the In predicate on the "wa_id" field.
  266. func WaIDIn(vs ...string) predicate.Whatsapp {
  267. return predicate.Whatsapp(sql.FieldIn(FieldWaID, vs...))
  268. }
  269. // WaIDNotIn applies the NotIn predicate on the "wa_id" field.
  270. func WaIDNotIn(vs ...string) predicate.Whatsapp {
  271. return predicate.Whatsapp(sql.FieldNotIn(FieldWaID, vs...))
  272. }
  273. // WaIDGT applies the GT predicate on the "wa_id" field.
  274. func WaIDGT(v string) predicate.Whatsapp {
  275. return predicate.Whatsapp(sql.FieldGT(FieldWaID, v))
  276. }
  277. // WaIDGTE applies the GTE predicate on the "wa_id" field.
  278. func WaIDGTE(v string) predicate.Whatsapp {
  279. return predicate.Whatsapp(sql.FieldGTE(FieldWaID, v))
  280. }
  281. // WaIDLT applies the LT predicate on the "wa_id" field.
  282. func WaIDLT(v string) predicate.Whatsapp {
  283. return predicate.Whatsapp(sql.FieldLT(FieldWaID, v))
  284. }
  285. // WaIDLTE applies the LTE predicate on the "wa_id" field.
  286. func WaIDLTE(v string) predicate.Whatsapp {
  287. return predicate.Whatsapp(sql.FieldLTE(FieldWaID, v))
  288. }
  289. // WaIDContains applies the Contains predicate on the "wa_id" field.
  290. func WaIDContains(v string) predicate.Whatsapp {
  291. return predicate.Whatsapp(sql.FieldContains(FieldWaID, v))
  292. }
  293. // WaIDHasPrefix applies the HasPrefix predicate on the "wa_id" field.
  294. func WaIDHasPrefix(v string) predicate.Whatsapp {
  295. return predicate.Whatsapp(sql.FieldHasPrefix(FieldWaID, v))
  296. }
  297. // WaIDHasSuffix applies the HasSuffix predicate on the "wa_id" field.
  298. func WaIDHasSuffix(v string) predicate.Whatsapp {
  299. return predicate.Whatsapp(sql.FieldHasSuffix(FieldWaID, v))
  300. }
  301. // WaIDIsNil applies the IsNil predicate on the "wa_id" field.
  302. func WaIDIsNil() predicate.Whatsapp {
  303. return predicate.Whatsapp(sql.FieldIsNull(FieldWaID))
  304. }
  305. // WaIDNotNil applies the NotNil predicate on the "wa_id" field.
  306. func WaIDNotNil() predicate.Whatsapp {
  307. return predicate.Whatsapp(sql.FieldNotNull(FieldWaID))
  308. }
  309. // WaIDEqualFold applies the EqualFold predicate on the "wa_id" field.
  310. func WaIDEqualFold(v string) predicate.Whatsapp {
  311. return predicate.Whatsapp(sql.FieldEqualFold(FieldWaID, v))
  312. }
  313. // WaIDContainsFold applies the ContainsFold predicate on the "wa_id" field.
  314. func WaIDContainsFold(v string) predicate.Whatsapp {
  315. return predicate.Whatsapp(sql.FieldContainsFold(FieldWaID, v))
  316. }
  317. // WaNameEQ applies the EQ predicate on the "wa_name" field.
  318. func WaNameEQ(v string) predicate.Whatsapp {
  319. return predicate.Whatsapp(sql.FieldEQ(FieldWaName, v))
  320. }
  321. // WaNameNEQ applies the NEQ predicate on the "wa_name" field.
  322. func WaNameNEQ(v string) predicate.Whatsapp {
  323. return predicate.Whatsapp(sql.FieldNEQ(FieldWaName, v))
  324. }
  325. // WaNameIn applies the In predicate on the "wa_name" field.
  326. func WaNameIn(vs ...string) predicate.Whatsapp {
  327. return predicate.Whatsapp(sql.FieldIn(FieldWaName, vs...))
  328. }
  329. // WaNameNotIn applies the NotIn predicate on the "wa_name" field.
  330. func WaNameNotIn(vs ...string) predicate.Whatsapp {
  331. return predicate.Whatsapp(sql.FieldNotIn(FieldWaName, vs...))
  332. }
  333. // WaNameGT applies the GT predicate on the "wa_name" field.
  334. func WaNameGT(v string) predicate.Whatsapp {
  335. return predicate.Whatsapp(sql.FieldGT(FieldWaName, v))
  336. }
  337. // WaNameGTE applies the GTE predicate on the "wa_name" field.
  338. func WaNameGTE(v string) predicate.Whatsapp {
  339. return predicate.Whatsapp(sql.FieldGTE(FieldWaName, v))
  340. }
  341. // WaNameLT applies the LT predicate on the "wa_name" field.
  342. func WaNameLT(v string) predicate.Whatsapp {
  343. return predicate.Whatsapp(sql.FieldLT(FieldWaName, v))
  344. }
  345. // WaNameLTE applies the LTE predicate on the "wa_name" field.
  346. func WaNameLTE(v string) predicate.Whatsapp {
  347. return predicate.Whatsapp(sql.FieldLTE(FieldWaName, v))
  348. }
  349. // WaNameContains applies the Contains predicate on the "wa_name" field.
  350. func WaNameContains(v string) predicate.Whatsapp {
  351. return predicate.Whatsapp(sql.FieldContains(FieldWaName, v))
  352. }
  353. // WaNameHasPrefix applies the HasPrefix predicate on the "wa_name" field.
  354. func WaNameHasPrefix(v string) predicate.Whatsapp {
  355. return predicate.Whatsapp(sql.FieldHasPrefix(FieldWaName, v))
  356. }
  357. // WaNameHasSuffix applies the HasSuffix predicate on the "wa_name" field.
  358. func WaNameHasSuffix(v string) predicate.Whatsapp {
  359. return predicate.Whatsapp(sql.FieldHasSuffix(FieldWaName, v))
  360. }
  361. // WaNameIsNil applies the IsNil predicate on the "wa_name" field.
  362. func WaNameIsNil() predicate.Whatsapp {
  363. return predicate.Whatsapp(sql.FieldIsNull(FieldWaName))
  364. }
  365. // WaNameNotNil applies the NotNil predicate on the "wa_name" field.
  366. func WaNameNotNil() predicate.Whatsapp {
  367. return predicate.Whatsapp(sql.FieldNotNull(FieldWaName))
  368. }
  369. // WaNameEqualFold applies the EqualFold predicate on the "wa_name" field.
  370. func WaNameEqualFold(v string) predicate.Whatsapp {
  371. return predicate.Whatsapp(sql.FieldEqualFold(FieldWaName, v))
  372. }
  373. // WaNameContainsFold applies the ContainsFold predicate on the "wa_name" field.
  374. func WaNameContainsFold(v string) predicate.Whatsapp {
  375. return predicate.Whatsapp(sql.FieldContainsFold(FieldWaName, v))
  376. }
  377. // CallbackEQ applies the EQ predicate on the "callback" field.
  378. func CallbackEQ(v string) predicate.Whatsapp {
  379. return predicate.Whatsapp(sql.FieldEQ(FieldCallback, v))
  380. }
  381. // CallbackNEQ applies the NEQ predicate on the "callback" field.
  382. func CallbackNEQ(v string) predicate.Whatsapp {
  383. return predicate.Whatsapp(sql.FieldNEQ(FieldCallback, v))
  384. }
  385. // CallbackIn applies the In predicate on the "callback" field.
  386. func CallbackIn(vs ...string) predicate.Whatsapp {
  387. return predicate.Whatsapp(sql.FieldIn(FieldCallback, vs...))
  388. }
  389. // CallbackNotIn applies the NotIn predicate on the "callback" field.
  390. func CallbackNotIn(vs ...string) predicate.Whatsapp {
  391. return predicate.Whatsapp(sql.FieldNotIn(FieldCallback, vs...))
  392. }
  393. // CallbackGT applies the GT predicate on the "callback" field.
  394. func CallbackGT(v string) predicate.Whatsapp {
  395. return predicate.Whatsapp(sql.FieldGT(FieldCallback, v))
  396. }
  397. // CallbackGTE applies the GTE predicate on the "callback" field.
  398. func CallbackGTE(v string) predicate.Whatsapp {
  399. return predicate.Whatsapp(sql.FieldGTE(FieldCallback, v))
  400. }
  401. // CallbackLT applies the LT predicate on the "callback" field.
  402. func CallbackLT(v string) predicate.Whatsapp {
  403. return predicate.Whatsapp(sql.FieldLT(FieldCallback, v))
  404. }
  405. // CallbackLTE applies the LTE predicate on the "callback" field.
  406. func CallbackLTE(v string) predicate.Whatsapp {
  407. return predicate.Whatsapp(sql.FieldLTE(FieldCallback, v))
  408. }
  409. // CallbackContains applies the Contains predicate on the "callback" field.
  410. func CallbackContains(v string) predicate.Whatsapp {
  411. return predicate.Whatsapp(sql.FieldContains(FieldCallback, v))
  412. }
  413. // CallbackHasPrefix applies the HasPrefix predicate on the "callback" field.
  414. func CallbackHasPrefix(v string) predicate.Whatsapp {
  415. return predicate.Whatsapp(sql.FieldHasPrefix(FieldCallback, v))
  416. }
  417. // CallbackHasSuffix applies the HasSuffix predicate on the "callback" field.
  418. func CallbackHasSuffix(v string) predicate.Whatsapp {
  419. return predicate.Whatsapp(sql.FieldHasSuffix(FieldCallback, v))
  420. }
  421. // CallbackIsNil applies the IsNil predicate on the "callback" field.
  422. func CallbackIsNil() predicate.Whatsapp {
  423. return predicate.Whatsapp(sql.FieldIsNull(FieldCallback))
  424. }
  425. // CallbackNotNil applies the NotNil predicate on the "callback" field.
  426. func CallbackNotNil() predicate.Whatsapp {
  427. return predicate.Whatsapp(sql.FieldNotNull(FieldCallback))
  428. }
  429. // CallbackEqualFold applies the EqualFold predicate on the "callback" field.
  430. func CallbackEqualFold(v string) predicate.Whatsapp {
  431. return predicate.Whatsapp(sql.FieldEqualFold(FieldCallback, v))
  432. }
  433. // CallbackContainsFold applies the ContainsFold predicate on the "callback" field.
  434. func CallbackContainsFold(v string) predicate.Whatsapp {
  435. return predicate.Whatsapp(sql.FieldContainsFold(FieldCallback, v))
  436. }
  437. // AgentIDEQ applies the EQ predicate on the "agent_id" field.
  438. func AgentIDEQ(v uint64) predicate.Whatsapp {
  439. return predicate.Whatsapp(sql.FieldEQ(FieldAgentID, v))
  440. }
  441. // AgentIDNEQ applies the NEQ predicate on the "agent_id" field.
  442. func AgentIDNEQ(v uint64) predicate.Whatsapp {
  443. return predicate.Whatsapp(sql.FieldNEQ(FieldAgentID, v))
  444. }
  445. // AgentIDIn applies the In predicate on the "agent_id" field.
  446. func AgentIDIn(vs ...uint64) predicate.Whatsapp {
  447. return predicate.Whatsapp(sql.FieldIn(FieldAgentID, vs...))
  448. }
  449. // AgentIDNotIn applies the NotIn predicate on the "agent_id" field.
  450. func AgentIDNotIn(vs ...uint64) predicate.Whatsapp {
  451. return predicate.Whatsapp(sql.FieldNotIn(FieldAgentID, vs...))
  452. }
  453. // AccountEQ applies the EQ predicate on the "account" field.
  454. func AccountEQ(v string) predicate.Whatsapp {
  455. return predicate.Whatsapp(sql.FieldEQ(FieldAccount, v))
  456. }
  457. // AccountNEQ applies the NEQ predicate on the "account" field.
  458. func AccountNEQ(v string) predicate.Whatsapp {
  459. return predicate.Whatsapp(sql.FieldNEQ(FieldAccount, v))
  460. }
  461. // AccountIn applies the In predicate on the "account" field.
  462. func AccountIn(vs ...string) predicate.Whatsapp {
  463. return predicate.Whatsapp(sql.FieldIn(FieldAccount, vs...))
  464. }
  465. // AccountNotIn applies the NotIn predicate on the "account" field.
  466. func AccountNotIn(vs ...string) predicate.Whatsapp {
  467. return predicate.Whatsapp(sql.FieldNotIn(FieldAccount, vs...))
  468. }
  469. // AccountGT applies the GT predicate on the "account" field.
  470. func AccountGT(v string) predicate.Whatsapp {
  471. return predicate.Whatsapp(sql.FieldGT(FieldAccount, v))
  472. }
  473. // AccountGTE applies the GTE predicate on the "account" field.
  474. func AccountGTE(v string) predicate.Whatsapp {
  475. return predicate.Whatsapp(sql.FieldGTE(FieldAccount, v))
  476. }
  477. // AccountLT applies the LT predicate on the "account" field.
  478. func AccountLT(v string) predicate.Whatsapp {
  479. return predicate.Whatsapp(sql.FieldLT(FieldAccount, v))
  480. }
  481. // AccountLTE applies the LTE predicate on the "account" field.
  482. func AccountLTE(v string) predicate.Whatsapp {
  483. return predicate.Whatsapp(sql.FieldLTE(FieldAccount, v))
  484. }
  485. // AccountContains applies the Contains predicate on the "account" field.
  486. func AccountContains(v string) predicate.Whatsapp {
  487. return predicate.Whatsapp(sql.FieldContains(FieldAccount, v))
  488. }
  489. // AccountHasPrefix applies the HasPrefix predicate on the "account" field.
  490. func AccountHasPrefix(v string) predicate.Whatsapp {
  491. return predicate.Whatsapp(sql.FieldHasPrefix(FieldAccount, v))
  492. }
  493. // AccountHasSuffix applies the HasSuffix predicate on the "account" field.
  494. func AccountHasSuffix(v string) predicate.Whatsapp {
  495. return predicate.Whatsapp(sql.FieldHasSuffix(FieldAccount, v))
  496. }
  497. // AccountIsNil applies the IsNil predicate on the "account" field.
  498. func AccountIsNil() predicate.Whatsapp {
  499. return predicate.Whatsapp(sql.FieldIsNull(FieldAccount))
  500. }
  501. // AccountNotNil applies the NotNil predicate on the "account" field.
  502. func AccountNotNil() predicate.Whatsapp {
  503. return predicate.Whatsapp(sql.FieldNotNull(FieldAccount))
  504. }
  505. // AccountEqualFold applies the EqualFold predicate on the "account" field.
  506. func AccountEqualFold(v string) predicate.Whatsapp {
  507. return predicate.Whatsapp(sql.FieldEqualFold(FieldAccount, v))
  508. }
  509. // AccountContainsFold applies the ContainsFold predicate on the "account" field.
  510. func AccountContainsFold(v string) predicate.Whatsapp {
  511. return predicate.Whatsapp(sql.FieldContainsFold(FieldAccount, v))
  512. }
  513. // CcEQ applies the EQ predicate on the "cc" field.
  514. func CcEQ(v string) predicate.Whatsapp {
  515. return predicate.Whatsapp(sql.FieldEQ(FieldCc, v))
  516. }
  517. // CcNEQ applies the NEQ predicate on the "cc" field.
  518. func CcNEQ(v string) predicate.Whatsapp {
  519. return predicate.Whatsapp(sql.FieldNEQ(FieldCc, v))
  520. }
  521. // CcIn applies the In predicate on the "cc" field.
  522. func CcIn(vs ...string) predicate.Whatsapp {
  523. return predicate.Whatsapp(sql.FieldIn(FieldCc, vs...))
  524. }
  525. // CcNotIn applies the NotIn predicate on the "cc" field.
  526. func CcNotIn(vs ...string) predicate.Whatsapp {
  527. return predicate.Whatsapp(sql.FieldNotIn(FieldCc, vs...))
  528. }
  529. // CcGT applies the GT predicate on the "cc" field.
  530. func CcGT(v string) predicate.Whatsapp {
  531. return predicate.Whatsapp(sql.FieldGT(FieldCc, v))
  532. }
  533. // CcGTE applies the GTE predicate on the "cc" field.
  534. func CcGTE(v string) predicate.Whatsapp {
  535. return predicate.Whatsapp(sql.FieldGTE(FieldCc, v))
  536. }
  537. // CcLT applies the LT predicate on the "cc" field.
  538. func CcLT(v string) predicate.Whatsapp {
  539. return predicate.Whatsapp(sql.FieldLT(FieldCc, v))
  540. }
  541. // CcLTE applies the LTE predicate on the "cc" field.
  542. func CcLTE(v string) predicate.Whatsapp {
  543. return predicate.Whatsapp(sql.FieldLTE(FieldCc, v))
  544. }
  545. // CcContains applies the Contains predicate on the "cc" field.
  546. func CcContains(v string) predicate.Whatsapp {
  547. return predicate.Whatsapp(sql.FieldContains(FieldCc, v))
  548. }
  549. // CcHasPrefix applies the HasPrefix predicate on the "cc" field.
  550. func CcHasPrefix(v string) predicate.Whatsapp {
  551. return predicate.Whatsapp(sql.FieldHasPrefix(FieldCc, v))
  552. }
  553. // CcHasSuffix applies the HasSuffix predicate on the "cc" field.
  554. func CcHasSuffix(v string) predicate.Whatsapp {
  555. return predicate.Whatsapp(sql.FieldHasSuffix(FieldCc, v))
  556. }
  557. // CcEqualFold applies the EqualFold predicate on the "cc" field.
  558. func CcEqualFold(v string) predicate.Whatsapp {
  559. return predicate.Whatsapp(sql.FieldEqualFold(FieldCc, v))
  560. }
  561. // CcContainsFold applies the ContainsFold predicate on the "cc" field.
  562. func CcContainsFold(v string) predicate.Whatsapp {
  563. return predicate.Whatsapp(sql.FieldContainsFold(FieldCc, v))
  564. }
  565. // PhoneEQ applies the EQ predicate on the "phone" field.
  566. func PhoneEQ(v string) predicate.Whatsapp {
  567. return predicate.Whatsapp(sql.FieldEQ(FieldPhone, v))
  568. }
  569. // PhoneNEQ applies the NEQ predicate on the "phone" field.
  570. func PhoneNEQ(v string) predicate.Whatsapp {
  571. return predicate.Whatsapp(sql.FieldNEQ(FieldPhone, v))
  572. }
  573. // PhoneIn applies the In predicate on the "phone" field.
  574. func PhoneIn(vs ...string) predicate.Whatsapp {
  575. return predicate.Whatsapp(sql.FieldIn(FieldPhone, vs...))
  576. }
  577. // PhoneNotIn applies the NotIn predicate on the "phone" field.
  578. func PhoneNotIn(vs ...string) predicate.Whatsapp {
  579. return predicate.Whatsapp(sql.FieldNotIn(FieldPhone, vs...))
  580. }
  581. // PhoneGT applies the GT predicate on the "phone" field.
  582. func PhoneGT(v string) predicate.Whatsapp {
  583. return predicate.Whatsapp(sql.FieldGT(FieldPhone, v))
  584. }
  585. // PhoneGTE applies the GTE predicate on the "phone" field.
  586. func PhoneGTE(v string) predicate.Whatsapp {
  587. return predicate.Whatsapp(sql.FieldGTE(FieldPhone, v))
  588. }
  589. // PhoneLT applies the LT predicate on the "phone" field.
  590. func PhoneLT(v string) predicate.Whatsapp {
  591. return predicate.Whatsapp(sql.FieldLT(FieldPhone, v))
  592. }
  593. // PhoneLTE applies the LTE predicate on the "phone" field.
  594. func PhoneLTE(v string) predicate.Whatsapp {
  595. return predicate.Whatsapp(sql.FieldLTE(FieldPhone, v))
  596. }
  597. // PhoneContains applies the Contains predicate on the "phone" field.
  598. func PhoneContains(v string) predicate.Whatsapp {
  599. return predicate.Whatsapp(sql.FieldContains(FieldPhone, v))
  600. }
  601. // PhoneHasPrefix applies the HasPrefix predicate on the "phone" field.
  602. func PhoneHasPrefix(v string) predicate.Whatsapp {
  603. return predicate.Whatsapp(sql.FieldHasPrefix(FieldPhone, v))
  604. }
  605. // PhoneHasSuffix applies the HasSuffix predicate on the "phone" field.
  606. func PhoneHasSuffix(v string) predicate.Whatsapp {
  607. return predicate.Whatsapp(sql.FieldHasSuffix(FieldPhone, v))
  608. }
  609. // PhoneEqualFold applies the EqualFold predicate on the "phone" field.
  610. func PhoneEqualFold(v string) predicate.Whatsapp {
  611. return predicate.Whatsapp(sql.FieldEqualFold(FieldPhone, v))
  612. }
  613. // PhoneContainsFold applies the ContainsFold predicate on the "phone" field.
  614. func PhoneContainsFold(v string) predicate.Whatsapp {
  615. return predicate.Whatsapp(sql.FieldContainsFold(FieldPhone, v))
  616. }
  617. // CcPhoneEQ applies the EQ predicate on the "cc_phone" field.
  618. func CcPhoneEQ(v string) predicate.Whatsapp {
  619. return predicate.Whatsapp(sql.FieldEQ(FieldCcPhone, v))
  620. }
  621. // CcPhoneNEQ applies the NEQ predicate on the "cc_phone" field.
  622. func CcPhoneNEQ(v string) predicate.Whatsapp {
  623. return predicate.Whatsapp(sql.FieldNEQ(FieldCcPhone, v))
  624. }
  625. // CcPhoneIn applies the In predicate on the "cc_phone" field.
  626. func CcPhoneIn(vs ...string) predicate.Whatsapp {
  627. return predicate.Whatsapp(sql.FieldIn(FieldCcPhone, vs...))
  628. }
  629. // CcPhoneNotIn applies the NotIn predicate on the "cc_phone" field.
  630. func CcPhoneNotIn(vs ...string) predicate.Whatsapp {
  631. return predicate.Whatsapp(sql.FieldNotIn(FieldCcPhone, vs...))
  632. }
  633. // CcPhoneGT applies the GT predicate on the "cc_phone" field.
  634. func CcPhoneGT(v string) predicate.Whatsapp {
  635. return predicate.Whatsapp(sql.FieldGT(FieldCcPhone, v))
  636. }
  637. // CcPhoneGTE applies the GTE predicate on the "cc_phone" field.
  638. func CcPhoneGTE(v string) predicate.Whatsapp {
  639. return predicate.Whatsapp(sql.FieldGTE(FieldCcPhone, v))
  640. }
  641. // CcPhoneLT applies the LT predicate on the "cc_phone" field.
  642. func CcPhoneLT(v string) predicate.Whatsapp {
  643. return predicate.Whatsapp(sql.FieldLT(FieldCcPhone, v))
  644. }
  645. // CcPhoneLTE applies the LTE predicate on the "cc_phone" field.
  646. func CcPhoneLTE(v string) predicate.Whatsapp {
  647. return predicate.Whatsapp(sql.FieldLTE(FieldCcPhone, v))
  648. }
  649. // CcPhoneContains applies the Contains predicate on the "cc_phone" field.
  650. func CcPhoneContains(v string) predicate.Whatsapp {
  651. return predicate.Whatsapp(sql.FieldContains(FieldCcPhone, v))
  652. }
  653. // CcPhoneHasPrefix applies the HasPrefix predicate on the "cc_phone" field.
  654. func CcPhoneHasPrefix(v string) predicate.Whatsapp {
  655. return predicate.Whatsapp(sql.FieldHasPrefix(FieldCcPhone, v))
  656. }
  657. // CcPhoneHasSuffix applies the HasSuffix predicate on the "cc_phone" field.
  658. func CcPhoneHasSuffix(v string) predicate.Whatsapp {
  659. return predicate.Whatsapp(sql.FieldHasSuffix(FieldCcPhone, v))
  660. }
  661. // CcPhoneEqualFold applies the EqualFold predicate on the "cc_phone" field.
  662. func CcPhoneEqualFold(v string) predicate.Whatsapp {
  663. return predicate.Whatsapp(sql.FieldEqualFold(FieldCcPhone, v))
  664. }
  665. // CcPhoneContainsFold applies the ContainsFold predicate on the "cc_phone" field.
  666. func CcPhoneContainsFold(v string) predicate.Whatsapp {
  667. return predicate.Whatsapp(sql.FieldContainsFold(FieldCcPhone, v))
  668. }
  669. // PhoneNameEQ applies the EQ predicate on the "phone_name" field.
  670. func PhoneNameEQ(v string) predicate.Whatsapp {
  671. return predicate.Whatsapp(sql.FieldEQ(FieldPhoneName, v))
  672. }
  673. // PhoneNameNEQ applies the NEQ predicate on the "phone_name" field.
  674. func PhoneNameNEQ(v string) predicate.Whatsapp {
  675. return predicate.Whatsapp(sql.FieldNEQ(FieldPhoneName, v))
  676. }
  677. // PhoneNameIn applies the In predicate on the "phone_name" field.
  678. func PhoneNameIn(vs ...string) predicate.Whatsapp {
  679. return predicate.Whatsapp(sql.FieldIn(FieldPhoneName, vs...))
  680. }
  681. // PhoneNameNotIn applies the NotIn predicate on the "phone_name" field.
  682. func PhoneNameNotIn(vs ...string) predicate.Whatsapp {
  683. return predicate.Whatsapp(sql.FieldNotIn(FieldPhoneName, vs...))
  684. }
  685. // PhoneNameGT applies the GT predicate on the "phone_name" field.
  686. func PhoneNameGT(v string) predicate.Whatsapp {
  687. return predicate.Whatsapp(sql.FieldGT(FieldPhoneName, v))
  688. }
  689. // PhoneNameGTE applies the GTE predicate on the "phone_name" field.
  690. func PhoneNameGTE(v string) predicate.Whatsapp {
  691. return predicate.Whatsapp(sql.FieldGTE(FieldPhoneName, v))
  692. }
  693. // PhoneNameLT applies the LT predicate on the "phone_name" field.
  694. func PhoneNameLT(v string) predicate.Whatsapp {
  695. return predicate.Whatsapp(sql.FieldLT(FieldPhoneName, v))
  696. }
  697. // PhoneNameLTE applies the LTE predicate on the "phone_name" field.
  698. func PhoneNameLTE(v string) predicate.Whatsapp {
  699. return predicate.Whatsapp(sql.FieldLTE(FieldPhoneName, v))
  700. }
  701. // PhoneNameContains applies the Contains predicate on the "phone_name" field.
  702. func PhoneNameContains(v string) predicate.Whatsapp {
  703. return predicate.Whatsapp(sql.FieldContains(FieldPhoneName, v))
  704. }
  705. // PhoneNameHasPrefix applies the HasPrefix predicate on the "phone_name" field.
  706. func PhoneNameHasPrefix(v string) predicate.Whatsapp {
  707. return predicate.Whatsapp(sql.FieldHasPrefix(FieldPhoneName, v))
  708. }
  709. // PhoneNameHasSuffix applies the HasSuffix predicate on the "phone_name" field.
  710. func PhoneNameHasSuffix(v string) predicate.Whatsapp {
  711. return predicate.Whatsapp(sql.FieldHasSuffix(FieldPhoneName, v))
  712. }
  713. // PhoneNameEqualFold applies the EqualFold predicate on the "phone_name" field.
  714. func PhoneNameEqualFold(v string) predicate.Whatsapp {
  715. return predicate.Whatsapp(sql.FieldEqualFold(FieldPhoneName, v))
  716. }
  717. // PhoneNameContainsFold applies the ContainsFold predicate on the "phone_name" field.
  718. func PhoneNameContainsFold(v string) predicate.Whatsapp {
  719. return predicate.Whatsapp(sql.FieldContainsFold(FieldPhoneName, v))
  720. }
  721. // PhoneStatusEQ applies the EQ predicate on the "phone_status" field.
  722. func PhoneStatusEQ(v int8) predicate.Whatsapp {
  723. return predicate.Whatsapp(sql.FieldEQ(FieldPhoneStatus, v))
  724. }
  725. // PhoneStatusNEQ applies the NEQ predicate on the "phone_status" field.
  726. func PhoneStatusNEQ(v int8) predicate.Whatsapp {
  727. return predicate.Whatsapp(sql.FieldNEQ(FieldPhoneStatus, v))
  728. }
  729. // PhoneStatusIn applies the In predicate on the "phone_status" field.
  730. func PhoneStatusIn(vs ...int8) predicate.Whatsapp {
  731. return predicate.Whatsapp(sql.FieldIn(FieldPhoneStatus, vs...))
  732. }
  733. // PhoneStatusNotIn applies the NotIn predicate on the "phone_status" field.
  734. func PhoneStatusNotIn(vs ...int8) predicate.Whatsapp {
  735. return predicate.Whatsapp(sql.FieldNotIn(FieldPhoneStatus, vs...))
  736. }
  737. // PhoneStatusGT applies the GT predicate on the "phone_status" field.
  738. func PhoneStatusGT(v int8) predicate.Whatsapp {
  739. return predicate.Whatsapp(sql.FieldGT(FieldPhoneStatus, v))
  740. }
  741. // PhoneStatusGTE applies the GTE predicate on the "phone_status" field.
  742. func PhoneStatusGTE(v int8) predicate.Whatsapp {
  743. return predicate.Whatsapp(sql.FieldGTE(FieldPhoneStatus, v))
  744. }
  745. // PhoneStatusLT applies the LT predicate on the "phone_status" field.
  746. func PhoneStatusLT(v int8) predicate.Whatsapp {
  747. return predicate.Whatsapp(sql.FieldLT(FieldPhoneStatus, v))
  748. }
  749. // PhoneStatusLTE applies the LTE predicate on the "phone_status" field.
  750. func PhoneStatusLTE(v int8) predicate.Whatsapp {
  751. return predicate.Whatsapp(sql.FieldLTE(FieldPhoneStatus, v))
  752. }
  753. // OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
  754. func OrganizationIDEQ(v uint64) predicate.Whatsapp {
  755. return predicate.Whatsapp(sql.FieldEQ(FieldOrganizationID, v))
  756. }
  757. // OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
  758. func OrganizationIDNEQ(v uint64) predicate.Whatsapp {
  759. return predicate.Whatsapp(sql.FieldNEQ(FieldOrganizationID, v))
  760. }
  761. // OrganizationIDIn applies the In predicate on the "organization_id" field.
  762. func OrganizationIDIn(vs ...uint64) predicate.Whatsapp {
  763. return predicate.Whatsapp(sql.FieldIn(FieldOrganizationID, vs...))
  764. }
  765. // OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
  766. func OrganizationIDNotIn(vs ...uint64) predicate.Whatsapp {
  767. return predicate.Whatsapp(sql.FieldNotIn(FieldOrganizationID, vs...))
  768. }
  769. // OrganizationIDGT applies the GT predicate on the "organization_id" field.
  770. func OrganizationIDGT(v uint64) predicate.Whatsapp {
  771. return predicate.Whatsapp(sql.FieldGT(FieldOrganizationID, v))
  772. }
  773. // OrganizationIDGTE applies the GTE predicate on the "organization_id" field.
  774. func OrganizationIDGTE(v uint64) predicate.Whatsapp {
  775. return predicate.Whatsapp(sql.FieldGTE(FieldOrganizationID, v))
  776. }
  777. // OrganizationIDLT applies the LT predicate on the "organization_id" field.
  778. func OrganizationIDLT(v uint64) predicate.Whatsapp {
  779. return predicate.Whatsapp(sql.FieldLT(FieldOrganizationID, v))
  780. }
  781. // OrganizationIDLTE applies the LTE predicate on the "organization_id" field.
  782. func OrganizationIDLTE(v uint64) predicate.Whatsapp {
  783. return predicate.Whatsapp(sql.FieldLTE(FieldOrganizationID, v))
  784. }
  785. // OrganizationIDIsNil applies the IsNil predicate on the "organization_id" field.
  786. func OrganizationIDIsNil() predicate.Whatsapp {
  787. return predicate.Whatsapp(sql.FieldIsNull(FieldOrganizationID))
  788. }
  789. // OrganizationIDNotNil applies the NotNil predicate on the "organization_id" field.
  790. func OrganizationIDNotNil() predicate.Whatsapp {
  791. return predicate.Whatsapp(sql.FieldNotNull(FieldOrganizationID))
  792. }
  793. // APIBaseEQ applies the EQ predicate on the "api_base" field.
  794. func APIBaseEQ(v string) predicate.Whatsapp {
  795. return predicate.Whatsapp(sql.FieldEQ(FieldAPIBase, v))
  796. }
  797. // APIBaseNEQ applies the NEQ predicate on the "api_base" field.
  798. func APIBaseNEQ(v string) predicate.Whatsapp {
  799. return predicate.Whatsapp(sql.FieldNEQ(FieldAPIBase, v))
  800. }
  801. // APIBaseIn applies the In predicate on the "api_base" field.
  802. func APIBaseIn(vs ...string) predicate.Whatsapp {
  803. return predicate.Whatsapp(sql.FieldIn(FieldAPIBase, vs...))
  804. }
  805. // APIBaseNotIn applies the NotIn predicate on the "api_base" field.
  806. func APIBaseNotIn(vs ...string) predicate.Whatsapp {
  807. return predicate.Whatsapp(sql.FieldNotIn(FieldAPIBase, vs...))
  808. }
  809. // APIBaseGT applies the GT predicate on the "api_base" field.
  810. func APIBaseGT(v string) predicate.Whatsapp {
  811. return predicate.Whatsapp(sql.FieldGT(FieldAPIBase, v))
  812. }
  813. // APIBaseGTE applies the GTE predicate on the "api_base" field.
  814. func APIBaseGTE(v string) predicate.Whatsapp {
  815. return predicate.Whatsapp(sql.FieldGTE(FieldAPIBase, v))
  816. }
  817. // APIBaseLT applies the LT predicate on the "api_base" field.
  818. func APIBaseLT(v string) predicate.Whatsapp {
  819. return predicate.Whatsapp(sql.FieldLT(FieldAPIBase, v))
  820. }
  821. // APIBaseLTE applies the LTE predicate on the "api_base" field.
  822. func APIBaseLTE(v string) predicate.Whatsapp {
  823. return predicate.Whatsapp(sql.FieldLTE(FieldAPIBase, v))
  824. }
  825. // APIBaseContains applies the Contains predicate on the "api_base" field.
  826. func APIBaseContains(v string) predicate.Whatsapp {
  827. return predicate.Whatsapp(sql.FieldContains(FieldAPIBase, v))
  828. }
  829. // APIBaseHasPrefix applies the HasPrefix predicate on the "api_base" field.
  830. func APIBaseHasPrefix(v string) predicate.Whatsapp {
  831. return predicate.Whatsapp(sql.FieldHasPrefix(FieldAPIBase, v))
  832. }
  833. // APIBaseHasSuffix applies the HasSuffix predicate on the "api_base" field.
  834. func APIBaseHasSuffix(v string) predicate.Whatsapp {
  835. return predicate.Whatsapp(sql.FieldHasSuffix(FieldAPIBase, v))
  836. }
  837. // APIBaseIsNil applies the IsNil predicate on the "api_base" field.
  838. func APIBaseIsNil() predicate.Whatsapp {
  839. return predicate.Whatsapp(sql.FieldIsNull(FieldAPIBase))
  840. }
  841. // APIBaseNotNil applies the NotNil predicate on the "api_base" field.
  842. func APIBaseNotNil() predicate.Whatsapp {
  843. return predicate.Whatsapp(sql.FieldNotNull(FieldAPIBase))
  844. }
  845. // APIBaseEqualFold applies the EqualFold predicate on the "api_base" field.
  846. func APIBaseEqualFold(v string) predicate.Whatsapp {
  847. return predicate.Whatsapp(sql.FieldEqualFold(FieldAPIBase, v))
  848. }
  849. // APIBaseContainsFold applies the ContainsFold predicate on the "api_base" field.
  850. func APIBaseContainsFold(v string) predicate.Whatsapp {
  851. return predicate.Whatsapp(sql.FieldContainsFold(FieldAPIBase, v))
  852. }
  853. // APIKeyEQ applies the EQ predicate on the "api_key" field.
  854. func APIKeyEQ(v string) predicate.Whatsapp {
  855. return predicate.Whatsapp(sql.FieldEQ(FieldAPIKey, v))
  856. }
  857. // APIKeyNEQ applies the NEQ predicate on the "api_key" field.
  858. func APIKeyNEQ(v string) predicate.Whatsapp {
  859. return predicate.Whatsapp(sql.FieldNEQ(FieldAPIKey, v))
  860. }
  861. // APIKeyIn applies the In predicate on the "api_key" field.
  862. func APIKeyIn(vs ...string) predicate.Whatsapp {
  863. return predicate.Whatsapp(sql.FieldIn(FieldAPIKey, vs...))
  864. }
  865. // APIKeyNotIn applies the NotIn predicate on the "api_key" field.
  866. func APIKeyNotIn(vs ...string) predicate.Whatsapp {
  867. return predicate.Whatsapp(sql.FieldNotIn(FieldAPIKey, vs...))
  868. }
  869. // APIKeyGT applies the GT predicate on the "api_key" field.
  870. func APIKeyGT(v string) predicate.Whatsapp {
  871. return predicate.Whatsapp(sql.FieldGT(FieldAPIKey, v))
  872. }
  873. // APIKeyGTE applies the GTE predicate on the "api_key" field.
  874. func APIKeyGTE(v string) predicate.Whatsapp {
  875. return predicate.Whatsapp(sql.FieldGTE(FieldAPIKey, v))
  876. }
  877. // APIKeyLT applies the LT predicate on the "api_key" field.
  878. func APIKeyLT(v string) predicate.Whatsapp {
  879. return predicate.Whatsapp(sql.FieldLT(FieldAPIKey, v))
  880. }
  881. // APIKeyLTE applies the LTE predicate on the "api_key" field.
  882. func APIKeyLTE(v string) predicate.Whatsapp {
  883. return predicate.Whatsapp(sql.FieldLTE(FieldAPIKey, v))
  884. }
  885. // APIKeyContains applies the Contains predicate on the "api_key" field.
  886. func APIKeyContains(v string) predicate.Whatsapp {
  887. return predicate.Whatsapp(sql.FieldContains(FieldAPIKey, v))
  888. }
  889. // APIKeyHasPrefix applies the HasPrefix predicate on the "api_key" field.
  890. func APIKeyHasPrefix(v string) predicate.Whatsapp {
  891. return predicate.Whatsapp(sql.FieldHasPrefix(FieldAPIKey, v))
  892. }
  893. // APIKeyHasSuffix applies the HasSuffix predicate on the "api_key" field.
  894. func APIKeyHasSuffix(v string) predicate.Whatsapp {
  895. return predicate.Whatsapp(sql.FieldHasSuffix(FieldAPIKey, v))
  896. }
  897. // APIKeyIsNil applies the IsNil predicate on the "api_key" field.
  898. func APIKeyIsNil() predicate.Whatsapp {
  899. return predicate.Whatsapp(sql.FieldIsNull(FieldAPIKey))
  900. }
  901. // APIKeyNotNil applies the NotNil predicate on the "api_key" field.
  902. func APIKeyNotNil() predicate.Whatsapp {
  903. return predicate.Whatsapp(sql.FieldNotNull(FieldAPIKey))
  904. }
  905. // APIKeyEqualFold applies the EqualFold predicate on the "api_key" field.
  906. func APIKeyEqualFold(v string) predicate.Whatsapp {
  907. return predicate.Whatsapp(sql.FieldEqualFold(FieldAPIKey, v))
  908. }
  909. // APIKeyContainsFold applies the ContainsFold predicate on the "api_key" field.
  910. func APIKeyContainsFold(v string) predicate.Whatsapp {
  911. return predicate.Whatsapp(sql.FieldContainsFold(FieldAPIKey, v))
  912. }
  913. // AllowListIsNil applies the IsNil predicate on the "allow_list" field.
  914. func AllowListIsNil() predicate.Whatsapp {
  915. return predicate.Whatsapp(sql.FieldIsNull(FieldAllowList))
  916. }
  917. // AllowListNotNil applies the NotNil predicate on the "allow_list" field.
  918. func AllowListNotNil() predicate.Whatsapp {
  919. return predicate.Whatsapp(sql.FieldNotNull(FieldAllowList))
  920. }
  921. // GroupAllowListIsNil applies the IsNil predicate on the "group_allow_list" field.
  922. func GroupAllowListIsNil() predicate.Whatsapp {
  923. return predicate.Whatsapp(sql.FieldIsNull(FieldGroupAllowList))
  924. }
  925. // GroupAllowListNotNil applies the NotNil predicate on the "group_allow_list" field.
  926. func GroupAllowListNotNil() predicate.Whatsapp {
  927. return predicate.Whatsapp(sql.FieldNotNull(FieldGroupAllowList))
  928. }
  929. // BlockListIsNil applies the IsNil predicate on the "block_list" field.
  930. func BlockListIsNil() predicate.Whatsapp {
  931. return predicate.Whatsapp(sql.FieldIsNull(FieldBlockList))
  932. }
  933. // BlockListNotNil applies the NotNil predicate on the "block_list" field.
  934. func BlockListNotNil() predicate.Whatsapp {
  935. return predicate.Whatsapp(sql.FieldNotNull(FieldBlockList))
  936. }
  937. // GroupBlockListIsNil applies the IsNil predicate on the "group_block_list" field.
  938. func GroupBlockListIsNil() predicate.Whatsapp {
  939. return predicate.Whatsapp(sql.FieldIsNull(FieldGroupBlockList))
  940. }
  941. // GroupBlockListNotNil applies the NotNil predicate on the "group_block_list" field.
  942. func GroupBlockListNotNil() predicate.Whatsapp {
  943. return predicate.Whatsapp(sql.FieldNotNull(FieldGroupBlockList))
  944. }
  945. // HasAgent applies the HasEdge predicate on the "agent" edge.
  946. func HasAgent() predicate.Whatsapp {
  947. return predicate.Whatsapp(func(s *sql.Selector) {
  948. step := sqlgraph.NewStep(
  949. sqlgraph.From(Table, FieldID),
  950. sqlgraph.Edge(sqlgraph.M2O, true, AgentTable, AgentColumn),
  951. )
  952. sqlgraph.HasNeighbors(s, step)
  953. })
  954. }
  955. // HasAgentWith applies the HasEdge predicate on the "agent" edge with a given conditions (other predicates).
  956. func HasAgentWith(preds ...predicate.Agent) predicate.Whatsapp {
  957. return predicate.Whatsapp(func(s *sql.Selector) {
  958. step := newAgentStep()
  959. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  960. for _, p := range preds {
  961. p(s)
  962. }
  963. })
  964. })
  965. }
  966. // And groups predicates with the AND operator between them.
  967. func And(predicates ...predicate.Whatsapp) predicate.Whatsapp {
  968. return predicate.Whatsapp(sql.AndPredicates(predicates...))
  969. }
  970. // Or groups predicates with the OR operator between them.
  971. func Or(predicates ...predicate.Whatsapp) predicate.Whatsapp {
  972. return predicate.Whatsapp(sql.OrPredicates(predicates...))
  973. }
  974. // Not applies the not operator on the given predicate.
  975. func Not(p predicate.Whatsapp) predicate.Whatsapp {
  976. return predicate.Whatsapp(sql.NotPredicates(p))
  977. }