where.go 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600
  1. // Code generated by ent, DO NOT EDIT.
  2. package authidentity
  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.AuthIdentity {
  11. return predicate.AuthIdentity(sql.FieldEQ(FieldID, id))
  12. }
  13. // IDEQ applies the EQ predicate on the ID field.
  14. func IDEQ(id int64) predicate.AuthIdentity {
  15. return predicate.AuthIdentity(sql.FieldEQ(FieldID, id))
  16. }
  17. // IDNEQ applies the NEQ predicate on the ID field.
  18. func IDNEQ(id int64) predicate.AuthIdentity {
  19. return predicate.AuthIdentity(sql.FieldNEQ(FieldID, id))
  20. }
  21. // IDIn applies the In predicate on the ID field.
  22. func IDIn(ids ...int64) predicate.AuthIdentity {
  23. return predicate.AuthIdentity(sql.FieldIn(FieldID, ids...))
  24. }
  25. // IDNotIn applies the NotIn predicate on the ID field.
  26. func IDNotIn(ids ...int64) predicate.AuthIdentity {
  27. return predicate.AuthIdentity(sql.FieldNotIn(FieldID, ids...))
  28. }
  29. // IDGT applies the GT predicate on the ID field.
  30. func IDGT(id int64) predicate.AuthIdentity {
  31. return predicate.AuthIdentity(sql.FieldGT(FieldID, id))
  32. }
  33. // IDGTE applies the GTE predicate on the ID field.
  34. func IDGTE(id int64) predicate.AuthIdentity {
  35. return predicate.AuthIdentity(sql.FieldGTE(FieldID, id))
  36. }
  37. // IDLT applies the LT predicate on the ID field.
  38. func IDLT(id int64) predicate.AuthIdentity {
  39. return predicate.AuthIdentity(sql.FieldLT(FieldID, id))
  40. }
  41. // IDLTE applies the LTE predicate on the ID field.
  42. func IDLTE(id int64) predicate.AuthIdentity {
  43. return predicate.AuthIdentity(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.AuthIdentity {
  47. return predicate.AuthIdentity(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.AuthIdentity {
  51. return predicate.AuthIdentity(sql.FieldEQ(FieldUpdatedAt, v))
  52. }
  53. // UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
  54. func UserID(v int64) predicate.AuthIdentity {
  55. return predicate.AuthIdentity(sql.FieldEQ(FieldUserID, v))
  56. }
  57. // ProviderType applies equality check predicate on the "provider_type" field. It's identical to ProviderTypeEQ.
  58. func ProviderType(v string) predicate.AuthIdentity {
  59. return predicate.AuthIdentity(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.AuthIdentity {
  63. return predicate.AuthIdentity(sql.FieldEQ(FieldProviderKey, v))
  64. }
  65. // ProviderSubject applies equality check predicate on the "provider_subject" field. It's identical to ProviderSubjectEQ.
  66. func ProviderSubject(v string) predicate.AuthIdentity {
  67. return predicate.AuthIdentity(sql.FieldEQ(FieldProviderSubject, v))
  68. }
  69. // VerifiedAt applies equality check predicate on the "verified_at" field. It's identical to VerifiedAtEQ.
  70. func VerifiedAt(v time.Time) predicate.AuthIdentity {
  71. return predicate.AuthIdentity(sql.FieldEQ(FieldVerifiedAt, v))
  72. }
  73. // Issuer applies equality check predicate on the "issuer" field. It's identical to IssuerEQ.
  74. func Issuer(v string) predicate.AuthIdentity {
  75. return predicate.AuthIdentity(sql.FieldEQ(FieldIssuer, v))
  76. }
  77. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  78. func CreatedAtEQ(v time.Time) predicate.AuthIdentity {
  79. return predicate.AuthIdentity(sql.FieldEQ(FieldCreatedAt, v))
  80. }
  81. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  82. func CreatedAtNEQ(v time.Time) predicate.AuthIdentity {
  83. return predicate.AuthIdentity(sql.FieldNEQ(FieldCreatedAt, v))
  84. }
  85. // CreatedAtIn applies the In predicate on the "created_at" field.
  86. func CreatedAtIn(vs ...time.Time) predicate.AuthIdentity {
  87. return predicate.AuthIdentity(sql.FieldIn(FieldCreatedAt, vs...))
  88. }
  89. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  90. func CreatedAtNotIn(vs ...time.Time) predicate.AuthIdentity {
  91. return predicate.AuthIdentity(sql.FieldNotIn(FieldCreatedAt, vs...))
  92. }
  93. // CreatedAtGT applies the GT predicate on the "created_at" field.
  94. func CreatedAtGT(v time.Time) predicate.AuthIdentity {
  95. return predicate.AuthIdentity(sql.FieldGT(FieldCreatedAt, v))
  96. }
  97. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  98. func CreatedAtGTE(v time.Time) predicate.AuthIdentity {
  99. return predicate.AuthIdentity(sql.FieldGTE(FieldCreatedAt, v))
  100. }
  101. // CreatedAtLT applies the LT predicate on the "created_at" field.
  102. func CreatedAtLT(v time.Time) predicate.AuthIdentity {
  103. return predicate.AuthIdentity(sql.FieldLT(FieldCreatedAt, v))
  104. }
  105. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  106. func CreatedAtLTE(v time.Time) predicate.AuthIdentity {
  107. return predicate.AuthIdentity(sql.FieldLTE(FieldCreatedAt, v))
  108. }
  109. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  110. func UpdatedAtEQ(v time.Time) predicate.AuthIdentity {
  111. return predicate.AuthIdentity(sql.FieldEQ(FieldUpdatedAt, v))
  112. }
  113. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  114. func UpdatedAtNEQ(v time.Time) predicate.AuthIdentity {
  115. return predicate.AuthIdentity(sql.FieldNEQ(FieldUpdatedAt, v))
  116. }
  117. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  118. func UpdatedAtIn(vs ...time.Time) predicate.AuthIdentity {
  119. return predicate.AuthIdentity(sql.FieldIn(FieldUpdatedAt, vs...))
  120. }
  121. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  122. func UpdatedAtNotIn(vs ...time.Time) predicate.AuthIdentity {
  123. return predicate.AuthIdentity(sql.FieldNotIn(FieldUpdatedAt, vs...))
  124. }
  125. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  126. func UpdatedAtGT(v time.Time) predicate.AuthIdentity {
  127. return predicate.AuthIdentity(sql.FieldGT(FieldUpdatedAt, v))
  128. }
  129. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  130. func UpdatedAtGTE(v time.Time) predicate.AuthIdentity {
  131. return predicate.AuthIdentity(sql.FieldGTE(FieldUpdatedAt, v))
  132. }
  133. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  134. func UpdatedAtLT(v time.Time) predicate.AuthIdentity {
  135. return predicate.AuthIdentity(sql.FieldLT(FieldUpdatedAt, v))
  136. }
  137. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  138. func UpdatedAtLTE(v time.Time) predicate.AuthIdentity {
  139. return predicate.AuthIdentity(sql.FieldLTE(FieldUpdatedAt, v))
  140. }
  141. // UserIDEQ applies the EQ predicate on the "user_id" field.
  142. func UserIDEQ(v int64) predicate.AuthIdentity {
  143. return predicate.AuthIdentity(sql.FieldEQ(FieldUserID, v))
  144. }
  145. // UserIDNEQ applies the NEQ predicate on the "user_id" field.
  146. func UserIDNEQ(v int64) predicate.AuthIdentity {
  147. return predicate.AuthIdentity(sql.FieldNEQ(FieldUserID, v))
  148. }
  149. // UserIDIn applies the In predicate on the "user_id" field.
  150. func UserIDIn(vs ...int64) predicate.AuthIdentity {
  151. return predicate.AuthIdentity(sql.FieldIn(FieldUserID, vs...))
  152. }
  153. // UserIDNotIn applies the NotIn predicate on the "user_id" field.
  154. func UserIDNotIn(vs ...int64) predicate.AuthIdentity {
  155. return predicate.AuthIdentity(sql.FieldNotIn(FieldUserID, vs...))
  156. }
  157. // ProviderTypeEQ applies the EQ predicate on the "provider_type" field.
  158. func ProviderTypeEQ(v string) predicate.AuthIdentity {
  159. return predicate.AuthIdentity(sql.FieldEQ(FieldProviderType, v))
  160. }
  161. // ProviderTypeNEQ applies the NEQ predicate on the "provider_type" field.
  162. func ProviderTypeNEQ(v string) predicate.AuthIdentity {
  163. return predicate.AuthIdentity(sql.FieldNEQ(FieldProviderType, v))
  164. }
  165. // ProviderTypeIn applies the In predicate on the "provider_type" field.
  166. func ProviderTypeIn(vs ...string) predicate.AuthIdentity {
  167. return predicate.AuthIdentity(sql.FieldIn(FieldProviderType, vs...))
  168. }
  169. // ProviderTypeNotIn applies the NotIn predicate on the "provider_type" field.
  170. func ProviderTypeNotIn(vs ...string) predicate.AuthIdentity {
  171. return predicate.AuthIdentity(sql.FieldNotIn(FieldProviderType, vs...))
  172. }
  173. // ProviderTypeGT applies the GT predicate on the "provider_type" field.
  174. func ProviderTypeGT(v string) predicate.AuthIdentity {
  175. return predicate.AuthIdentity(sql.FieldGT(FieldProviderType, v))
  176. }
  177. // ProviderTypeGTE applies the GTE predicate on the "provider_type" field.
  178. func ProviderTypeGTE(v string) predicate.AuthIdentity {
  179. return predicate.AuthIdentity(sql.FieldGTE(FieldProviderType, v))
  180. }
  181. // ProviderTypeLT applies the LT predicate on the "provider_type" field.
  182. func ProviderTypeLT(v string) predicate.AuthIdentity {
  183. return predicate.AuthIdentity(sql.FieldLT(FieldProviderType, v))
  184. }
  185. // ProviderTypeLTE applies the LTE predicate on the "provider_type" field.
  186. func ProviderTypeLTE(v string) predicate.AuthIdentity {
  187. return predicate.AuthIdentity(sql.FieldLTE(FieldProviderType, v))
  188. }
  189. // ProviderTypeContains applies the Contains predicate on the "provider_type" field.
  190. func ProviderTypeContains(v string) predicate.AuthIdentity {
  191. return predicate.AuthIdentity(sql.FieldContains(FieldProviderType, v))
  192. }
  193. // ProviderTypeHasPrefix applies the HasPrefix predicate on the "provider_type" field.
  194. func ProviderTypeHasPrefix(v string) predicate.AuthIdentity {
  195. return predicate.AuthIdentity(sql.FieldHasPrefix(FieldProviderType, v))
  196. }
  197. // ProviderTypeHasSuffix applies the HasSuffix predicate on the "provider_type" field.
  198. func ProviderTypeHasSuffix(v string) predicate.AuthIdentity {
  199. return predicate.AuthIdentity(sql.FieldHasSuffix(FieldProviderType, v))
  200. }
  201. // ProviderTypeEqualFold applies the EqualFold predicate on the "provider_type" field.
  202. func ProviderTypeEqualFold(v string) predicate.AuthIdentity {
  203. return predicate.AuthIdentity(sql.FieldEqualFold(FieldProviderType, v))
  204. }
  205. // ProviderTypeContainsFold applies the ContainsFold predicate on the "provider_type" field.
  206. func ProviderTypeContainsFold(v string) predicate.AuthIdentity {
  207. return predicate.AuthIdentity(sql.FieldContainsFold(FieldProviderType, v))
  208. }
  209. // ProviderKeyEQ applies the EQ predicate on the "provider_key" field.
  210. func ProviderKeyEQ(v string) predicate.AuthIdentity {
  211. return predicate.AuthIdentity(sql.FieldEQ(FieldProviderKey, v))
  212. }
  213. // ProviderKeyNEQ applies the NEQ predicate on the "provider_key" field.
  214. func ProviderKeyNEQ(v string) predicate.AuthIdentity {
  215. return predicate.AuthIdentity(sql.FieldNEQ(FieldProviderKey, v))
  216. }
  217. // ProviderKeyIn applies the In predicate on the "provider_key" field.
  218. func ProviderKeyIn(vs ...string) predicate.AuthIdentity {
  219. return predicate.AuthIdentity(sql.FieldIn(FieldProviderKey, vs...))
  220. }
  221. // ProviderKeyNotIn applies the NotIn predicate on the "provider_key" field.
  222. func ProviderKeyNotIn(vs ...string) predicate.AuthIdentity {
  223. return predicate.AuthIdentity(sql.FieldNotIn(FieldProviderKey, vs...))
  224. }
  225. // ProviderKeyGT applies the GT predicate on the "provider_key" field.
  226. func ProviderKeyGT(v string) predicate.AuthIdentity {
  227. return predicate.AuthIdentity(sql.FieldGT(FieldProviderKey, v))
  228. }
  229. // ProviderKeyGTE applies the GTE predicate on the "provider_key" field.
  230. func ProviderKeyGTE(v string) predicate.AuthIdentity {
  231. return predicate.AuthIdentity(sql.FieldGTE(FieldProviderKey, v))
  232. }
  233. // ProviderKeyLT applies the LT predicate on the "provider_key" field.
  234. func ProviderKeyLT(v string) predicate.AuthIdentity {
  235. return predicate.AuthIdentity(sql.FieldLT(FieldProviderKey, v))
  236. }
  237. // ProviderKeyLTE applies the LTE predicate on the "provider_key" field.
  238. func ProviderKeyLTE(v string) predicate.AuthIdentity {
  239. return predicate.AuthIdentity(sql.FieldLTE(FieldProviderKey, v))
  240. }
  241. // ProviderKeyContains applies the Contains predicate on the "provider_key" field.
  242. func ProviderKeyContains(v string) predicate.AuthIdentity {
  243. return predicate.AuthIdentity(sql.FieldContains(FieldProviderKey, v))
  244. }
  245. // ProviderKeyHasPrefix applies the HasPrefix predicate on the "provider_key" field.
  246. func ProviderKeyHasPrefix(v string) predicate.AuthIdentity {
  247. return predicate.AuthIdentity(sql.FieldHasPrefix(FieldProviderKey, v))
  248. }
  249. // ProviderKeyHasSuffix applies the HasSuffix predicate on the "provider_key" field.
  250. func ProviderKeyHasSuffix(v string) predicate.AuthIdentity {
  251. return predicate.AuthIdentity(sql.FieldHasSuffix(FieldProviderKey, v))
  252. }
  253. // ProviderKeyEqualFold applies the EqualFold predicate on the "provider_key" field.
  254. func ProviderKeyEqualFold(v string) predicate.AuthIdentity {
  255. return predicate.AuthIdentity(sql.FieldEqualFold(FieldProviderKey, v))
  256. }
  257. // ProviderKeyContainsFold applies the ContainsFold predicate on the "provider_key" field.
  258. func ProviderKeyContainsFold(v string) predicate.AuthIdentity {
  259. return predicate.AuthIdentity(sql.FieldContainsFold(FieldProviderKey, v))
  260. }
  261. // ProviderSubjectEQ applies the EQ predicate on the "provider_subject" field.
  262. func ProviderSubjectEQ(v string) predicate.AuthIdentity {
  263. return predicate.AuthIdentity(sql.FieldEQ(FieldProviderSubject, v))
  264. }
  265. // ProviderSubjectNEQ applies the NEQ predicate on the "provider_subject" field.
  266. func ProviderSubjectNEQ(v string) predicate.AuthIdentity {
  267. return predicate.AuthIdentity(sql.FieldNEQ(FieldProviderSubject, v))
  268. }
  269. // ProviderSubjectIn applies the In predicate on the "provider_subject" field.
  270. func ProviderSubjectIn(vs ...string) predicate.AuthIdentity {
  271. return predicate.AuthIdentity(sql.FieldIn(FieldProviderSubject, vs...))
  272. }
  273. // ProviderSubjectNotIn applies the NotIn predicate on the "provider_subject" field.
  274. func ProviderSubjectNotIn(vs ...string) predicate.AuthIdentity {
  275. return predicate.AuthIdentity(sql.FieldNotIn(FieldProviderSubject, vs...))
  276. }
  277. // ProviderSubjectGT applies the GT predicate on the "provider_subject" field.
  278. func ProviderSubjectGT(v string) predicate.AuthIdentity {
  279. return predicate.AuthIdentity(sql.FieldGT(FieldProviderSubject, v))
  280. }
  281. // ProviderSubjectGTE applies the GTE predicate on the "provider_subject" field.
  282. func ProviderSubjectGTE(v string) predicate.AuthIdentity {
  283. return predicate.AuthIdentity(sql.FieldGTE(FieldProviderSubject, v))
  284. }
  285. // ProviderSubjectLT applies the LT predicate on the "provider_subject" field.
  286. func ProviderSubjectLT(v string) predicate.AuthIdentity {
  287. return predicate.AuthIdentity(sql.FieldLT(FieldProviderSubject, v))
  288. }
  289. // ProviderSubjectLTE applies the LTE predicate on the "provider_subject" field.
  290. func ProviderSubjectLTE(v string) predicate.AuthIdentity {
  291. return predicate.AuthIdentity(sql.FieldLTE(FieldProviderSubject, v))
  292. }
  293. // ProviderSubjectContains applies the Contains predicate on the "provider_subject" field.
  294. func ProviderSubjectContains(v string) predicate.AuthIdentity {
  295. return predicate.AuthIdentity(sql.FieldContains(FieldProviderSubject, v))
  296. }
  297. // ProviderSubjectHasPrefix applies the HasPrefix predicate on the "provider_subject" field.
  298. func ProviderSubjectHasPrefix(v string) predicate.AuthIdentity {
  299. return predicate.AuthIdentity(sql.FieldHasPrefix(FieldProviderSubject, v))
  300. }
  301. // ProviderSubjectHasSuffix applies the HasSuffix predicate on the "provider_subject" field.
  302. func ProviderSubjectHasSuffix(v string) predicate.AuthIdentity {
  303. return predicate.AuthIdentity(sql.FieldHasSuffix(FieldProviderSubject, v))
  304. }
  305. // ProviderSubjectEqualFold applies the EqualFold predicate on the "provider_subject" field.
  306. func ProviderSubjectEqualFold(v string) predicate.AuthIdentity {
  307. return predicate.AuthIdentity(sql.FieldEqualFold(FieldProviderSubject, v))
  308. }
  309. // ProviderSubjectContainsFold applies the ContainsFold predicate on the "provider_subject" field.
  310. func ProviderSubjectContainsFold(v string) predicate.AuthIdentity {
  311. return predicate.AuthIdentity(sql.FieldContainsFold(FieldProviderSubject, v))
  312. }
  313. // VerifiedAtEQ applies the EQ predicate on the "verified_at" field.
  314. func VerifiedAtEQ(v time.Time) predicate.AuthIdentity {
  315. return predicate.AuthIdentity(sql.FieldEQ(FieldVerifiedAt, v))
  316. }
  317. // VerifiedAtNEQ applies the NEQ predicate on the "verified_at" field.
  318. func VerifiedAtNEQ(v time.Time) predicate.AuthIdentity {
  319. return predicate.AuthIdentity(sql.FieldNEQ(FieldVerifiedAt, v))
  320. }
  321. // VerifiedAtIn applies the In predicate on the "verified_at" field.
  322. func VerifiedAtIn(vs ...time.Time) predicate.AuthIdentity {
  323. return predicate.AuthIdentity(sql.FieldIn(FieldVerifiedAt, vs...))
  324. }
  325. // VerifiedAtNotIn applies the NotIn predicate on the "verified_at" field.
  326. func VerifiedAtNotIn(vs ...time.Time) predicate.AuthIdentity {
  327. return predicate.AuthIdentity(sql.FieldNotIn(FieldVerifiedAt, vs...))
  328. }
  329. // VerifiedAtGT applies the GT predicate on the "verified_at" field.
  330. func VerifiedAtGT(v time.Time) predicate.AuthIdentity {
  331. return predicate.AuthIdentity(sql.FieldGT(FieldVerifiedAt, v))
  332. }
  333. // VerifiedAtGTE applies the GTE predicate on the "verified_at" field.
  334. func VerifiedAtGTE(v time.Time) predicate.AuthIdentity {
  335. return predicate.AuthIdentity(sql.FieldGTE(FieldVerifiedAt, v))
  336. }
  337. // VerifiedAtLT applies the LT predicate on the "verified_at" field.
  338. func VerifiedAtLT(v time.Time) predicate.AuthIdentity {
  339. return predicate.AuthIdentity(sql.FieldLT(FieldVerifiedAt, v))
  340. }
  341. // VerifiedAtLTE applies the LTE predicate on the "verified_at" field.
  342. func VerifiedAtLTE(v time.Time) predicate.AuthIdentity {
  343. return predicate.AuthIdentity(sql.FieldLTE(FieldVerifiedAt, v))
  344. }
  345. // VerifiedAtIsNil applies the IsNil predicate on the "verified_at" field.
  346. func VerifiedAtIsNil() predicate.AuthIdentity {
  347. return predicate.AuthIdentity(sql.FieldIsNull(FieldVerifiedAt))
  348. }
  349. // VerifiedAtNotNil applies the NotNil predicate on the "verified_at" field.
  350. func VerifiedAtNotNil() predicate.AuthIdentity {
  351. return predicate.AuthIdentity(sql.FieldNotNull(FieldVerifiedAt))
  352. }
  353. // IssuerEQ applies the EQ predicate on the "issuer" field.
  354. func IssuerEQ(v string) predicate.AuthIdentity {
  355. return predicate.AuthIdentity(sql.FieldEQ(FieldIssuer, v))
  356. }
  357. // IssuerNEQ applies the NEQ predicate on the "issuer" field.
  358. func IssuerNEQ(v string) predicate.AuthIdentity {
  359. return predicate.AuthIdentity(sql.FieldNEQ(FieldIssuer, v))
  360. }
  361. // IssuerIn applies the In predicate on the "issuer" field.
  362. func IssuerIn(vs ...string) predicate.AuthIdentity {
  363. return predicate.AuthIdentity(sql.FieldIn(FieldIssuer, vs...))
  364. }
  365. // IssuerNotIn applies the NotIn predicate on the "issuer" field.
  366. func IssuerNotIn(vs ...string) predicate.AuthIdentity {
  367. return predicate.AuthIdentity(sql.FieldNotIn(FieldIssuer, vs...))
  368. }
  369. // IssuerGT applies the GT predicate on the "issuer" field.
  370. func IssuerGT(v string) predicate.AuthIdentity {
  371. return predicate.AuthIdentity(sql.FieldGT(FieldIssuer, v))
  372. }
  373. // IssuerGTE applies the GTE predicate on the "issuer" field.
  374. func IssuerGTE(v string) predicate.AuthIdentity {
  375. return predicate.AuthIdentity(sql.FieldGTE(FieldIssuer, v))
  376. }
  377. // IssuerLT applies the LT predicate on the "issuer" field.
  378. func IssuerLT(v string) predicate.AuthIdentity {
  379. return predicate.AuthIdentity(sql.FieldLT(FieldIssuer, v))
  380. }
  381. // IssuerLTE applies the LTE predicate on the "issuer" field.
  382. func IssuerLTE(v string) predicate.AuthIdentity {
  383. return predicate.AuthIdentity(sql.FieldLTE(FieldIssuer, v))
  384. }
  385. // IssuerContains applies the Contains predicate on the "issuer" field.
  386. func IssuerContains(v string) predicate.AuthIdentity {
  387. return predicate.AuthIdentity(sql.FieldContains(FieldIssuer, v))
  388. }
  389. // IssuerHasPrefix applies the HasPrefix predicate on the "issuer" field.
  390. func IssuerHasPrefix(v string) predicate.AuthIdentity {
  391. return predicate.AuthIdentity(sql.FieldHasPrefix(FieldIssuer, v))
  392. }
  393. // IssuerHasSuffix applies the HasSuffix predicate on the "issuer" field.
  394. func IssuerHasSuffix(v string) predicate.AuthIdentity {
  395. return predicate.AuthIdentity(sql.FieldHasSuffix(FieldIssuer, v))
  396. }
  397. // IssuerIsNil applies the IsNil predicate on the "issuer" field.
  398. func IssuerIsNil() predicate.AuthIdentity {
  399. return predicate.AuthIdentity(sql.FieldIsNull(FieldIssuer))
  400. }
  401. // IssuerNotNil applies the NotNil predicate on the "issuer" field.
  402. func IssuerNotNil() predicate.AuthIdentity {
  403. return predicate.AuthIdentity(sql.FieldNotNull(FieldIssuer))
  404. }
  405. // IssuerEqualFold applies the EqualFold predicate on the "issuer" field.
  406. func IssuerEqualFold(v string) predicate.AuthIdentity {
  407. return predicate.AuthIdentity(sql.FieldEqualFold(FieldIssuer, v))
  408. }
  409. // IssuerContainsFold applies the ContainsFold predicate on the "issuer" field.
  410. func IssuerContainsFold(v string) predicate.AuthIdentity {
  411. return predicate.AuthIdentity(sql.FieldContainsFold(FieldIssuer, v))
  412. }
  413. // HasUser applies the HasEdge predicate on the "user" edge.
  414. func HasUser() predicate.AuthIdentity {
  415. return predicate.AuthIdentity(func(s *sql.Selector) {
  416. step := sqlgraph.NewStep(
  417. sqlgraph.From(Table, FieldID),
  418. sqlgraph.Edge(sqlgraph.M2O, true, UserTable, UserColumn),
  419. )
  420. sqlgraph.HasNeighbors(s, step)
  421. })
  422. }
  423. // HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
  424. func HasUserWith(preds ...predicate.User) predicate.AuthIdentity {
  425. return predicate.AuthIdentity(func(s *sql.Selector) {
  426. step := newUserStep()
  427. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  428. for _, p := range preds {
  429. p(s)
  430. }
  431. })
  432. })
  433. }
  434. // HasChannels applies the HasEdge predicate on the "channels" edge.
  435. func HasChannels() predicate.AuthIdentity {
  436. return predicate.AuthIdentity(func(s *sql.Selector) {
  437. step := sqlgraph.NewStep(
  438. sqlgraph.From(Table, FieldID),
  439. sqlgraph.Edge(sqlgraph.O2M, false, ChannelsTable, ChannelsColumn),
  440. )
  441. sqlgraph.HasNeighbors(s, step)
  442. })
  443. }
  444. // HasChannelsWith applies the HasEdge predicate on the "channels" edge with a given conditions (other predicates).
  445. func HasChannelsWith(preds ...predicate.AuthIdentityChannel) predicate.AuthIdentity {
  446. return predicate.AuthIdentity(func(s *sql.Selector) {
  447. step := newChannelsStep()
  448. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  449. for _, p := range preds {
  450. p(s)
  451. }
  452. })
  453. })
  454. }
  455. // HasAdoptionDecisions applies the HasEdge predicate on the "adoption_decisions" edge.
  456. func HasAdoptionDecisions() predicate.AuthIdentity {
  457. return predicate.AuthIdentity(func(s *sql.Selector) {
  458. step := sqlgraph.NewStep(
  459. sqlgraph.From(Table, FieldID),
  460. sqlgraph.Edge(sqlgraph.O2M, false, AdoptionDecisionsTable, AdoptionDecisionsColumn),
  461. )
  462. sqlgraph.HasNeighbors(s, step)
  463. })
  464. }
  465. // HasAdoptionDecisionsWith applies the HasEdge predicate on the "adoption_decisions" edge with a given conditions (other predicates).
  466. func HasAdoptionDecisionsWith(preds ...predicate.IdentityAdoptionDecision) predicate.AuthIdentity {
  467. return predicate.AuthIdentity(func(s *sql.Selector) {
  468. step := newAdoptionDecisionsStep()
  469. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  470. for _, p := range preds {
  471. p(s)
  472. }
  473. })
  474. })
  475. }
  476. // And groups predicates with the AND operator between them.
  477. func And(predicates ...predicate.AuthIdentity) predicate.AuthIdentity {
  478. return predicate.AuthIdentity(sql.AndPredicates(predicates...))
  479. }
  480. // Or groups predicates with the OR operator between them.
  481. func Or(predicates ...predicate.AuthIdentity) predicate.AuthIdentity {
  482. return predicate.AuthIdentity(sql.OrPredicates(predicates...))
  483. }
  484. // Not applies the not operator on the given predicate.
  485. func Not(p predicate.AuthIdentity) predicate.AuthIdentity {
  486. return predicate.AuthIdentity(sql.NotPredicates(p))
  487. }