where.go 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795
  1. // Code generated by ent, DO NOT EDIT.
  2. package whatsappchannel
  3. import (
  4. "time"
  5. "wechat-api/ent/predicate"
  6. "entgo.io/ent/dialect/sql"
  7. )
  8. // ID filters vertices based on their ID field.
  9. func ID(id uint64) predicate.WhatsappChannel {
  10. return predicate.WhatsappChannel(sql.FieldEQ(FieldID, id))
  11. }
  12. // IDEQ applies the EQ predicate on the ID field.
  13. func IDEQ(id uint64) predicate.WhatsappChannel {
  14. return predicate.WhatsappChannel(sql.FieldEQ(FieldID, id))
  15. }
  16. // IDNEQ applies the NEQ predicate on the ID field.
  17. func IDNEQ(id uint64) predicate.WhatsappChannel {
  18. return predicate.WhatsappChannel(sql.FieldNEQ(FieldID, id))
  19. }
  20. // IDIn applies the In predicate on the ID field.
  21. func IDIn(ids ...uint64) predicate.WhatsappChannel {
  22. return predicate.WhatsappChannel(sql.FieldIn(FieldID, ids...))
  23. }
  24. // IDNotIn applies the NotIn predicate on the ID field.
  25. func IDNotIn(ids ...uint64) predicate.WhatsappChannel {
  26. return predicate.WhatsappChannel(sql.FieldNotIn(FieldID, ids...))
  27. }
  28. // IDGT applies the GT predicate on the ID field.
  29. func IDGT(id uint64) predicate.WhatsappChannel {
  30. return predicate.WhatsappChannel(sql.FieldGT(FieldID, id))
  31. }
  32. // IDGTE applies the GTE predicate on the ID field.
  33. func IDGTE(id uint64) predicate.WhatsappChannel {
  34. return predicate.WhatsappChannel(sql.FieldGTE(FieldID, id))
  35. }
  36. // IDLT applies the LT predicate on the ID field.
  37. func IDLT(id uint64) predicate.WhatsappChannel {
  38. return predicate.WhatsappChannel(sql.FieldLT(FieldID, id))
  39. }
  40. // IDLTE applies the LTE predicate on the ID field.
  41. func IDLTE(id uint64) predicate.WhatsappChannel {
  42. return predicate.WhatsappChannel(sql.FieldLTE(FieldID, id))
  43. }
  44. // CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
  45. func CreatedAt(v time.Time) predicate.WhatsappChannel {
  46. return predicate.WhatsappChannel(sql.FieldEQ(FieldCreatedAt, v))
  47. }
  48. // UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
  49. func UpdatedAt(v time.Time) predicate.WhatsappChannel {
  50. return predicate.WhatsappChannel(sql.FieldEQ(FieldUpdatedAt, v))
  51. }
  52. // Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
  53. func Status(v uint8) predicate.WhatsappChannel {
  54. return predicate.WhatsappChannel(sql.FieldEQ(FieldStatus, v))
  55. }
  56. // DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
  57. func DeletedAt(v time.Time) predicate.WhatsappChannel {
  58. return predicate.WhatsappChannel(sql.FieldEQ(FieldDeletedAt, v))
  59. }
  60. // Ak applies equality check predicate on the "ak" field. It's identical to AkEQ.
  61. func Ak(v string) predicate.WhatsappChannel {
  62. return predicate.WhatsappChannel(sql.FieldEQ(FieldAk, v))
  63. }
  64. // Sk applies equality check predicate on the "sk" field. It's identical to SkEQ.
  65. func Sk(v string) predicate.WhatsappChannel {
  66. return predicate.WhatsappChannel(sql.FieldEQ(FieldSk, v))
  67. }
  68. // WaID applies equality check predicate on the "wa_id" field. It's identical to WaIDEQ.
  69. func WaID(v string) predicate.WhatsappChannel {
  70. return predicate.WhatsappChannel(sql.FieldEQ(FieldWaID, v))
  71. }
  72. // WaName applies equality check predicate on the "wa_name" field. It's identical to WaNameEQ.
  73. func WaName(v string) predicate.WhatsappChannel {
  74. return predicate.WhatsappChannel(sql.FieldEQ(FieldWaName, v))
  75. }
  76. // WabaID applies equality check predicate on the "waba_id" field. It's identical to WabaIDEQ.
  77. func WabaID(v uint64) predicate.WhatsappChannel {
  78. return predicate.WhatsappChannel(sql.FieldEQ(FieldWabaID, v))
  79. }
  80. // BusinessID applies equality check predicate on the "business_id" field. It's identical to BusinessIDEQ.
  81. func BusinessID(v uint64) predicate.WhatsappChannel {
  82. return predicate.WhatsappChannel(sql.FieldEQ(FieldBusinessID, v))
  83. }
  84. // OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
  85. func OrganizationID(v uint64) predicate.WhatsappChannel {
  86. return predicate.WhatsappChannel(sql.FieldEQ(FieldOrganizationID, v))
  87. }
  88. // VerifyAccount applies equality check predicate on the "verify_account" field. It's identical to VerifyAccountEQ.
  89. func VerifyAccount(v string) predicate.WhatsappChannel {
  90. return predicate.WhatsappChannel(sql.FieldEQ(FieldVerifyAccount, v))
  91. }
  92. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  93. func CreatedAtEQ(v time.Time) predicate.WhatsappChannel {
  94. return predicate.WhatsappChannel(sql.FieldEQ(FieldCreatedAt, v))
  95. }
  96. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  97. func CreatedAtNEQ(v time.Time) predicate.WhatsappChannel {
  98. return predicate.WhatsappChannel(sql.FieldNEQ(FieldCreatedAt, v))
  99. }
  100. // CreatedAtIn applies the In predicate on the "created_at" field.
  101. func CreatedAtIn(vs ...time.Time) predicate.WhatsappChannel {
  102. return predicate.WhatsappChannel(sql.FieldIn(FieldCreatedAt, vs...))
  103. }
  104. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  105. func CreatedAtNotIn(vs ...time.Time) predicate.WhatsappChannel {
  106. return predicate.WhatsappChannel(sql.FieldNotIn(FieldCreatedAt, vs...))
  107. }
  108. // CreatedAtGT applies the GT predicate on the "created_at" field.
  109. func CreatedAtGT(v time.Time) predicate.WhatsappChannel {
  110. return predicate.WhatsappChannel(sql.FieldGT(FieldCreatedAt, v))
  111. }
  112. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  113. func CreatedAtGTE(v time.Time) predicate.WhatsappChannel {
  114. return predicate.WhatsappChannel(sql.FieldGTE(FieldCreatedAt, v))
  115. }
  116. // CreatedAtLT applies the LT predicate on the "created_at" field.
  117. func CreatedAtLT(v time.Time) predicate.WhatsappChannel {
  118. return predicate.WhatsappChannel(sql.FieldLT(FieldCreatedAt, v))
  119. }
  120. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  121. func CreatedAtLTE(v time.Time) predicate.WhatsappChannel {
  122. return predicate.WhatsappChannel(sql.FieldLTE(FieldCreatedAt, v))
  123. }
  124. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  125. func UpdatedAtEQ(v time.Time) predicate.WhatsappChannel {
  126. return predicate.WhatsappChannel(sql.FieldEQ(FieldUpdatedAt, v))
  127. }
  128. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  129. func UpdatedAtNEQ(v time.Time) predicate.WhatsappChannel {
  130. return predicate.WhatsappChannel(sql.FieldNEQ(FieldUpdatedAt, v))
  131. }
  132. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  133. func UpdatedAtIn(vs ...time.Time) predicate.WhatsappChannel {
  134. return predicate.WhatsappChannel(sql.FieldIn(FieldUpdatedAt, vs...))
  135. }
  136. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  137. func UpdatedAtNotIn(vs ...time.Time) predicate.WhatsappChannel {
  138. return predicate.WhatsappChannel(sql.FieldNotIn(FieldUpdatedAt, vs...))
  139. }
  140. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  141. func UpdatedAtGT(v time.Time) predicate.WhatsappChannel {
  142. return predicate.WhatsappChannel(sql.FieldGT(FieldUpdatedAt, v))
  143. }
  144. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  145. func UpdatedAtGTE(v time.Time) predicate.WhatsappChannel {
  146. return predicate.WhatsappChannel(sql.FieldGTE(FieldUpdatedAt, v))
  147. }
  148. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  149. func UpdatedAtLT(v time.Time) predicate.WhatsappChannel {
  150. return predicate.WhatsappChannel(sql.FieldLT(FieldUpdatedAt, v))
  151. }
  152. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  153. func UpdatedAtLTE(v time.Time) predicate.WhatsappChannel {
  154. return predicate.WhatsappChannel(sql.FieldLTE(FieldUpdatedAt, v))
  155. }
  156. // StatusEQ applies the EQ predicate on the "status" field.
  157. func StatusEQ(v uint8) predicate.WhatsappChannel {
  158. return predicate.WhatsappChannel(sql.FieldEQ(FieldStatus, v))
  159. }
  160. // StatusNEQ applies the NEQ predicate on the "status" field.
  161. func StatusNEQ(v uint8) predicate.WhatsappChannel {
  162. return predicate.WhatsappChannel(sql.FieldNEQ(FieldStatus, v))
  163. }
  164. // StatusIn applies the In predicate on the "status" field.
  165. func StatusIn(vs ...uint8) predicate.WhatsappChannel {
  166. return predicate.WhatsappChannel(sql.FieldIn(FieldStatus, vs...))
  167. }
  168. // StatusNotIn applies the NotIn predicate on the "status" field.
  169. func StatusNotIn(vs ...uint8) predicate.WhatsappChannel {
  170. return predicate.WhatsappChannel(sql.FieldNotIn(FieldStatus, vs...))
  171. }
  172. // StatusGT applies the GT predicate on the "status" field.
  173. func StatusGT(v uint8) predicate.WhatsappChannel {
  174. return predicate.WhatsappChannel(sql.FieldGT(FieldStatus, v))
  175. }
  176. // StatusGTE applies the GTE predicate on the "status" field.
  177. func StatusGTE(v uint8) predicate.WhatsappChannel {
  178. return predicate.WhatsappChannel(sql.FieldGTE(FieldStatus, v))
  179. }
  180. // StatusLT applies the LT predicate on the "status" field.
  181. func StatusLT(v uint8) predicate.WhatsappChannel {
  182. return predicate.WhatsappChannel(sql.FieldLT(FieldStatus, v))
  183. }
  184. // StatusLTE applies the LTE predicate on the "status" field.
  185. func StatusLTE(v uint8) predicate.WhatsappChannel {
  186. return predicate.WhatsappChannel(sql.FieldLTE(FieldStatus, v))
  187. }
  188. // StatusIsNil applies the IsNil predicate on the "status" field.
  189. func StatusIsNil() predicate.WhatsappChannel {
  190. return predicate.WhatsappChannel(sql.FieldIsNull(FieldStatus))
  191. }
  192. // StatusNotNil applies the NotNil predicate on the "status" field.
  193. func StatusNotNil() predicate.WhatsappChannel {
  194. return predicate.WhatsappChannel(sql.FieldNotNull(FieldStatus))
  195. }
  196. // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
  197. func DeletedAtEQ(v time.Time) predicate.WhatsappChannel {
  198. return predicate.WhatsappChannel(sql.FieldEQ(FieldDeletedAt, v))
  199. }
  200. // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
  201. func DeletedAtNEQ(v time.Time) predicate.WhatsappChannel {
  202. return predicate.WhatsappChannel(sql.FieldNEQ(FieldDeletedAt, v))
  203. }
  204. // DeletedAtIn applies the In predicate on the "deleted_at" field.
  205. func DeletedAtIn(vs ...time.Time) predicate.WhatsappChannel {
  206. return predicate.WhatsappChannel(sql.FieldIn(FieldDeletedAt, vs...))
  207. }
  208. // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
  209. func DeletedAtNotIn(vs ...time.Time) predicate.WhatsappChannel {
  210. return predicate.WhatsappChannel(sql.FieldNotIn(FieldDeletedAt, vs...))
  211. }
  212. // DeletedAtGT applies the GT predicate on the "deleted_at" field.
  213. func DeletedAtGT(v time.Time) predicate.WhatsappChannel {
  214. return predicate.WhatsappChannel(sql.FieldGT(FieldDeletedAt, v))
  215. }
  216. // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
  217. func DeletedAtGTE(v time.Time) predicate.WhatsappChannel {
  218. return predicate.WhatsappChannel(sql.FieldGTE(FieldDeletedAt, v))
  219. }
  220. // DeletedAtLT applies the LT predicate on the "deleted_at" field.
  221. func DeletedAtLT(v time.Time) predicate.WhatsappChannel {
  222. return predicate.WhatsappChannel(sql.FieldLT(FieldDeletedAt, v))
  223. }
  224. // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
  225. func DeletedAtLTE(v time.Time) predicate.WhatsappChannel {
  226. return predicate.WhatsappChannel(sql.FieldLTE(FieldDeletedAt, v))
  227. }
  228. // DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
  229. func DeletedAtIsNil() predicate.WhatsappChannel {
  230. return predicate.WhatsappChannel(sql.FieldIsNull(FieldDeletedAt))
  231. }
  232. // DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
  233. func DeletedAtNotNil() predicate.WhatsappChannel {
  234. return predicate.WhatsappChannel(sql.FieldNotNull(FieldDeletedAt))
  235. }
  236. // AkEQ applies the EQ predicate on the "ak" field.
  237. func AkEQ(v string) predicate.WhatsappChannel {
  238. return predicate.WhatsappChannel(sql.FieldEQ(FieldAk, v))
  239. }
  240. // AkNEQ applies the NEQ predicate on the "ak" field.
  241. func AkNEQ(v string) predicate.WhatsappChannel {
  242. return predicate.WhatsappChannel(sql.FieldNEQ(FieldAk, v))
  243. }
  244. // AkIn applies the In predicate on the "ak" field.
  245. func AkIn(vs ...string) predicate.WhatsappChannel {
  246. return predicate.WhatsappChannel(sql.FieldIn(FieldAk, vs...))
  247. }
  248. // AkNotIn applies the NotIn predicate on the "ak" field.
  249. func AkNotIn(vs ...string) predicate.WhatsappChannel {
  250. return predicate.WhatsappChannel(sql.FieldNotIn(FieldAk, vs...))
  251. }
  252. // AkGT applies the GT predicate on the "ak" field.
  253. func AkGT(v string) predicate.WhatsappChannel {
  254. return predicate.WhatsappChannel(sql.FieldGT(FieldAk, v))
  255. }
  256. // AkGTE applies the GTE predicate on the "ak" field.
  257. func AkGTE(v string) predicate.WhatsappChannel {
  258. return predicate.WhatsappChannel(sql.FieldGTE(FieldAk, v))
  259. }
  260. // AkLT applies the LT predicate on the "ak" field.
  261. func AkLT(v string) predicate.WhatsappChannel {
  262. return predicate.WhatsappChannel(sql.FieldLT(FieldAk, v))
  263. }
  264. // AkLTE applies the LTE predicate on the "ak" field.
  265. func AkLTE(v string) predicate.WhatsappChannel {
  266. return predicate.WhatsappChannel(sql.FieldLTE(FieldAk, v))
  267. }
  268. // AkContains applies the Contains predicate on the "ak" field.
  269. func AkContains(v string) predicate.WhatsappChannel {
  270. return predicate.WhatsappChannel(sql.FieldContains(FieldAk, v))
  271. }
  272. // AkHasPrefix applies the HasPrefix predicate on the "ak" field.
  273. func AkHasPrefix(v string) predicate.WhatsappChannel {
  274. return predicate.WhatsappChannel(sql.FieldHasPrefix(FieldAk, v))
  275. }
  276. // AkHasSuffix applies the HasSuffix predicate on the "ak" field.
  277. func AkHasSuffix(v string) predicate.WhatsappChannel {
  278. return predicate.WhatsappChannel(sql.FieldHasSuffix(FieldAk, v))
  279. }
  280. // AkIsNil applies the IsNil predicate on the "ak" field.
  281. func AkIsNil() predicate.WhatsappChannel {
  282. return predicate.WhatsappChannel(sql.FieldIsNull(FieldAk))
  283. }
  284. // AkNotNil applies the NotNil predicate on the "ak" field.
  285. func AkNotNil() predicate.WhatsappChannel {
  286. return predicate.WhatsappChannel(sql.FieldNotNull(FieldAk))
  287. }
  288. // AkEqualFold applies the EqualFold predicate on the "ak" field.
  289. func AkEqualFold(v string) predicate.WhatsappChannel {
  290. return predicate.WhatsappChannel(sql.FieldEqualFold(FieldAk, v))
  291. }
  292. // AkContainsFold applies the ContainsFold predicate on the "ak" field.
  293. func AkContainsFold(v string) predicate.WhatsappChannel {
  294. return predicate.WhatsappChannel(sql.FieldContainsFold(FieldAk, v))
  295. }
  296. // SkEQ applies the EQ predicate on the "sk" field.
  297. func SkEQ(v string) predicate.WhatsappChannel {
  298. return predicate.WhatsappChannel(sql.FieldEQ(FieldSk, v))
  299. }
  300. // SkNEQ applies the NEQ predicate on the "sk" field.
  301. func SkNEQ(v string) predicate.WhatsappChannel {
  302. return predicate.WhatsappChannel(sql.FieldNEQ(FieldSk, v))
  303. }
  304. // SkIn applies the In predicate on the "sk" field.
  305. func SkIn(vs ...string) predicate.WhatsappChannel {
  306. return predicate.WhatsappChannel(sql.FieldIn(FieldSk, vs...))
  307. }
  308. // SkNotIn applies the NotIn predicate on the "sk" field.
  309. func SkNotIn(vs ...string) predicate.WhatsappChannel {
  310. return predicate.WhatsappChannel(sql.FieldNotIn(FieldSk, vs...))
  311. }
  312. // SkGT applies the GT predicate on the "sk" field.
  313. func SkGT(v string) predicate.WhatsappChannel {
  314. return predicate.WhatsappChannel(sql.FieldGT(FieldSk, v))
  315. }
  316. // SkGTE applies the GTE predicate on the "sk" field.
  317. func SkGTE(v string) predicate.WhatsappChannel {
  318. return predicate.WhatsappChannel(sql.FieldGTE(FieldSk, v))
  319. }
  320. // SkLT applies the LT predicate on the "sk" field.
  321. func SkLT(v string) predicate.WhatsappChannel {
  322. return predicate.WhatsappChannel(sql.FieldLT(FieldSk, v))
  323. }
  324. // SkLTE applies the LTE predicate on the "sk" field.
  325. func SkLTE(v string) predicate.WhatsappChannel {
  326. return predicate.WhatsappChannel(sql.FieldLTE(FieldSk, v))
  327. }
  328. // SkContains applies the Contains predicate on the "sk" field.
  329. func SkContains(v string) predicate.WhatsappChannel {
  330. return predicate.WhatsappChannel(sql.FieldContains(FieldSk, v))
  331. }
  332. // SkHasPrefix applies the HasPrefix predicate on the "sk" field.
  333. func SkHasPrefix(v string) predicate.WhatsappChannel {
  334. return predicate.WhatsappChannel(sql.FieldHasPrefix(FieldSk, v))
  335. }
  336. // SkHasSuffix applies the HasSuffix predicate on the "sk" field.
  337. func SkHasSuffix(v string) predicate.WhatsappChannel {
  338. return predicate.WhatsappChannel(sql.FieldHasSuffix(FieldSk, v))
  339. }
  340. // SkEqualFold applies the EqualFold predicate on the "sk" field.
  341. func SkEqualFold(v string) predicate.WhatsappChannel {
  342. return predicate.WhatsappChannel(sql.FieldEqualFold(FieldSk, v))
  343. }
  344. // SkContainsFold applies the ContainsFold predicate on the "sk" field.
  345. func SkContainsFold(v string) predicate.WhatsappChannel {
  346. return predicate.WhatsappChannel(sql.FieldContainsFold(FieldSk, v))
  347. }
  348. // WaIDEQ applies the EQ predicate on the "wa_id" field.
  349. func WaIDEQ(v string) predicate.WhatsappChannel {
  350. return predicate.WhatsappChannel(sql.FieldEQ(FieldWaID, v))
  351. }
  352. // WaIDNEQ applies the NEQ predicate on the "wa_id" field.
  353. func WaIDNEQ(v string) predicate.WhatsappChannel {
  354. return predicate.WhatsappChannel(sql.FieldNEQ(FieldWaID, v))
  355. }
  356. // WaIDIn applies the In predicate on the "wa_id" field.
  357. func WaIDIn(vs ...string) predicate.WhatsappChannel {
  358. return predicate.WhatsappChannel(sql.FieldIn(FieldWaID, vs...))
  359. }
  360. // WaIDNotIn applies the NotIn predicate on the "wa_id" field.
  361. func WaIDNotIn(vs ...string) predicate.WhatsappChannel {
  362. return predicate.WhatsappChannel(sql.FieldNotIn(FieldWaID, vs...))
  363. }
  364. // WaIDGT applies the GT predicate on the "wa_id" field.
  365. func WaIDGT(v string) predicate.WhatsappChannel {
  366. return predicate.WhatsappChannel(sql.FieldGT(FieldWaID, v))
  367. }
  368. // WaIDGTE applies the GTE predicate on the "wa_id" field.
  369. func WaIDGTE(v string) predicate.WhatsappChannel {
  370. return predicate.WhatsappChannel(sql.FieldGTE(FieldWaID, v))
  371. }
  372. // WaIDLT applies the LT predicate on the "wa_id" field.
  373. func WaIDLT(v string) predicate.WhatsappChannel {
  374. return predicate.WhatsappChannel(sql.FieldLT(FieldWaID, v))
  375. }
  376. // WaIDLTE applies the LTE predicate on the "wa_id" field.
  377. func WaIDLTE(v string) predicate.WhatsappChannel {
  378. return predicate.WhatsappChannel(sql.FieldLTE(FieldWaID, v))
  379. }
  380. // WaIDContains applies the Contains predicate on the "wa_id" field.
  381. func WaIDContains(v string) predicate.WhatsappChannel {
  382. return predicate.WhatsappChannel(sql.FieldContains(FieldWaID, v))
  383. }
  384. // WaIDHasPrefix applies the HasPrefix predicate on the "wa_id" field.
  385. func WaIDHasPrefix(v string) predicate.WhatsappChannel {
  386. return predicate.WhatsappChannel(sql.FieldHasPrefix(FieldWaID, v))
  387. }
  388. // WaIDHasSuffix applies the HasSuffix predicate on the "wa_id" field.
  389. func WaIDHasSuffix(v string) predicate.WhatsappChannel {
  390. return predicate.WhatsappChannel(sql.FieldHasSuffix(FieldWaID, v))
  391. }
  392. // WaIDIsNil applies the IsNil predicate on the "wa_id" field.
  393. func WaIDIsNil() predicate.WhatsappChannel {
  394. return predicate.WhatsappChannel(sql.FieldIsNull(FieldWaID))
  395. }
  396. // WaIDNotNil applies the NotNil predicate on the "wa_id" field.
  397. func WaIDNotNil() predicate.WhatsappChannel {
  398. return predicate.WhatsappChannel(sql.FieldNotNull(FieldWaID))
  399. }
  400. // WaIDEqualFold applies the EqualFold predicate on the "wa_id" field.
  401. func WaIDEqualFold(v string) predicate.WhatsappChannel {
  402. return predicate.WhatsappChannel(sql.FieldEqualFold(FieldWaID, v))
  403. }
  404. // WaIDContainsFold applies the ContainsFold predicate on the "wa_id" field.
  405. func WaIDContainsFold(v string) predicate.WhatsappChannel {
  406. return predicate.WhatsappChannel(sql.FieldContainsFold(FieldWaID, v))
  407. }
  408. // WaNameEQ applies the EQ predicate on the "wa_name" field.
  409. func WaNameEQ(v string) predicate.WhatsappChannel {
  410. return predicate.WhatsappChannel(sql.FieldEQ(FieldWaName, v))
  411. }
  412. // WaNameNEQ applies the NEQ predicate on the "wa_name" field.
  413. func WaNameNEQ(v string) predicate.WhatsappChannel {
  414. return predicate.WhatsappChannel(sql.FieldNEQ(FieldWaName, v))
  415. }
  416. // WaNameIn applies the In predicate on the "wa_name" field.
  417. func WaNameIn(vs ...string) predicate.WhatsappChannel {
  418. return predicate.WhatsappChannel(sql.FieldIn(FieldWaName, vs...))
  419. }
  420. // WaNameNotIn applies the NotIn predicate on the "wa_name" field.
  421. func WaNameNotIn(vs ...string) predicate.WhatsappChannel {
  422. return predicate.WhatsappChannel(sql.FieldNotIn(FieldWaName, vs...))
  423. }
  424. // WaNameGT applies the GT predicate on the "wa_name" field.
  425. func WaNameGT(v string) predicate.WhatsappChannel {
  426. return predicate.WhatsappChannel(sql.FieldGT(FieldWaName, v))
  427. }
  428. // WaNameGTE applies the GTE predicate on the "wa_name" field.
  429. func WaNameGTE(v string) predicate.WhatsappChannel {
  430. return predicate.WhatsappChannel(sql.FieldGTE(FieldWaName, v))
  431. }
  432. // WaNameLT applies the LT predicate on the "wa_name" field.
  433. func WaNameLT(v string) predicate.WhatsappChannel {
  434. return predicate.WhatsappChannel(sql.FieldLT(FieldWaName, v))
  435. }
  436. // WaNameLTE applies the LTE predicate on the "wa_name" field.
  437. func WaNameLTE(v string) predicate.WhatsappChannel {
  438. return predicate.WhatsappChannel(sql.FieldLTE(FieldWaName, v))
  439. }
  440. // WaNameContains applies the Contains predicate on the "wa_name" field.
  441. func WaNameContains(v string) predicate.WhatsappChannel {
  442. return predicate.WhatsappChannel(sql.FieldContains(FieldWaName, v))
  443. }
  444. // WaNameHasPrefix applies the HasPrefix predicate on the "wa_name" field.
  445. func WaNameHasPrefix(v string) predicate.WhatsappChannel {
  446. return predicate.WhatsappChannel(sql.FieldHasPrefix(FieldWaName, v))
  447. }
  448. // WaNameHasSuffix applies the HasSuffix predicate on the "wa_name" field.
  449. func WaNameHasSuffix(v string) predicate.WhatsappChannel {
  450. return predicate.WhatsappChannel(sql.FieldHasSuffix(FieldWaName, v))
  451. }
  452. // WaNameIsNil applies the IsNil predicate on the "wa_name" field.
  453. func WaNameIsNil() predicate.WhatsappChannel {
  454. return predicate.WhatsappChannel(sql.FieldIsNull(FieldWaName))
  455. }
  456. // WaNameNotNil applies the NotNil predicate on the "wa_name" field.
  457. func WaNameNotNil() predicate.WhatsappChannel {
  458. return predicate.WhatsappChannel(sql.FieldNotNull(FieldWaName))
  459. }
  460. // WaNameEqualFold applies the EqualFold predicate on the "wa_name" field.
  461. func WaNameEqualFold(v string) predicate.WhatsappChannel {
  462. return predicate.WhatsappChannel(sql.FieldEqualFold(FieldWaName, v))
  463. }
  464. // WaNameContainsFold applies the ContainsFold predicate on the "wa_name" field.
  465. func WaNameContainsFold(v string) predicate.WhatsappChannel {
  466. return predicate.WhatsappChannel(sql.FieldContainsFold(FieldWaName, v))
  467. }
  468. // WabaIDEQ applies the EQ predicate on the "waba_id" field.
  469. func WabaIDEQ(v uint64) predicate.WhatsappChannel {
  470. return predicate.WhatsappChannel(sql.FieldEQ(FieldWabaID, v))
  471. }
  472. // WabaIDNEQ applies the NEQ predicate on the "waba_id" field.
  473. func WabaIDNEQ(v uint64) predicate.WhatsappChannel {
  474. return predicate.WhatsappChannel(sql.FieldNEQ(FieldWabaID, v))
  475. }
  476. // WabaIDIn applies the In predicate on the "waba_id" field.
  477. func WabaIDIn(vs ...uint64) predicate.WhatsappChannel {
  478. return predicate.WhatsappChannel(sql.FieldIn(FieldWabaID, vs...))
  479. }
  480. // WabaIDNotIn applies the NotIn predicate on the "waba_id" field.
  481. func WabaIDNotIn(vs ...uint64) predicate.WhatsappChannel {
  482. return predicate.WhatsappChannel(sql.FieldNotIn(FieldWabaID, vs...))
  483. }
  484. // WabaIDGT applies the GT predicate on the "waba_id" field.
  485. func WabaIDGT(v uint64) predicate.WhatsappChannel {
  486. return predicate.WhatsappChannel(sql.FieldGT(FieldWabaID, v))
  487. }
  488. // WabaIDGTE applies the GTE predicate on the "waba_id" field.
  489. func WabaIDGTE(v uint64) predicate.WhatsappChannel {
  490. return predicate.WhatsappChannel(sql.FieldGTE(FieldWabaID, v))
  491. }
  492. // WabaIDLT applies the LT predicate on the "waba_id" field.
  493. func WabaIDLT(v uint64) predicate.WhatsappChannel {
  494. return predicate.WhatsappChannel(sql.FieldLT(FieldWabaID, v))
  495. }
  496. // WabaIDLTE applies the LTE predicate on the "waba_id" field.
  497. func WabaIDLTE(v uint64) predicate.WhatsappChannel {
  498. return predicate.WhatsappChannel(sql.FieldLTE(FieldWabaID, v))
  499. }
  500. // BusinessIDEQ applies the EQ predicate on the "business_id" field.
  501. func BusinessIDEQ(v uint64) predicate.WhatsappChannel {
  502. return predicate.WhatsappChannel(sql.FieldEQ(FieldBusinessID, v))
  503. }
  504. // BusinessIDNEQ applies the NEQ predicate on the "business_id" field.
  505. func BusinessIDNEQ(v uint64) predicate.WhatsappChannel {
  506. return predicate.WhatsappChannel(sql.FieldNEQ(FieldBusinessID, v))
  507. }
  508. // BusinessIDIn applies the In predicate on the "business_id" field.
  509. func BusinessIDIn(vs ...uint64) predicate.WhatsappChannel {
  510. return predicate.WhatsappChannel(sql.FieldIn(FieldBusinessID, vs...))
  511. }
  512. // BusinessIDNotIn applies the NotIn predicate on the "business_id" field.
  513. func BusinessIDNotIn(vs ...uint64) predicate.WhatsappChannel {
  514. return predicate.WhatsappChannel(sql.FieldNotIn(FieldBusinessID, vs...))
  515. }
  516. // BusinessIDGT applies the GT predicate on the "business_id" field.
  517. func BusinessIDGT(v uint64) predicate.WhatsappChannel {
  518. return predicate.WhatsappChannel(sql.FieldGT(FieldBusinessID, v))
  519. }
  520. // BusinessIDGTE applies the GTE predicate on the "business_id" field.
  521. func BusinessIDGTE(v uint64) predicate.WhatsappChannel {
  522. return predicate.WhatsappChannel(sql.FieldGTE(FieldBusinessID, v))
  523. }
  524. // BusinessIDLT applies the LT predicate on the "business_id" field.
  525. func BusinessIDLT(v uint64) predicate.WhatsappChannel {
  526. return predicate.WhatsappChannel(sql.FieldLT(FieldBusinessID, v))
  527. }
  528. // BusinessIDLTE applies the LTE predicate on the "business_id" field.
  529. func BusinessIDLTE(v uint64) predicate.WhatsappChannel {
  530. return predicate.WhatsappChannel(sql.FieldLTE(FieldBusinessID, v))
  531. }
  532. // OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
  533. func OrganizationIDEQ(v uint64) predicate.WhatsappChannel {
  534. return predicate.WhatsappChannel(sql.FieldEQ(FieldOrganizationID, v))
  535. }
  536. // OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
  537. func OrganizationIDNEQ(v uint64) predicate.WhatsappChannel {
  538. return predicate.WhatsappChannel(sql.FieldNEQ(FieldOrganizationID, v))
  539. }
  540. // OrganizationIDIn applies the In predicate on the "organization_id" field.
  541. func OrganizationIDIn(vs ...uint64) predicate.WhatsappChannel {
  542. return predicate.WhatsappChannel(sql.FieldIn(FieldOrganizationID, vs...))
  543. }
  544. // OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
  545. func OrganizationIDNotIn(vs ...uint64) predicate.WhatsappChannel {
  546. return predicate.WhatsappChannel(sql.FieldNotIn(FieldOrganizationID, vs...))
  547. }
  548. // OrganizationIDGT applies the GT predicate on the "organization_id" field.
  549. func OrganizationIDGT(v uint64) predicate.WhatsappChannel {
  550. return predicate.WhatsappChannel(sql.FieldGT(FieldOrganizationID, v))
  551. }
  552. // OrganizationIDGTE applies the GTE predicate on the "organization_id" field.
  553. func OrganizationIDGTE(v uint64) predicate.WhatsappChannel {
  554. return predicate.WhatsappChannel(sql.FieldGTE(FieldOrganizationID, v))
  555. }
  556. // OrganizationIDLT applies the LT predicate on the "organization_id" field.
  557. func OrganizationIDLT(v uint64) predicate.WhatsappChannel {
  558. return predicate.WhatsappChannel(sql.FieldLT(FieldOrganizationID, v))
  559. }
  560. // OrganizationIDLTE applies the LTE predicate on the "organization_id" field.
  561. func OrganizationIDLTE(v uint64) predicate.WhatsappChannel {
  562. return predicate.WhatsappChannel(sql.FieldLTE(FieldOrganizationID, v))
  563. }
  564. // OrganizationIDIsNil applies the IsNil predicate on the "organization_id" field.
  565. func OrganizationIDIsNil() predicate.WhatsappChannel {
  566. return predicate.WhatsappChannel(sql.FieldIsNull(FieldOrganizationID))
  567. }
  568. // OrganizationIDNotNil applies the NotNil predicate on the "organization_id" field.
  569. func OrganizationIDNotNil() predicate.WhatsappChannel {
  570. return predicate.WhatsappChannel(sql.FieldNotNull(FieldOrganizationID))
  571. }
  572. // VerifyAccountEQ applies the EQ predicate on the "verify_account" field.
  573. func VerifyAccountEQ(v string) predicate.WhatsappChannel {
  574. return predicate.WhatsappChannel(sql.FieldEQ(FieldVerifyAccount, v))
  575. }
  576. // VerifyAccountNEQ applies the NEQ predicate on the "verify_account" field.
  577. func VerifyAccountNEQ(v string) predicate.WhatsappChannel {
  578. return predicate.WhatsappChannel(sql.FieldNEQ(FieldVerifyAccount, v))
  579. }
  580. // VerifyAccountIn applies the In predicate on the "verify_account" field.
  581. func VerifyAccountIn(vs ...string) predicate.WhatsappChannel {
  582. return predicate.WhatsappChannel(sql.FieldIn(FieldVerifyAccount, vs...))
  583. }
  584. // VerifyAccountNotIn applies the NotIn predicate on the "verify_account" field.
  585. func VerifyAccountNotIn(vs ...string) predicate.WhatsappChannel {
  586. return predicate.WhatsappChannel(sql.FieldNotIn(FieldVerifyAccount, vs...))
  587. }
  588. // VerifyAccountGT applies the GT predicate on the "verify_account" field.
  589. func VerifyAccountGT(v string) predicate.WhatsappChannel {
  590. return predicate.WhatsappChannel(sql.FieldGT(FieldVerifyAccount, v))
  591. }
  592. // VerifyAccountGTE applies the GTE predicate on the "verify_account" field.
  593. func VerifyAccountGTE(v string) predicate.WhatsappChannel {
  594. return predicate.WhatsappChannel(sql.FieldGTE(FieldVerifyAccount, v))
  595. }
  596. // VerifyAccountLT applies the LT predicate on the "verify_account" field.
  597. func VerifyAccountLT(v string) predicate.WhatsappChannel {
  598. return predicate.WhatsappChannel(sql.FieldLT(FieldVerifyAccount, v))
  599. }
  600. // VerifyAccountLTE applies the LTE predicate on the "verify_account" field.
  601. func VerifyAccountLTE(v string) predicate.WhatsappChannel {
  602. return predicate.WhatsappChannel(sql.FieldLTE(FieldVerifyAccount, v))
  603. }
  604. // VerifyAccountContains applies the Contains predicate on the "verify_account" field.
  605. func VerifyAccountContains(v string) predicate.WhatsappChannel {
  606. return predicate.WhatsappChannel(sql.FieldContains(FieldVerifyAccount, v))
  607. }
  608. // VerifyAccountHasPrefix applies the HasPrefix predicate on the "verify_account" field.
  609. func VerifyAccountHasPrefix(v string) predicate.WhatsappChannel {
  610. return predicate.WhatsappChannel(sql.FieldHasPrefix(FieldVerifyAccount, v))
  611. }
  612. // VerifyAccountHasSuffix applies the HasSuffix predicate on the "verify_account" field.
  613. func VerifyAccountHasSuffix(v string) predicate.WhatsappChannel {
  614. return predicate.WhatsappChannel(sql.FieldHasSuffix(FieldVerifyAccount, v))
  615. }
  616. // VerifyAccountEqualFold applies the EqualFold predicate on the "verify_account" field.
  617. func VerifyAccountEqualFold(v string) predicate.WhatsappChannel {
  618. return predicate.WhatsappChannel(sql.FieldEqualFold(FieldVerifyAccount, v))
  619. }
  620. // VerifyAccountContainsFold applies the ContainsFold predicate on the "verify_account" field.
  621. func VerifyAccountContainsFold(v string) predicate.WhatsappChannel {
  622. return predicate.WhatsappChannel(sql.FieldContainsFold(FieldVerifyAccount, v))
  623. }
  624. // And groups predicates with the AND operator between them.
  625. func And(predicates ...predicate.WhatsappChannel) predicate.WhatsappChannel {
  626. return predicate.WhatsappChannel(sql.AndPredicates(predicates...))
  627. }
  628. // Or groups predicates with the OR operator between them.
  629. func Or(predicates ...predicate.WhatsappChannel) predicate.WhatsappChannel {
  630. return predicate.WhatsappChannel(sql.OrPredicates(predicates...))
  631. }
  632. // Not applies the not operator on the given predicate.
  633. func Not(p predicate.WhatsappChannel) predicate.WhatsappChannel {
  634. return predicate.WhatsappChannel(sql.NotPredicates(p))
  635. }