where.go 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559
  1. // Code generated by ent, DO NOT EDIT.
  2. package authidentitychannel
  3. import (
  4. "time"
  5. "entgo.io/ent/dialect/sql"
  6. "entgo.io/ent/dialect/sql/sqlgraph"
  7. "github.com/Wei-Shaw/sub2api/ent/predicate"
  8. )
  9. // ID filters vertices based on their ID field.
  10. func ID(id int64) predicate.AuthIdentityChannel {
  11. return predicate.AuthIdentityChannel(sql.FieldEQ(FieldID, id))
  12. }
  13. // IDEQ applies the EQ predicate on the ID field.
  14. func IDEQ(id int64) predicate.AuthIdentityChannel {
  15. return predicate.AuthIdentityChannel(sql.FieldEQ(FieldID, id))
  16. }
  17. // IDNEQ applies the NEQ predicate on the ID field.
  18. func IDNEQ(id int64) predicate.AuthIdentityChannel {
  19. return predicate.AuthIdentityChannel(sql.FieldNEQ(FieldID, id))
  20. }
  21. // IDIn applies the In predicate on the ID field.
  22. func IDIn(ids ...int64) predicate.AuthIdentityChannel {
  23. return predicate.AuthIdentityChannel(sql.FieldIn(FieldID, ids...))
  24. }
  25. // IDNotIn applies the NotIn predicate on the ID field.
  26. func IDNotIn(ids ...int64) predicate.AuthIdentityChannel {
  27. return predicate.AuthIdentityChannel(sql.FieldNotIn(FieldID, ids...))
  28. }
  29. // IDGT applies the GT predicate on the ID field.
  30. func IDGT(id int64) predicate.AuthIdentityChannel {
  31. return predicate.AuthIdentityChannel(sql.FieldGT(FieldID, id))
  32. }
  33. // IDGTE applies the GTE predicate on the ID field.
  34. func IDGTE(id int64) predicate.AuthIdentityChannel {
  35. return predicate.AuthIdentityChannel(sql.FieldGTE(FieldID, id))
  36. }
  37. // IDLT applies the LT predicate on the ID field.
  38. func IDLT(id int64) predicate.AuthIdentityChannel {
  39. return predicate.AuthIdentityChannel(sql.FieldLT(FieldID, id))
  40. }
  41. // IDLTE applies the LTE predicate on the ID field.
  42. func IDLTE(id int64) predicate.AuthIdentityChannel {
  43. return predicate.AuthIdentityChannel(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.AuthIdentityChannel {
  47. return predicate.AuthIdentityChannel(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.AuthIdentityChannel {
  51. return predicate.AuthIdentityChannel(sql.FieldEQ(FieldUpdatedAt, v))
  52. }
  53. // IdentityID applies equality check predicate on the "identity_id" field. It's identical to IdentityIDEQ.
  54. func IdentityID(v int64) predicate.AuthIdentityChannel {
  55. return predicate.AuthIdentityChannel(sql.FieldEQ(FieldIdentityID, v))
  56. }
  57. // ProviderType applies equality check predicate on the "provider_type" field. It's identical to ProviderTypeEQ.
  58. func ProviderType(v string) predicate.AuthIdentityChannel {
  59. return predicate.AuthIdentityChannel(sql.FieldEQ(FieldProviderType, v))
  60. }
  61. // ProviderKey applies equality check predicate on the "provider_key" field. It's identical to ProviderKeyEQ.
  62. func ProviderKey(v string) predicate.AuthIdentityChannel {
  63. return predicate.AuthIdentityChannel(sql.FieldEQ(FieldProviderKey, v))
  64. }
  65. // Channel applies equality check predicate on the "channel" field. It's identical to ChannelEQ.
  66. func Channel(v string) predicate.AuthIdentityChannel {
  67. return predicate.AuthIdentityChannel(sql.FieldEQ(FieldChannel, v))
  68. }
  69. // ChannelAppID applies equality check predicate on the "channel_app_id" field. It's identical to ChannelAppIDEQ.
  70. func ChannelAppID(v string) predicate.AuthIdentityChannel {
  71. return predicate.AuthIdentityChannel(sql.FieldEQ(FieldChannelAppID, v))
  72. }
  73. // ChannelSubject applies equality check predicate on the "channel_subject" field. It's identical to ChannelSubjectEQ.
  74. func ChannelSubject(v string) predicate.AuthIdentityChannel {
  75. return predicate.AuthIdentityChannel(sql.FieldEQ(FieldChannelSubject, v))
  76. }
  77. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  78. func CreatedAtEQ(v time.Time) predicate.AuthIdentityChannel {
  79. return predicate.AuthIdentityChannel(sql.FieldEQ(FieldCreatedAt, v))
  80. }
  81. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  82. func CreatedAtNEQ(v time.Time) predicate.AuthIdentityChannel {
  83. return predicate.AuthIdentityChannel(sql.FieldNEQ(FieldCreatedAt, v))
  84. }
  85. // CreatedAtIn applies the In predicate on the "created_at" field.
  86. func CreatedAtIn(vs ...time.Time) predicate.AuthIdentityChannel {
  87. return predicate.AuthIdentityChannel(sql.FieldIn(FieldCreatedAt, vs...))
  88. }
  89. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  90. func CreatedAtNotIn(vs ...time.Time) predicate.AuthIdentityChannel {
  91. return predicate.AuthIdentityChannel(sql.FieldNotIn(FieldCreatedAt, vs...))
  92. }
  93. // CreatedAtGT applies the GT predicate on the "created_at" field.
  94. func CreatedAtGT(v time.Time) predicate.AuthIdentityChannel {
  95. return predicate.AuthIdentityChannel(sql.FieldGT(FieldCreatedAt, v))
  96. }
  97. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  98. func CreatedAtGTE(v time.Time) predicate.AuthIdentityChannel {
  99. return predicate.AuthIdentityChannel(sql.FieldGTE(FieldCreatedAt, v))
  100. }
  101. // CreatedAtLT applies the LT predicate on the "created_at" field.
  102. func CreatedAtLT(v time.Time) predicate.AuthIdentityChannel {
  103. return predicate.AuthIdentityChannel(sql.FieldLT(FieldCreatedAt, v))
  104. }
  105. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  106. func CreatedAtLTE(v time.Time) predicate.AuthIdentityChannel {
  107. return predicate.AuthIdentityChannel(sql.FieldLTE(FieldCreatedAt, v))
  108. }
  109. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  110. func UpdatedAtEQ(v time.Time) predicate.AuthIdentityChannel {
  111. return predicate.AuthIdentityChannel(sql.FieldEQ(FieldUpdatedAt, v))
  112. }
  113. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  114. func UpdatedAtNEQ(v time.Time) predicate.AuthIdentityChannel {
  115. return predicate.AuthIdentityChannel(sql.FieldNEQ(FieldUpdatedAt, v))
  116. }
  117. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  118. func UpdatedAtIn(vs ...time.Time) predicate.AuthIdentityChannel {
  119. return predicate.AuthIdentityChannel(sql.FieldIn(FieldUpdatedAt, vs...))
  120. }
  121. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  122. func UpdatedAtNotIn(vs ...time.Time) predicate.AuthIdentityChannel {
  123. return predicate.AuthIdentityChannel(sql.FieldNotIn(FieldUpdatedAt, vs...))
  124. }
  125. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  126. func UpdatedAtGT(v time.Time) predicate.AuthIdentityChannel {
  127. return predicate.AuthIdentityChannel(sql.FieldGT(FieldUpdatedAt, v))
  128. }
  129. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  130. func UpdatedAtGTE(v time.Time) predicate.AuthIdentityChannel {
  131. return predicate.AuthIdentityChannel(sql.FieldGTE(FieldUpdatedAt, v))
  132. }
  133. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  134. func UpdatedAtLT(v time.Time) predicate.AuthIdentityChannel {
  135. return predicate.AuthIdentityChannel(sql.FieldLT(FieldUpdatedAt, v))
  136. }
  137. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  138. func UpdatedAtLTE(v time.Time) predicate.AuthIdentityChannel {
  139. return predicate.AuthIdentityChannel(sql.FieldLTE(FieldUpdatedAt, v))
  140. }
  141. // IdentityIDEQ applies the EQ predicate on the "identity_id" field.
  142. func IdentityIDEQ(v int64) predicate.AuthIdentityChannel {
  143. return predicate.AuthIdentityChannel(sql.FieldEQ(FieldIdentityID, v))
  144. }
  145. // IdentityIDNEQ applies the NEQ predicate on the "identity_id" field.
  146. func IdentityIDNEQ(v int64) predicate.AuthIdentityChannel {
  147. return predicate.AuthIdentityChannel(sql.FieldNEQ(FieldIdentityID, v))
  148. }
  149. // IdentityIDIn applies the In predicate on the "identity_id" field.
  150. func IdentityIDIn(vs ...int64) predicate.AuthIdentityChannel {
  151. return predicate.AuthIdentityChannel(sql.FieldIn(FieldIdentityID, vs...))
  152. }
  153. // IdentityIDNotIn applies the NotIn predicate on the "identity_id" field.
  154. func IdentityIDNotIn(vs ...int64) predicate.AuthIdentityChannel {
  155. return predicate.AuthIdentityChannel(sql.FieldNotIn(FieldIdentityID, vs...))
  156. }
  157. // ProviderTypeEQ applies the EQ predicate on the "provider_type" field.
  158. func ProviderTypeEQ(v string) predicate.AuthIdentityChannel {
  159. return predicate.AuthIdentityChannel(sql.FieldEQ(FieldProviderType, v))
  160. }
  161. // ProviderTypeNEQ applies the NEQ predicate on the "provider_type" field.
  162. func ProviderTypeNEQ(v string) predicate.AuthIdentityChannel {
  163. return predicate.AuthIdentityChannel(sql.FieldNEQ(FieldProviderType, v))
  164. }
  165. // ProviderTypeIn applies the In predicate on the "provider_type" field.
  166. func ProviderTypeIn(vs ...string) predicate.AuthIdentityChannel {
  167. return predicate.AuthIdentityChannel(sql.FieldIn(FieldProviderType, vs...))
  168. }
  169. // ProviderTypeNotIn applies the NotIn predicate on the "provider_type" field.
  170. func ProviderTypeNotIn(vs ...string) predicate.AuthIdentityChannel {
  171. return predicate.AuthIdentityChannel(sql.FieldNotIn(FieldProviderType, vs...))
  172. }
  173. // ProviderTypeGT applies the GT predicate on the "provider_type" field.
  174. func ProviderTypeGT(v string) predicate.AuthIdentityChannel {
  175. return predicate.AuthIdentityChannel(sql.FieldGT(FieldProviderType, v))
  176. }
  177. // ProviderTypeGTE applies the GTE predicate on the "provider_type" field.
  178. func ProviderTypeGTE(v string) predicate.AuthIdentityChannel {
  179. return predicate.AuthIdentityChannel(sql.FieldGTE(FieldProviderType, v))
  180. }
  181. // ProviderTypeLT applies the LT predicate on the "provider_type" field.
  182. func ProviderTypeLT(v string) predicate.AuthIdentityChannel {
  183. return predicate.AuthIdentityChannel(sql.FieldLT(FieldProviderType, v))
  184. }
  185. // ProviderTypeLTE applies the LTE predicate on the "provider_type" field.
  186. func ProviderTypeLTE(v string) predicate.AuthIdentityChannel {
  187. return predicate.AuthIdentityChannel(sql.FieldLTE(FieldProviderType, v))
  188. }
  189. // ProviderTypeContains applies the Contains predicate on the "provider_type" field.
  190. func ProviderTypeContains(v string) predicate.AuthIdentityChannel {
  191. return predicate.AuthIdentityChannel(sql.FieldContains(FieldProviderType, v))
  192. }
  193. // ProviderTypeHasPrefix applies the HasPrefix predicate on the "provider_type" field.
  194. func ProviderTypeHasPrefix(v string) predicate.AuthIdentityChannel {
  195. return predicate.AuthIdentityChannel(sql.FieldHasPrefix(FieldProviderType, v))
  196. }
  197. // ProviderTypeHasSuffix applies the HasSuffix predicate on the "provider_type" field.
  198. func ProviderTypeHasSuffix(v string) predicate.AuthIdentityChannel {
  199. return predicate.AuthIdentityChannel(sql.FieldHasSuffix(FieldProviderType, v))
  200. }
  201. // ProviderTypeEqualFold applies the EqualFold predicate on the "provider_type" field.
  202. func ProviderTypeEqualFold(v string) predicate.AuthIdentityChannel {
  203. return predicate.AuthIdentityChannel(sql.FieldEqualFold(FieldProviderType, v))
  204. }
  205. // ProviderTypeContainsFold applies the ContainsFold predicate on the "provider_type" field.
  206. func ProviderTypeContainsFold(v string) predicate.AuthIdentityChannel {
  207. return predicate.AuthIdentityChannel(sql.FieldContainsFold(FieldProviderType, v))
  208. }
  209. // ProviderKeyEQ applies the EQ predicate on the "provider_key" field.
  210. func ProviderKeyEQ(v string) predicate.AuthIdentityChannel {
  211. return predicate.AuthIdentityChannel(sql.FieldEQ(FieldProviderKey, v))
  212. }
  213. // ProviderKeyNEQ applies the NEQ predicate on the "provider_key" field.
  214. func ProviderKeyNEQ(v string) predicate.AuthIdentityChannel {
  215. return predicate.AuthIdentityChannel(sql.FieldNEQ(FieldProviderKey, v))
  216. }
  217. // ProviderKeyIn applies the In predicate on the "provider_key" field.
  218. func ProviderKeyIn(vs ...string) predicate.AuthIdentityChannel {
  219. return predicate.AuthIdentityChannel(sql.FieldIn(FieldProviderKey, vs...))
  220. }
  221. // ProviderKeyNotIn applies the NotIn predicate on the "provider_key" field.
  222. func ProviderKeyNotIn(vs ...string) predicate.AuthIdentityChannel {
  223. return predicate.AuthIdentityChannel(sql.FieldNotIn(FieldProviderKey, vs...))
  224. }
  225. // ProviderKeyGT applies the GT predicate on the "provider_key" field.
  226. func ProviderKeyGT(v string) predicate.AuthIdentityChannel {
  227. return predicate.AuthIdentityChannel(sql.FieldGT(FieldProviderKey, v))
  228. }
  229. // ProviderKeyGTE applies the GTE predicate on the "provider_key" field.
  230. func ProviderKeyGTE(v string) predicate.AuthIdentityChannel {
  231. return predicate.AuthIdentityChannel(sql.FieldGTE(FieldProviderKey, v))
  232. }
  233. // ProviderKeyLT applies the LT predicate on the "provider_key" field.
  234. func ProviderKeyLT(v string) predicate.AuthIdentityChannel {
  235. return predicate.AuthIdentityChannel(sql.FieldLT(FieldProviderKey, v))
  236. }
  237. // ProviderKeyLTE applies the LTE predicate on the "provider_key" field.
  238. func ProviderKeyLTE(v string) predicate.AuthIdentityChannel {
  239. return predicate.AuthIdentityChannel(sql.FieldLTE(FieldProviderKey, v))
  240. }
  241. // ProviderKeyContains applies the Contains predicate on the "provider_key" field.
  242. func ProviderKeyContains(v string) predicate.AuthIdentityChannel {
  243. return predicate.AuthIdentityChannel(sql.FieldContains(FieldProviderKey, v))
  244. }
  245. // ProviderKeyHasPrefix applies the HasPrefix predicate on the "provider_key" field.
  246. func ProviderKeyHasPrefix(v string) predicate.AuthIdentityChannel {
  247. return predicate.AuthIdentityChannel(sql.FieldHasPrefix(FieldProviderKey, v))
  248. }
  249. // ProviderKeyHasSuffix applies the HasSuffix predicate on the "provider_key" field.
  250. func ProviderKeyHasSuffix(v string) predicate.AuthIdentityChannel {
  251. return predicate.AuthIdentityChannel(sql.FieldHasSuffix(FieldProviderKey, v))
  252. }
  253. // ProviderKeyEqualFold applies the EqualFold predicate on the "provider_key" field.
  254. func ProviderKeyEqualFold(v string) predicate.AuthIdentityChannel {
  255. return predicate.AuthIdentityChannel(sql.FieldEqualFold(FieldProviderKey, v))
  256. }
  257. // ProviderKeyContainsFold applies the ContainsFold predicate on the "provider_key" field.
  258. func ProviderKeyContainsFold(v string) predicate.AuthIdentityChannel {
  259. return predicate.AuthIdentityChannel(sql.FieldContainsFold(FieldProviderKey, v))
  260. }
  261. // ChannelEQ applies the EQ predicate on the "channel" field.
  262. func ChannelEQ(v string) predicate.AuthIdentityChannel {
  263. return predicate.AuthIdentityChannel(sql.FieldEQ(FieldChannel, v))
  264. }
  265. // ChannelNEQ applies the NEQ predicate on the "channel" field.
  266. func ChannelNEQ(v string) predicate.AuthIdentityChannel {
  267. return predicate.AuthIdentityChannel(sql.FieldNEQ(FieldChannel, v))
  268. }
  269. // ChannelIn applies the In predicate on the "channel" field.
  270. func ChannelIn(vs ...string) predicate.AuthIdentityChannel {
  271. return predicate.AuthIdentityChannel(sql.FieldIn(FieldChannel, vs...))
  272. }
  273. // ChannelNotIn applies the NotIn predicate on the "channel" field.
  274. func ChannelNotIn(vs ...string) predicate.AuthIdentityChannel {
  275. return predicate.AuthIdentityChannel(sql.FieldNotIn(FieldChannel, vs...))
  276. }
  277. // ChannelGT applies the GT predicate on the "channel" field.
  278. func ChannelGT(v string) predicate.AuthIdentityChannel {
  279. return predicate.AuthIdentityChannel(sql.FieldGT(FieldChannel, v))
  280. }
  281. // ChannelGTE applies the GTE predicate on the "channel" field.
  282. func ChannelGTE(v string) predicate.AuthIdentityChannel {
  283. return predicate.AuthIdentityChannel(sql.FieldGTE(FieldChannel, v))
  284. }
  285. // ChannelLT applies the LT predicate on the "channel" field.
  286. func ChannelLT(v string) predicate.AuthIdentityChannel {
  287. return predicate.AuthIdentityChannel(sql.FieldLT(FieldChannel, v))
  288. }
  289. // ChannelLTE applies the LTE predicate on the "channel" field.
  290. func ChannelLTE(v string) predicate.AuthIdentityChannel {
  291. return predicate.AuthIdentityChannel(sql.FieldLTE(FieldChannel, v))
  292. }
  293. // ChannelContains applies the Contains predicate on the "channel" field.
  294. func ChannelContains(v string) predicate.AuthIdentityChannel {
  295. return predicate.AuthIdentityChannel(sql.FieldContains(FieldChannel, v))
  296. }
  297. // ChannelHasPrefix applies the HasPrefix predicate on the "channel" field.
  298. func ChannelHasPrefix(v string) predicate.AuthIdentityChannel {
  299. return predicate.AuthIdentityChannel(sql.FieldHasPrefix(FieldChannel, v))
  300. }
  301. // ChannelHasSuffix applies the HasSuffix predicate on the "channel" field.
  302. func ChannelHasSuffix(v string) predicate.AuthIdentityChannel {
  303. return predicate.AuthIdentityChannel(sql.FieldHasSuffix(FieldChannel, v))
  304. }
  305. // ChannelEqualFold applies the EqualFold predicate on the "channel" field.
  306. func ChannelEqualFold(v string) predicate.AuthIdentityChannel {
  307. return predicate.AuthIdentityChannel(sql.FieldEqualFold(FieldChannel, v))
  308. }
  309. // ChannelContainsFold applies the ContainsFold predicate on the "channel" field.
  310. func ChannelContainsFold(v string) predicate.AuthIdentityChannel {
  311. return predicate.AuthIdentityChannel(sql.FieldContainsFold(FieldChannel, v))
  312. }
  313. // ChannelAppIDEQ applies the EQ predicate on the "channel_app_id" field.
  314. func ChannelAppIDEQ(v string) predicate.AuthIdentityChannel {
  315. return predicate.AuthIdentityChannel(sql.FieldEQ(FieldChannelAppID, v))
  316. }
  317. // ChannelAppIDNEQ applies the NEQ predicate on the "channel_app_id" field.
  318. func ChannelAppIDNEQ(v string) predicate.AuthIdentityChannel {
  319. return predicate.AuthIdentityChannel(sql.FieldNEQ(FieldChannelAppID, v))
  320. }
  321. // ChannelAppIDIn applies the In predicate on the "channel_app_id" field.
  322. func ChannelAppIDIn(vs ...string) predicate.AuthIdentityChannel {
  323. return predicate.AuthIdentityChannel(sql.FieldIn(FieldChannelAppID, vs...))
  324. }
  325. // ChannelAppIDNotIn applies the NotIn predicate on the "channel_app_id" field.
  326. func ChannelAppIDNotIn(vs ...string) predicate.AuthIdentityChannel {
  327. return predicate.AuthIdentityChannel(sql.FieldNotIn(FieldChannelAppID, vs...))
  328. }
  329. // ChannelAppIDGT applies the GT predicate on the "channel_app_id" field.
  330. func ChannelAppIDGT(v string) predicate.AuthIdentityChannel {
  331. return predicate.AuthIdentityChannel(sql.FieldGT(FieldChannelAppID, v))
  332. }
  333. // ChannelAppIDGTE applies the GTE predicate on the "channel_app_id" field.
  334. func ChannelAppIDGTE(v string) predicate.AuthIdentityChannel {
  335. return predicate.AuthIdentityChannel(sql.FieldGTE(FieldChannelAppID, v))
  336. }
  337. // ChannelAppIDLT applies the LT predicate on the "channel_app_id" field.
  338. func ChannelAppIDLT(v string) predicate.AuthIdentityChannel {
  339. return predicate.AuthIdentityChannel(sql.FieldLT(FieldChannelAppID, v))
  340. }
  341. // ChannelAppIDLTE applies the LTE predicate on the "channel_app_id" field.
  342. func ChannelAppIDLTE(v string) predicate.AuthIdentityChannel {
  343. return predicate.AuthIdentityChannel(sql.FieldLTE(FieldChannelAppID, v))
  344. }
  345. // ChannelAppIDContains applies the Contains predicate on the "channel_app_id" field.
  346. func ChannelAppIDContains(v string) predicate.AuthIdentityChannel {
  347. return predicate.AuthIdentityChannel(sql.FieldContains(FieldChannelAppID, v))
  348. }
  349. // ChannelAppIDHasPrefix applies the HasPrefix predicate on the "channel_app_id" field.
  350. func ChannelAppIDHasPrefix(v string) predicate.AuthIdentityChannel {
  351. return predicate.AuthIdentityChannel(sql.FieldHasPrefix(FieldChannelAppID, v))
  352. }
  353. // ChannelAppIDHasSuffix applies the HasSuffix predicate on the "channel_app_id" field.
  354. func ChannelAppIDHasSuffix(v string) predicate.AuthIdentityChannel {
  355. return predicate.AuthIdentityChannel(sql.FieldHasSuffix(FieldChannelAppID, v))
  356. }
  357. // ChannelAppIDEqualFold applies the EqualFold predicate on the "channel_app_id" field.
  358. func ChannelAppIDEqualFold(v string) predicate.AuthIdentityChannel {
  359. return predicate.AuthIdentityChannel(sql.FieldEqualFold(FieldChannelAppID, v))
  360. }
  361. // ChannelAppIDContainsFold applies the ContainsFold predicate on the "channel_app_id" field.
  362. func ChannelAppIDContainsFold(v string) predicate.AuthIdentityChannel {
  363. return predicate.AuthIdentityChannel(sql.FieldContainsFold(FieldChannelAppID, v))
  364. }
  365. // ChannelSubjectEQ applies the EQ predicate on the "channel_subject" field.
  366. func ChannelSubjectEQ(v string) predicate.AuthIdentityChannel {
  367. return predicate.AuthIdentityChannel(sql.FieldEQ(FieldChannelSubject, v))
  368. }
  369. // ChannelSubjectNEQ applies the NEQ predicate on the "channel_subject" field.
  370. func ChannelSubjectNEQ(v string) predicate.AuthIdentityChannel {
  371. return predicate.AuthIdentityChannel(sql.FieldNEQ(FieldChannelSubject, v))
  372. }
  373. // ChannelSubjectIn applies the In predicate on the "channel_subject" field.
  374. func ChannelSubjectIn(vs ...string) predicate.AuthIdentityChannel {
  375. return predicate.AuthIdentityChannel(sql.FieldIn(FieldChannelSubject, vs...))
  376. }
  377. // ChannelSubjectNotIn applies the NotIn predicate on the "channel_subject" field.
  378. func ChannelSubjectNotIn(vs ...string) predicate.AuthIdentityChannel {
  379. return predicate.AuthIdentityChannel(sql.FieldNotIn(FieldChannelSubject, vs...))
  380. }
  381. // ChannelSubjectGT applies the GT predicate on the "channel_subject" field.
  382. func ChannelSubjectGT(v string) predicate.AuthIdentityChannel {
  383. return predicate.AuthIdentityChannel(sql.FieldGT(FieldChannelSubject, v))
  384. }
  385. // ChannelSubjectGTE applies the GTE predicate on the "channel_subject" field.
  386. func ChannelSubjectGTE(v string) predicate.AuthIdentityChannel {
  387. return predicate.AuthIdentityChannel(sql.FieldGTE(FieldChannelSubject, v))
  388. }
  389. // ChannelSubjectLT applies the LT predicate on the "channel_subject" field.
  390. func ChannelSubjectLT(v string) predicate.AuthIdentityChannel {
  391. return predicate.AuthIdentityChannel(sql.FieldLT(FieldChannelSubject, v))
  392. }
  393. // ChannelSubjectLTE applies the LTE predicate on the "channel_subject" field.
  394. func ChannelSubjectLTE(v string) predicate.AuthIdentityChannel {
  395. return predicate.AuthIdentityChannel(sql.FieldLTE(FieldChannelSubject, v))
  396. }
  397. // ChannelSubjectContains applies the Contains predicate on the "channel_subject" field.
  398. func ChannelSubjectContains(v string) predicate.AuthIdentityChannel {
  399. return predicate.AuthIdentityChannel(sql.FieldContains(FieldChannelSubject, v))
  400. }
  401. // ChannelSubjectHasPrefix applies the HasPrefix predicate on the "channel_subject" field.
  402. func ChannelSubjectHasPrefix(v string) predicate.AuthIdentityChannel {
  403. return predicate.AuthIdentityChannel(sql.FieldHasPrefix(FieldChannelSubject, v))
  404. }
  405. // ChannelSubjectHasSuffix applies the HasSuffix predicate on the "channel_subject" field.
  406. func ChannelSubjectHasSuffix(v string) predicate.AuthIdentityChannel {
  407. return predicate.AuthIdentityChannel(sql.FieldHasSuffix(FieldChannelSubject, v))
  408. }
  409. // ChannelSubjectEqualFold applies the EqualFold predicate on the "channel_subject" field.
  410. func ChannelSubjectEqualFold(v string) predicate.AuthIdentityChannel {
  411. return predicate.AuthIdentityChannel(sql.FieldEqualFold(FieldChannelSubject, v))
  412. }
  413. // ChannelSubjectContainsFold applies the ContainsFold predicate on the "channel_subject" field.
  414. func ChannelSubjectContainsFold(v string) predicate.AuthIdentityChannel {
  415. return predicate.AuthIdentityChannel(sql.FieldContainsFold(FieldChannelSubject, v))
  416. }
  417. // HasIdentity applies the HasEdge predicate on the "identity" edge.
  418. func HasIdentity() predicate.AuthIdentityChannel {
  419. return predicate.AuthIdentityChannel(func(s *sql.Selector) {
  420. step := sqlgraph.NewStep(
  421. sqlgraph.From(Table, FieldID),
  422. sqlgraph.Edge(sqlgraph.M2O, true, IdentityTable, IdentityColumn),
  423. )
  424. sqlgraph.HasNeighbors(s, step)
  425. })
  426. }
  427. // HasIdentityWith applies the HasEdge predicate on the "identity" edge with a given conditions (other predicates).
  428. func HasIdentityWith(preds ...predicate.AuthIdentity) predicate.AuthIdentityChannel {
  429. return predicate.AuthIdentityChannel(func(s *sql.Selector) {
  430. step := newIdentityStep()
  431. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  432. for _, p := range preds {
  433. p(s)
  434. }
  435. })
  436. })
  437. }
  438. // And groups predicates with the AND operator between them.
  439. func And(predicates ...predicate.AuthIdentityChannel) predicate.AuthIdentityChannel {
  440. return predicate.AuthIdentityChannel(sql.AndPredicates(predicates...))
  441. }
  442. // Or groups predicates with the OR operator between them.
  443. func Or(predicates ...predicate.AuthIdentityChannel) predicate.AuthIdentityChannel {
  444. return predicate.AuthIdentityChannel(sql.OrPredicates(predicates...))
  445. }
  446. // Not applies the not operator on the given predicate.
  447. func Not(p predicate.AuthIdentityChannel) predicate.AuthIdentityChannel {
  448. return predicate.AuthIdentityChannel(sql.NotPredicates(p))
  449. }