where.go 55 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262
  1. // Code generated by ent, DO NOT EDIT.
  2. package pendingauthsession
  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.PendingAuthSession {
  11. return predicate.PendingAuthSession(sql.FieldEQ(FieldID, id))
  12. }
  13. // IDEQ applies the EQ predicate on the ID field.
  14. func IDEQ(id int64) predicate.PendingAuthSession {
  15. return predicate.PendingAuthSession(sql.FieldEQ(FieldID, id))
  16. }
  17. // IDNEQ applies the NEQ predicate on the ID field.
  18. func IDNEQ(id int64) predicate.PendingAuthSession {
  19. return predicate.PendingAuthSession(sql.FieldNEQ(FieldID, id))
  20. }
  21. // IDIn applies the In predicate on the ID field.
  22. func IDIn(ids ...int64) predicate.PendingAuthSession {
  23. return predicate.PendingAuthSession(sql.FieldIn(FieldID, ids...))
  24. }
  25. // IDNotIn applies the NotIn predicate on the ID field.
  26. func IDNotIn(ids ...int64) predicate.PendingAuthSession {
  27. return predicate.PendingAuthSession(sql.FieldNotIn(FieldID, ids...))
  28. }
  29. // IDGT applies the GT predicate on the ID field.
  30. func IDGT(id int64) predicate.PendingAuthSession {
  31. return predicate.PendingAuthSession(sql.FieldGT(FieldID, id))
  32. }
  33. // IDGTE applies the GTE predicate on the ID field.
  34. func IDGTE(id int64) predicate.PendingAuthSession {
  35. return predicate.PendingAuthSession(sql.FieldGTE(FieldID, id))
  36. }
  37. // IDLT applies the LT predicate on the ID field.
  38. func IDLT(id int64) predicate.PendingAuthSession {
  39. return predicate.PendingAuthSession(sql.FieldLT(FieldID, id))
  40. }
  41. // IDLTE applies the LTE predicate on the ID field.
  42. func IDLTE(id int64) predicate.PendingAuthSession {
  43. return predicate.PendingAuthSession(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.PendingAuthSession {
  47. return predicate.PendingAuthSession(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.PendingAuthSession {
  51. return predicate.PendingAuthSession(sql.FieldEQ(FieldUpdatedAt, v))
  52. }
  53. // SessionToken applies equality check predicate on the "session_token" field. It's identical to SessionTokenEQ.
  54. func SessionToken(v string) predicate.PendingAuthSession {
  55. return predicate.PendingAuthSession(sql.FieldEQ(FieldSessionToken, v))
  56. }
  57. // Intent applies equality check predicate on the "intent" field. It's identical to IntentEQ.
  58. func Intent(v string) predicate.PendingAuthSession {
  59. return predicate.PendingAuthSession(sql.FieldEQ(FieldIntent, v))
  60. }
  61. // ProviderType applies equality check predicate on the "provider_type" field. It's identical to ProviderTypeEQ.
  62. func ProviderType(v string) predicate.PendingAuthSession {
  63. return predicate.PendingAuthSession(sql.FieldEQ(FieldProviderType, v))
  64. }
  65. // ProviderKey applies equality check predicate on the "provider_key" field. It's identical to ProviderKeyEQ.
  66. func ProviderKey(v string) predicate.PendingAuthSession {
  67. return predicate.PendingAuthSession(sql.FieldEQ(FieldProviderKey, v))
  68. }
  69. // ProviderSubject applies equality check predicate on the "provider_subject" field. It's identical to ProviderSubjectEQ.
  70. func ProviderSubject(v string) predicate.PendingAuthSession {
  71. return predicate.PendingAuthSession(sql.FieldEQ(FieldProviderSubject, v))
  72. }
  73. // TargetUserID applies equality check predicate on the "target_user_id" field. It's identical to TargetUserIDEQ.
  74. func TargetUserID(v int64) predicate.PendingAuthSession {
  75. return predicate.PendingAuthSession(sql.FieldEQ(FieldTargetUserID, v))
  76. }
  77. // RedirectTo applies equality check predicate on the "redirect_to" field. It's identical to RedirectToEQ.
  78. func RedirectTo(v string) predicate.PendingAuthSession {
  79. return predicate.PendingAuthSession(sql.FieldEQ(FieldRedirectTo, v))
  80. }
  81. // ResolvedEmail applies equality check predicate on the "resolved_email" field. It's identical to ResolvedEmailEQ.
  82. func ResolvedEmail(v string) predicate.PendingAuthSession {
  83. return predicate.PendingAuthSession(sql.FieldEQ(FieldResolvedEmail, v))
  84. }
  85. // RegistrationPasswordHash applies equality check predicate on the "registration_password_hash" field. It's identical to RegistrationPasswordHashEQ.
  86. func RegistrationPasswordHash(v string) predicate.PendingAuthSession {
  87. return predicate.PendingAuthSession(sql.FieldEQ(FieldRegistrationPasswordHash, v))
  88. }
  89. // BrowserSessionKey applies equality check predicate on the "browser_session_key" field. It's identical to BrowserSessionKeyEQ.
  90. func BrowserSessionKey(v string) predicate.PendingAuthSession {
  91. return predicate.PendingAuthSession(sql.FieldEQ(FieldBrowserSessionKey, v))
  92. }
  93. // CompletionCodeHash applies equality check predicate on the "completion_code_hash" field. It's identical to CompletionCodeHashEQ.
  94. func CompletionCodeHash(v string) predicate.PendingAuthSession {
  95. return predicate.PendingAuthSession(sql.FieldEQ(FieldCompletionCodeHash, v))
  96. }
  97. // CompletionCodeExpiresAt applies equality check predicate on the "completion_code_expires_at" field. It's identical to CompletionCodeExpiresAtEQ.
  98. func CompletionCodeExpiresAt(v time.Time) predicate.PendingAuthSession {
  99. return predicate.PendingAuthSession(sql.FieldEQ(FieldCompletionCodeExpiresAt, v))
  100. }
  101. // EmailVerifiedAt applies equality check predicate on the "email_verified_at" field. It's identical to EmailVerifiedAtEQ.
  102. func EmailVerifiedAt(v time.Time) predicate.PendingAuthSession {
  103. return predicate.PendingAuthSession(sql.FieldEQ(FieldEmailVerifiedAt, v))
  104. }
  105. // PasswordVerifiedAt applies equality check predicate on the "password_verified_at" field. It's identical to PasswordVerifiedAtEQ.
  106. func PasswordVerifiedAt(v time.Time) predicate.PendingAuthSession {
  107. return predicate.PendingAuthSession(sql.FieldEQ(FieldPasswordVerifiedAt, v))
  108. }
  109. // TotpVerifiedAt applies equality check predicate on the "totp_verified_at" field. It's identical to TotpVerifiedAtEQ.
  110. func TotpVerifiedAt(v time.Time) predicate.PendingAuthSession {
  111. return predicate.PendingAuthSession(sql.FieldEQ(FieldTotpVerifiedAt, v))
  112. }
  113. // ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.
  114. func ExpiresAt(v time.Time) predicate.PendingAuthSession {
  115. return predicate.PendingAuthSession(sql.FieldEQ(FieldExpiresAt, v))
  116. }
  117. // ConsumedAt applies equality check predicate on the "consumed_at" field. It's identical to ConsumedAtEQ.
  118. func ConsumedAt(v time.Time) predicate.PendingAuthSession {
  119. return predicate.PendingAuthSession(sql.FieldEQ(FieldConsumedAt, v))
  120. }
  121. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  122. func CreatedAtEQ(v time.Time) predicate.PendingAuthSession {
  123. return predicate.PendingAuthSession(sql.FieldEQ(FieldCreatedAt, v))
  124. }
  125. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  126. func CreatedAtNEQ(v time.Time) predicate.PendingAuthSession {
  127. return predicate.PendingAuthSession(sql.FieldNEQ(FieldCreatedAt, v))
  128. }
  129. // CreatedAtIn applies the In predicate on the "created_at" field.
  130. func CreatedAtIn(vs ...time.Time) predicate.PendingAuthSession {
  131. return predicate.PendingAuthSession(sql.FieldIn(FieldCreatedAt, vs...))
  132. }
  133. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  134. func CreatedAtNotIn(vs ...time.Time) predicate.PendingAuthSession {
  135. return predicate.PendingAuthSession(sql.FieldNotIn(FieldCreatedAt, vs...))
  136. }
  137. // CreatedAtGT applies the GT predicate on the "created_at" field.
  138. func CreatedAtGT(v time.Time) predicate.PendingAuthSession {
  139. return predicate.PendingAuthSession(sql.FieldGT(FieldCreatedAt, v))
  140. }
  141. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  142. func CreatedAtGTE(v time.Time) predicate.PendingAuthSession {
  143. return predicate.PendingAuthSession(sql.FieldGTE(FieldCreatedAt, v))
  144. }
  145. // CreatedAtLT applies the LT predicate on the "created_at" field.
  146. func CreatedAtLT(v time.Time) predicate.PendingAuthSession {
  147. return predicate.PendingAuthSession(sql.FieldLT(FieldCreatedAt, v))
  148. }
  149. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  150. func CreatedAtLTE(v time.Time) predicate.PendingAuthSession {
  151. return predicate.PendingAuthSession(sql.FieldLTE(FieldCreatedAt, v))
  152. }
  153. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  154. func UpdatedAtEQ(v time.Time) predicate.PendingAuthSession {
  155. return predicate.PendingAuthSession(sql.FieldEQ(FieldUpdatedAt, v))
  156. }
  157. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  158. func UpdatedAtNEQ(v time.Time) predicate.PendingAuthSession {
  159. return predicate.PendingAuthSession(sql.FieldNEQ(FieldUpdatedAt, v))
  160. }
  161. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  162. func UpdatedAtIn(vs ...time.Time) predicate.PendingAuthSession {
  163. return predicate.PendingAuthSession(sql.FieldIn(FieldUpdatedAt, vs...))
  164. }
  165. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  166. func UpdatedAtNotIn(vs ...time.Time) predicate.PendingAuthSession {
  167. return predicate.PendingAuthSession(sql.FieldNotIn(FieldUpdatedAt, vs...))
  168. }
  169. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  170. func UpdatedAtGT(v time.Time) predicate.PendingAuthSession {
  171. return predicate.PendingAuthSession(sql.FieldGT(FieldUpdatedAt, v))
  172. }
  173. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  174. func UpdatedAtGTE(v time.Time) predicate.PendingAuthSession {
  175. return predicate.PendingAuthSession(sql.FieldGTE(FieldUpdatedAt, v))
  176. }
  177. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  178. func UpdatedAtLT(v time.Time) predicate.PendingAuthSession {
  179. return predicate.PendingAuthSession(sql.FieldLT(FieldUpdatedAt, v))
  180. }
  181. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  182. func UpdatedAtLTE(v time.Time) predicate.PendingAuthSession {
  183. return predicate.PendingAuthSession(sql.FieldLTE(FieldUpdatedAt, v))
  184. }
  185. // SessionTokenEQ applies the EQ predicate on the "session_token" field.
  186. func SessionTokenEQ(v string) predicate.PendingAuthSession {
  187. return predicate.PendingAuthSession(sql.FieldEQ(FieldSessionToken, v))
  188. }
  189. // SessionTokenNEQ applies the NEQ predicate on the "session_token" field.
  190. func SessionTokenNEQ(v string) predicate.PendingAuthSession {
  191. return predicate.PendingAuthSession(sql.FieldNEQ(FieldSessionToken, v))
  192. }
  193. // SessionTokenIn applies the In predicate on the "session_token" field.
  194. func SessionTokenIn(vs ...string) predicate.PendingAuthSession {
  195. return predicate.PendingAuthSession(sql.FieldIn(FieldSessionToken, vs...))
  196. }
  197. // SessionTokenNotIn applies the NotIn predicate on the "session_token" field.
  198. func SessionTokenNotIn(vs ...string) predicate.PendingAuthSession {
  199. return predicate.PendingAuthSession(sql.FieldNotIn(FieldSessionToken, vs...))
  200. }
  201. // SessionTokenGT applies the GT predicate on the "session_token" field.
  202. func SessionTokenGT(v string) predicate.PendingAuthSession {
  203. return predicate.PendingAuthSession(sql.FieldGT(FieldSessionToken, v))
  204. }
  205. // SessionTokenGTE applies the GTE predicate on the "session_token" field.
  206. func SessionTokenGTE(v string) predicate.PendingAuthSession {
  207. return predicate.PendingAuthSession(sql.FieldGTE(FieldSessionToken, v))
  208. }
  209. // SessionTokenLT applies the LT predicate on the "session_token" field.
  210. func SessionTokenLT(v string) predicate.PendingAuthSession {
  211. return predicate.PendingAuthSession(sql.FieldLT(FieldSessionToken, v))
  212. }
  213. // SessionTokenLTE applies the LTE predicate on the "session_token" field.
  214. func SessionTokenLTE(v string) predicate.PendingAuthSession {
  215. return predicate.PendingAuthSession(sql.FieldLTE(FieldSessionToken, v))
  216. }
  217. // SessionTokenContains applies the Contains predicate on the "session_token" field.
  218. func SessionTokenContains(v string) predicate.PendingAuthSession {
  219. return predicate.PendingAuthSession(sql.FieldContains(FieldSessionToken, v))
  220. }
  221. // SessionTokenHasPrefix applies the HasPrefix predicate on the "session_token" field.
  222. func SessionTokenHasPrefix(v string) predicate.PendingAuthSession {
  223. return predicate.PendingAuthSession(sql.FieldHasPrefix(FieldSessionToken, v))
  224. }
  225. // SessionTokenHasSuffix applies the HasSuffix predicate on the "session_token" field.
  226. func SessionTokenHasSuffix(v string) predicate.PendingAuthSession {
  227. return predicate.PendingAuthSession(sql.FieldHasSuffix(FieldSessionToken, v))
  228. }
  229. // SessionTokenEqualFold applies the EqualFold predicate on the "session_token" field.
  230. func SessionTokenEqualFold(v string) predicate.PendingAuthSession {
  231. return predicate.PendingAuthSession(sql.FieldEqualFold(FieldSessionToken, v))
  232. }
  233. // SessionTokenContainsFold applies the ContainsFold predicate on the "session_token" field.
  234. func SessionTokenContainsFold(v string) predicate.PendingAuthSession {
  235. return predicate.PendingAuthSession(sql.FieldContainsFold(FieldSessionToken, v))
  236. }
  237. // IntentEQ applies the EQ predicate on the "intent" field.
  238. func IntentEQ(v string) predicate.PendingAuthSession {
  239. return predicate.PendingAuthSession(sql.FieldEQ(FieldIntent, v))
  240. }
  241. // IntentNEQ applies the NEQ predicate on the "intent" field.
  242. func IntentNEQ(v string) predicate.PendingAuthSession {
  243. return predicate.PendingAuthSession(sql.FieldNEQ(FieldIntent, v))
  244. }
  245. // IntentIn applies the In predicate on the "intent" field.
  246. func IntentIn(vs ...string) predicate.PendingAuthSession {
  247. return predicate.PendingAuthSession(sql.FieldIn(FieldIntent, vs...))
  248. }
  249. // IntentNotIn applies the NotIn predicate on the "intent" field.
  250. func IntentNotIn(vs ...string) predicate.PendingAuthSession {
  251. return predicate.PendingAuthSession(sql.FieldNotIn(FieldIntent, vs...))
  252. }
  253. // IntentGT applies the GT predicate on the "intent" field.
  254. func IntentGT(v string) predicate.PendingAuthSession {
  255. return predicate.PendingAuthSession(sql.FieldGT(FieldIntent, v))
  256. }
  257. // IntentGTE applies the GTE predicate on the "intent" field.
  258. func IntentGTE(v string) predicate.PendingAuthSession {
  259. return predicate.PendingAuthSession(sql.FieldGTE(FieldIntent, v))
  260. }
  261. // IntentLT applies the LT predicate on the "intent" field.
  262. func IntentLT(v string) predicate.PendingAuthSession {
  263. return predicate.PendingAuthSession(sql.FieldLT(FieldIntent, v))
  264. }
  265. // IntentLTE applies the LTE predicate on the "intent" field.
  266. func IntentLTE(v string) predicate.PendingAuthSession {
  267. return predicate.PendingAuthSession(sql.FieldLTE(FieldIntent, v))
  268. }
  269. // IntentContains applies the Contains predicate on the "intent" field.
  270. func IntentContains(v string) predicate.PendingAuthSession {
  271. return predicate.PendingAuthSession(sql.FieldContains(FieldIntent, v))
  272. }
  273. // IntentHasPrefix applies the HasPrefix predicate on the "intent" field.
  274. func IntentHasPrefix(v string) predicate.PendingAuthSession {
  275. return predicate.PendingAuthSession(sql.FieldHasPrefix(FieldIntent, v))
  276. }
  277. // IntentHasSuffix applies the HasSuffix predicate on the "intent" field.
  278. func IntentHasSuffix(v string) predicate.PendingAuthSession {
  279. return predicate.PendingAuthSession(sql.FieldHasSuffix(FieldIntent, v))
  280. }
  281. // IntentEqualFold applies the EqualFold predicate on the "intent" field.
  282. func IntentEqualFold(v string) predicate.PendingAuthSession {
  283. return predicate.PendingAuthSession(sql.FieldEqualFold(FieldIntent, v))
  284. }
  285. // IntentContainsFold applies the ContainsFold predicate on the "intent" field.
  286. func IntentContainsFold(v string) predicate.PendingAuthSession {
  287. return predicate.PendingAuthSession(sql.FieldContainsFold(FieldIntent, v))
  288. }
  289. // ProviderTypeEQ applies the EQ predicate on the "provider_type" field.
  290. func ProviderTypeEQ(v string) predicate.PendingAuthSession {
  291. return predicate.PendingAuthSession(sql.FieldEQ(FieldProviderType, v))
  292. }
  293. // ProviderTypeNEQ applies the NEQ predicate on the "provider_type" field.
  294. func ProviderTypeNEQ(v string) predicate.PendingAuthSession {
  295. return predicate.PendingAuthSession(sql.FieldNEQ(FieldProviderType, v))
  296. }
  297. // ProviderTypeIn applies the In predicate on the "provider_type" field.
  298. func ProviderTypeIn(vs ...string) predicate.PendingAuthSession {
  299. return predicate.PendingAuthSession(sql.FieldIn(FieldProviderType, vs...))
  300. }
  301. // ProviderTypeNotIn applies the NotIn predicate on the "provider_type" field.
  302. func ProviderTypeNotIn(vs ...string) predicate.PendingAuthSession {
  303. return predicate.PendingAuthSession(sql.FieldNotIn(FieldProviderType, vs...))
  304. }
  305. // ProviderTypeGT applies the GT predicate on the "provider_type" field.
  306. func ProviderTypeGT(v string) predicate.PendingAuthSession {
  307. return predicate.PendingAuthSession(sql.FieldGT(FieldProviderType, v))
  308. }
  309. // ProviderTypeGTE applies the GTE predicate on the "provider_type" field.
  310. func ProviderTypeGTE(v string) predicate.PendingAuthSession {
  311. return predicate.PendingAuthSession(sql.FieldGTE(FieldProviderType, v))
  312. }
  313. // ProviderTypeLT applies the LT predicate on the "provider_type" field.
  314. func ProviderTypeLT(v string) predicate.PendingAuthSession {
  315. return predicate.PendingAuthSession(sql.FieldLT(FieldProviderType, v))
  316. }
  317. // ProviderTypeLTE applies the LTE predicate on the "provider_type" field.
  318. func ProviderTypeLTE(v string) predicate.PendingAuthSession {
  319. return predicate.PendingAuthSession(sql.FieldLTE(FieldProviderType, v))
  320. }
  321. // ProviderTypeContains applies the Contains predicate on the "provider_type" field.
  322. func ProviderTypeContains(v string) predicate.PendingAuthSession {
  323. return predicate.PendingAuthSession(sql.FieldContains(FieldProviderType, v))
  324. }
  325. // ProviderTypeHasPrefix applies the HasPrefix predicate on the "provider_type" field.
  326. func ProviderTypeHasPrefix(v string) predicate.PendingAuthSession {
  327. return predicate.PendingAuthSession(sql.FieldHasPrefix(FieldProviderType, v))
  328. }
  329. // ProviderTypeHasSuffix applies the HasSuffix predicate on the "provider_type" field.
  330. func ProviderTypeHasSuffix(v string) predicate.PendingAuthSession {
  331. return predicate.PendingAuthSession(sql.FieldHasSuffix(FieldProviderType, v))
  332. }
  333. // ProviderTypeEqualFold applies the EqualFold predicate on the "provider_type" field.
  334. func ProviderTypeEqualFold(v string) predicate.PendingAuthSession {
  335. return predicate.PendingAuthSession(sql.FieldEqualFold(FieldProviderType, v))
  336. }
  337. // ProviderTypeContainsFold applies the ContainsFold predicate on the "provider_type" field.
  338. func ProviderTypeContainsFold(v string) predicate.PendingAuthSession {
  339. return predicate.PendingAuthSession(sql.FieldContainsFold(FieldProviderType, v))
  340. }
  341. // ProviderKeyEQ applies the EQ predicate on the "provider_key" field.
  342. func ProviderKeyEQ(v string) predicate.PendingAuthSession {
  343. return predicate.PendingAuthSession(sql.FieldEQ(FieldProviderKey, v))
  344. }
  345. // ProviderKeyNEQ applies the NEQ predicate on the "provider_key" field.
  346. func ProviderKeyNEQ(v string) predicate.PendingAuthSession {
  347. return predicate.PendingAuthSession(sql.FieldNEQ(FieldProviderKey, v))
  348. }
  349. // ProviderKeyIn applies the In predicate on the "provider_key" field.
  350. func ProviderKeyIn(vs ...string) predicate.PendingAuthSession {
  351. return predicate.PendingAuthSession(sql.FieldIn(FieldProviderKey, vs...))
  352. }
  353. // ProviderKeyNotIn applies the NotIn predicate on the "provider_key" field.
  354. func ProviderKeyNotIn(vs ...string) predicate.PendingAuthSession {
  355. return predicate.PendingAuthSession(sql.FieldNotIn(FieldProviderKey, vs...))
  356. }
  357. // ProviderKeyGT applies the GT predicate on the "provider_key" field.
  358. func ProviderKeyGT(v string) predicate.PendingAuthSession {
  359. return predicate.PendingAuthSession(sql.FieldGT(FieldProviderKey, v))
  360. }
  361. // ProviderKeyGTE applies the GTE predicate on the "provider_key" field.
  362. func ProviderKeyGTE(v string) predicate.PendingAuthSession {
  363. return predicate.PendingAuthSession(sql.FieldGTE(FieldProviderKey, v))
  364. }
  365. // ProviderKeyLT applies the LT predicate on the "provider_key" field.
  366. func ProviderKeyLT(v string) predicate.PendingAuthSession {
  367. return predicate.PendingAuthSession(sql.FieldLT(FieldProviderKey, v))
  368. }
  369. // ProviderKeyLTE applies the LTE predicate on the "provider_key" field.
  370. func ProviderKeyLTE(v string) predicate.PendingAuthSession {
  371. return predicate.PendingAuthSession(sql.FieldLTE(FieldProviderKey, v))
  372. }
  373. // ProviderKeyContains applies the Contains predicate on the "provider_key" field.
  374. func ProviderKeyContains(v string) predicate.PendingAuthSession {
  375. return predicate.PendingAuthSession(sql.FieldContains(FieldProviderKey, v))
  376. }
  377. // ProviderKeyHasPrefix applies the HasPrefix predicate on the "provider_key" field.
  378. func ProviderKeyHasPrefix(v string) predicate.PendingAuthSession {
  379. return predicate.PendingAuthSession(sql.FieldHasPrefix(FieldProviderKey, v))
  380. }
  381. // ProviderKeyHasSuffix applies the HasSuffix predicate on the "provider_key" field.
  382. func ProviderKeyHasSuffix(v string) predicate.PendingAuthSession {
  383. return predicate.PendingAuthSession(sql.FieldHasSuffix(FieldProviderKey, v))
  384. }
  385. // ProviderKeyEqualFold applies the EqualFold predicate on the "provider_key" field.
  386. func ProviderKeyEqualFold(v string) predicate.PendingAuthSession {
  387. return predicate.PendingAuthSession(sql.FieldEqualFold(FieldProviderKey, v))
  388. }
  389. // ProviderKeyContainsFold applies the ContainsFold predicate on the "provider_key" field.
  390. func ProviderKeyContainsFold(v string) predicate.PendingAuthSession {
  391. return predicate.PendingAuthSession(sql.FieldContainsFold(FieldProviderKey, v))
  392. }
  393. // ProviderSubjectEQ applies the EQ predicate on the "provider_subject" field.
  394. func ProviderSubjectEQ(v string) predicate.PendingAuthSession {
  395. return predicate.PendingAuthSession(sql.FieldEQ(FieldProviderSubject, v))
  396. }
  397. // ProviderSubjectNEQ applies the NEQ predicate on the "provider_subject" field.
  398. func ProviderSubjectNEQ(v string) predicate.PendingAuthSession {
  399. return predicate.PendingAuthSession(sql.FieldNEQ(FieldProviderSubject, v))
  400. }
  401. // ProviderSubjectIn applies the In predicate on the "provider_subject" field.
  402. func ProviderSubjectIn(vs ...string) predicate.PendingAuthSession {
  403. return predicate.PendingAuthSession(sql.FieldIn(FieldProviderSubject, vs...))
  404. }
  405. // ProviderSubjectNotIn applies the NotIn predicate on the "provider_subject" field.
  406. func ProviderSubjectNotIn(vs ...string) predicate.PendingAuthSession {
  407. return predicate.PendingAuthSession(sql.FieldNotIn(FieldProviderSubject, vs...))
  408. }
  409. // ProviderSubjectGT applies the GT predicate on the "provider_subject" field.
  410. func ProviderSubjectGT(v string) predicate.PendingAuthSession {
  411. return predicate.PendingAuthSession(sql.FieldGT(FieldProviderSubject, v))
  412. }
  413. // ProviderSubjectGTE applies the GTE predicate on the "provider_subject" field.
  414. func ProviderSubjectGTE(v string) predicate.PendingAuthSession {
  415. return predicate.PendingAuthSession(sql.FieldGTE(FieldProviderSubject, v))
  416. }
  417. // ProviderSubjectLT applies the LT predicate on the "provider_subject" field.
  418. func ProviderSubjectLT(v string) predicate.PendingAuthSession {
  419. return predicate.PendingAuthSession(sql.FieldLT(FieldProviderSubject, v))
  420. }
  421. // ProviderSubjectLTE applies the LTE predicate on the "provider_subject" field.
  422. func ProviderSubjectLTE(v string) predicate.PendingAuthSession {
  423. return predicate.PendingAuthSession(sql.FieldLTE(FieldProviderSubject, v))
  424. }
  425. // ProviderSubjectContains applies the Contains predicate on the "provider_subject" field.
  426. func ProviderSubjectContains(v string) predicate.PendingAuthSession {
  427. return predicate.PendingAuthSession(sql.FieldContains(FieldProviderSubject, v))
  428. }
  429. // ProviderSubjectHasPrefix applies the HasPrefix predicate on the "provider_subject" field.
  430. func ProviderSubjectHasPrefix(v string) predicate.PendingAuthSession {
  431. return predicate.PendingAuthSession(sql.FieldHasPrefix(FieldProviderSubject, v))
  432. }
  433. // ProviderSubjectHasSuffix applies the HasSuffix predicate on the "provider_subject" field.
  434. func ProviderSubjectHasSuffix(v string) predicate.PendingAuthSession {
  435. return predicate.PendingAuthSession(sql.FieldHasSuffix(FieldProviderSubject, v))
  436. }
  437. // ProviderSubjectEqualFold applies the EqualFold predicate on the "provider_subject" field.
  438. func ProviderSubjectEqualFold(v string) predicate.PendingAuthSession {
  439. return predicate.PendingAuthSession(sql.FieldEqualFold(FieldProviderSubject, v))
  440. }
  441. // ProviderSubjectContainsFold applies the ContainsFold predicate on the "provider_subject" field.
  442. func ProviderSubjectContainsFold(v string) predicate.PendingAuthSession {
  443. return predicate.PendingAuthSession(sql.FieldContainsFold(FieldProviderSubject, v))
  444. }
  445. // TargetUserIDEQ applies the EQ predicate on the "target_user_id" field.
  446. func TargetUserIDEQ(v int64) predicate.PendingAuthSession {
  447. return predicate.PendingAuthSession(sql.FieldEQ(FieldTargetUserID, v))
  448. }
  449. // TargetUserIDNEQ applies the NEQ predicate on the "target_user_id" field.
  450. func TargetUserIDNEQ(v int64) predicate.PendingAuthSession {
  451. return predicate.PendingAuthSession(sql.FieldNEQ(FieldTargetUserID, v))
  452. }
  453. // TargetUserIDIn applies the In predicate on the "target_user_id" field.
  454. func TargetUserIDIn(vs ...int64) predicate.PendingAuthSession {
  455. return predicate.PendingAuthSession(sql.FieldIn(FieldTargetUserID, vs...))
  456. }
  457. // TargetUserIDNotIn applies the NotIn predicate on the "target_user_id" field.
  458. func TargetUserIDNotIn(vs ...int64) predicate.PendingAuthSession {
  459. return predicate.PendingAuthSession(sql.FieldNotIn(FieldTargetUserID, vs...))
  460. }
  461. // TargetUserIDIsNil applies the IsNil predicate on the "target_user_id" field.
  462. func TargetUserIDIsNil() predicate.PendingAuthSession {
  463. return predicate.PendingAuthSession(sql.FieldIsNull(FieldTargetUserID))
  464. }
  465. // TargetUserIDNotNil applies the NotNil predicate on the "target_user_id" field.
  466. func TargetUserIDNotNil() predicate.PendingAuthSession {
  467. return predicate.PendingAuthSession(sql.FieldNotNull(FieldTargetUserID))
  468. }
  469. // RedirectToEQ applies the EQ predicate on the "redirect_to" field.
  470. func RedirectToEQ(v string) predicate.PendingAuthSession {
  471. return predicate.PendingAuthSession(sql.FieldEQ(FieldRedirectTo, v))
  472. }
  473. // RedirectToNEQ applies the NEQ predicate on the "redirect_to" field.
  474. func RedirectToNEQ(v string) predicate.PendingAuthSession {
  475. return predicate.PendingAuthSession(sql.FieldNEQ(FieldRedirectTo, v))
  476. }
  477. // RedirectToIn applies the In predicate on the "redirect_to" field.
  478. func RedirectToIn(vs ...string) predicate.PendingAuthSession {
  479. return predicate.PendingAuthSession(sql.FieldIn(FieldRedirectTo, vs...))
  480. }
  481. // RedirectToNotIn applies the NotIn predicate on the "redirect_to" field.
  482. func RedirectToNotIn(vs ...string) predicate.PendingAuthSession {
  483. return predicate.PendingAuthSession(sql.FieldNotIn(FieldRedirectTo, vs...))
  484. }
  485. // RedirectToGT applies the GT predicate on the "redirect_to" field.
  486. func RedirectToGT(v string) predicate.PendingAuthSession {
  487. return predicate.PendingAuthSession(sql.FieldGT(FieldRedirectTo, v))
  488. }
  489. // RedirectToGTE applies the GTE predicate on the "redirect_to" field.
  490. func RedirectToGTE(v string) predicate.PendingAuthSession {
  491. return predicate.PendingAuthSession(sql.FieldGTE(FieldRedirectTo, v))
  492. }
  493. // RedirectToLT applies the LT predicate on the "redirect_to" field.
  494. func RedirectToLT(v string) predicate.PendingAuthSession {
  495. return predicate.PendingAuthSession(sql.FieldLT(FieldRedirectTo, v))
  496. }
  497. // RedirectToLTE applies the LTE predicate on the "redirect_to" field.
  498. func RedirectToLTE(v string) predicate.PendingAuthSession {
  499. return predicate.PendingAuthSession(sql.FieldLTE(FieldRedirectTo, v))
  500. }
  501. // RedirectToContains applies the Contains predicate on the "redirect_to" field.
  502. func RedirectToContains(v string) predicate.PendingAuthSession {
  503. return predicate.PendingAuthSession(sql.FieldContains(FieldRedirectTo, v))
  504. }
  505. // RedirectToHasPrefix applies the HasPrefix predicate on the "redirect_to" field.
  506. func RedirectToHasPrefix(v string) predicate.PendingAuthSession {
  507. return predicate.PendingAuthSession(sql.FieldHasPrefix(FieldRedirectTo, v))
  508. }
  509. // RedirectToHasSuffix applies the HasSuffix predicate on the "redirect_to" field.
  510. func RedirectToHasSuffix(v string) predicate.PendingAuthSession {
  511. return predicate.PendingAuthSession(sql.FieldHasSuffix(FieldRedirectTo, v))
  512. }
  513. // RedirectToEqualFold applies the EqualFold predicate on the "redirect_to" field.
  514. func RedirectToEqualFold(v string) predicate.PendingAuthSession {
  515. return predicate.PendingAuthSession(sql.FieldEqualFold(FieldRedirectTo, v))
  516. }
  517. // RedirectToContainsFold applies the ContainsFold predicate on the "redirect_to" field.
  518. func RedirectToContainsFold(v string) predicate.PendingAuthSession {
  519. return predicate.PendingAuthSession(sql.FieldContainsFold(FieldRedirectTo, v))
  520. }
  521. // ResolvedEmailEQ applies the EQ predicate on the "resolved_email" field.
  522. func ResolvedEmailEQ(v string) predicate.PendingAuthSession {
  523. return predicate.PendingAuthSession(sql.FieldEQ(FieldResolvedEmail, v))
  524. }
  525. // ResolvedEmailNEQ applies the NEQ predicate on the "resolved_email" field.
  526. func ResolvedEmailNEQ(v string) predicate.PendingAuthSession {
  527. return predicate.PendingAuthSession(sql.FieldNEQ(FieldResolvedEmail, v))
  528. }
  529. // ResolvedEmailIn applies the In predicate on the "resolved_email" field.
  530. func ResolvedEmailIn(vs ...string) predicate.PendingAuthSession {
  531. return predicate.PendingAuthSession(sql.FieldIn(FieldResolvedEmail, vs...))
  532. }
  533. // ResolvedEmailNotIn applies the NotIn predicate on the "resolved_email" field.
  534. func ResolvedEmailNotIn(vs ...string) predicate.PendingAuthSession {
  535. return predicate.PendingAuthSession(sql.FieldNotIn(FieldResolvedEmail, vs...))
  536. }
  537. // ResolvedEmailGT applies the GT predicate on the "resolved_email" field.
  538. func ResolvedEmailGT(v string) predicate.PendingAuthSession {
  539. return predicate.PendingAuthSession(sql.FieldGT(FieldResolvedEmail, v))
  540. }
  541. // ResolvedEmailGTE applies the GTE predicate on the "resolved_email" field.
  542. func ResolvedEmailGTE(v string) predicate.PendingAuthSession {
  543. return predicate.PendingAuthSession(sql.FieldGTE(FieldResolvedEmail, v))
  544. }
  545. // ResolvedEmailLT applies the LT predicate on the "resolved_email" field.
  546. func ResolvedEmailLT(v string) predicate.PendingAuthSession {
  547. return predicate.PendingAuthSession(sql.FieldLT(FieldResolvedEmail, v))
  548. }
  549. // ResolvedEmailLTE applies the LTE predicate on the "resolved_email" field.
  550. func ResolvedEmailLTE(v string) predicate.PendingAuthSession {
  551. return predicate.PendingAuthSession(sql.FieldLTE(FieldResolvedEmail, v))
  552. }
  553. // ResolvedEmailContains applies the Contains predicate on the "resolved_email" field.
  554. func ResolvedEmailContains(v string) predicate.PendingAuthSession {
  555. return predicate.PendingAuthSession(sql.FieldContains(FieldResolvedEmail, v))
  556. }
  557. // ResolvedEmailHasPrefix applies the HasPrefix predicate on the "resolved_email" field.
  558. func ResolvedEmailHasPrefix(v string) predicate.PendingAuthSession {
  559. return predicate.PendingAuthSession(sql.FieldHasPrefix(FieldResolvedEmail, v))
  560. }
  561. // ResolvedEmailHasSuffix applies the HasSuffix predicate on the "resolved_email" field.
  562. func ResolvedEmailHasSuffix(v string) predicate.PendingAuthSession {
  563. return predicate.PendingAuthSession(sql.FieldHasSuffix(FieldResolvedEmail, v))
  564. }
  565. // ResolvedEmailEqualFold applies the EqualFold predicate on the "resolved_email" field.
  566. func ResolvedEmailEqualFold(v string) predicate.PendingAuthSession {
  567. return predicate.PendingAuthSession(sql.FieldEqualFold(FieldResolvedEmail, v))
  568. }
  569. // ResolvedEmailContainsFold applies the ContainsFold predicate on the "resolved_email" field.
  570. func ResolvedEmailContainsFold(v string) predicate.PendingAuthSession {
  571. return predicate.PendingAuthSession(sql.FieldContainsFold(FieldResolvedEmail, v))
  572. }
  573. // RegistrationPasswordHashEQ applies the EQ predicate on the "registration_password_hash" field.
  574. func RegistrationPasswordHashEQ(v string) predicate.PendingAuthSession {
  575. return predicate.PendingAuthSession(sql.FieldEQ(FieldRegistrationPasswordHash, v))
  576. }
  577. // RegistrationPasswordHashNEQ applies the NEQ predicate on the "registration_password_hash" field.
  578. func RegistrationPasswordHashNEQ(v string) predicate.PendingAuthSession {
  579. return predicate.PendingAuthSession(sql.FieldNEQ(FieldRegistrationPasswordHash, v))
  580. }
  581. // RegistrationPasswordHashIn applies the In predicate on the "registration_password_hash" field.
  582. func RegistrationPasswordHashIn(vs ...string) predicate.PendingAuthSession {
  583. return predicate.PendingAuthSession(sql.FieldIn(FieldRegistrationPasswordHash, vs...))
  584. }
  585. // RegistrationPasswordHashNotIn applies the NotIn predicate on the "registration_password_hash" field.
  586. func RegistrationPasswordHashNotIn(vs ...string) predicate.PendingAuthSession {
  587. return predicate.PendingAuthSession(sql.FieldNotIn(FieldRegistrationPasswordHash, vs...))
  588. }
  589. // RegistrationPasswordHashGT applies the GT predicate on the "registration_password_hash" field.
  590. func RegistrationPasswordHashGT(v string) predicate.PendingAuthSession {
  591. return predicate.PendingAuthSession(sql.FieldGT(FieldRegistrationPasswordHash, v))
  592. }
  593. // RegistrationPasswordHashGTE applies the GTE predicate on the "registration_password_hash" field.
  594. func RegistrationPasswordHashGTE(v string) predicate.PendingAuthSession {
  595. return predicate.PendingAuthSession(sql.FieldGTE(FieldRegistrationPasswordHash, v))
  596. }
  597. // RegistrationPasswordHashLT applies the LT predicate on the "registration_password_hash" field.
  598. func RegistrationPasswordHashLT(v string) predicate.PendingAuthSession {
  599. return predicate.PendingAuthSession(sql.FieldLT(FieldRegistrationPasswordHash, v))
  600. }
  601. // RegistrationPasswordHashLTE applies the LTE predicate on the "registration_password_hash" field.
  602. func RegistrationPasswordHashLTE(v string) predicate.PendingAuthSession {
  603. return predicate.PendingAuthSession(sql.FieldLTE(FieldRegistrationPasswordHash, v))
  604. }
  605. // RegistrationPasswordHashContains applies the Contains predicate on the "registration_password_hash" field.
  606. func RegistrationPasswordHashContains(v string) predicate.PendingAuthSession {
  607. return predicate.PendingAuthSession(sql.FieldContains(FieldRegistrationPasswordHash, v))
  608. }
  609. // RegistrationPasswordHashHasPrefix applies the HasPrefix predicate on the "registration_password_hash" field.
  610. func RegistrationPasswordHashHasPrefix(v string) predicate.PendingAuthSession {
  611. return predicate.PendingAuthSession(sql.FieldHasPrefix(FieldRegistrationPasswordHash, v))
  612. }
  613. // RegistrationPasswordHashHasSuffix applies the HasSuffix predicate on the "registration_password_hash" field.
  614. func RegistrationPasswordHashHasSuffix(v string) predicate.PendingAuthSession {
  615. return predicate.PendingAuthSession(sql.FieldHasSuffix(FieldRegistrationPasswordHash, v))
  616. }
  617. // RegistrationPasswordHashEqualFold applies the EqualFold predicate on the "registration_password_hash" field.
  618. func RegistrationPasswordHashEqualFold(v string) predicate.PendingAuthSession {
  619. return predicate.PendingAuthSession(sql.FieldEqualFold(FieldRegistrationPasswordHash, v))
  620. }
  621. // RegistrationPasswordHashContainsFold applies the ContainsFold predicate on the "registration_password_hash" field.
  622. func RegistrationPasswordHashContainsFold(v string) predicate.PendingAuthSession {
  623. return predicate.PendingAuthSession(sql.FieldContainsFold(FieldRegistrationPasswordHash, v))
  624. }
  625. // BrowserSessionKeyEQ applies the EQ predicate on the "browser_session_key" field.
  626. func BrowserSessionKeyEQ(v string) predicate.PendingAuthSession {
  627. return predicate.PendingAuthSession(sql.FieldEQ(FieldBrowserSessionKey, v))
  628. }
  629. // BrowserSessionKeyNEQ applies the NEQ predicate on the "browser_session_key" field.
  630. func BrowserSessionKeyNEQ(v string) predicate.PendingAuthSession {
  631. return predicate.PendingAuthSession(sql.FieldNEQ(FieldBrowserSessionKey, v))
  632. }
  633. // BrowserSessionKeyIn applies the In predicate on the "browser_session_key" field.
  634. func BrowserSessionKeyIn(vs ...string) predicate.PendingAuthSession {
  635. return predicate.PendingAuthSession(sql.FieldIn(FieldBrowserSessionKey, vs...))
  636. }
  637. // BrowserSessionKeyNotIn applies the NotIn predicate on the "browser_session_key" field.
  638. func BrowserSessionKeyNotIn(vs ...string) predicate.PendingAuthSession {
  639. return predicate.PendingAuthSession(sql.FieldNotIn(FieldBrowserSessionKey, vs...))
  640. }
  641. // BrowserSessionKeyGT applies the GT predicate on the "browser_session_key" field.
  642. func BrowserSessionKeyGT(v string) predicate.PendingAuthSession {
  643. return predicate.PendingAuthSession(sql.FieldGT(FieldBrowserSessionKey, v))
  644. }
  645. // BrowserSessionKeyGTE applies the GTE predicate on the "browser_session_key" field.
  646. func BrowserSessionKeyGTE(v string) predicate.PendingAuthSession {
  647. return predicate.PendingAuthSession(sql.FieldGTE(FieldBrowserSessionKey, v))
  648. }
  649. // BrowserSessionKeyLT applies the LT predicate on the "browser_session_key" field.
  650. func BrowserSessionKeyLT(v string) predicate.PendingAuthSession {
  651. return predicate.PendingAuthSession(sql.FieldLT(FieldBrowserSessionKey, v))
  652. }
  653. // BrowserSessionKeyLTE applies the LTE predicate on the "browser_session_key" field.
  654. func BrowserSessionKeyLTE(v string) predicate.PendingAuthSession {
  655. return predicate.PendingAuthSession(sql.FieldLTE(FieldBrowserSessionKey, v))
  656. }
  657. // BrowserSessionKeyContains applies the Contains predicate on the "browser_session_key" field.
  658. func BrowserSessionKeyContains(v string) predicate.PendingAuthSession {
  659. return predicate.PendingAuthSession(sql.FieldContains(FieldBrowserSessionKey, v))
  660. }
  661. // BrowserSessionKeyHasPrefix applies the HasPrefix predicate on the "browser_session_key" field.
  662. func BrowserSessionKeyHasPrefix(v string) predicate.PendingAuthSession {
  663. return predicate.PendingAuthSession(sql.FieldHasPrefix(FieldBrowserSessionKey, v))
  664. }
  665. // BrowserSessionKeyHasSuffix applies the HasSuffix predicate on the "browser_session_key" field.
  666. func BrowserSessionKeyHasSuffix(v string) predicate.PendingAuthSession {
  667. return predicate.PendingAuthSession(sql.FieldHasSuffix(FieldBrowserSessionKey, v))
  668. }
  669. // BrowserSessionKeyEqualFold applies the EqualFold predicate on the "browser_session_key" field.
  670. func BrowserSessionKeyEqualFold(v string) predicate.PendingAuthSession {
  671. return predicate.PendingAuthSession(sql.FieldEqualFold(FieldBrowserSessionKey, v))
  672. }
  673. // BrowserSessionKeyContainsFold applies the ContainsFold predicate on the "browser_session_key" field.
  674. func BrowserSessionKeyContainsFold(v string) predicate.PendingAuthSession {
  675. return predicate.PendingAuthSession(sql.FieldContainsFold(FieldBrowserSessionKey, v))
  676. }
  677. // CompletionCodeHashEQ applies the EQ predicate on the "completion_code_hash" field.
  678. func CompletionCodeHashEQ(v string) predicate.PendingAuthSession {
  679. return predicate.PendingAuthSession(sql.FieldEQ(FieldCompletionCodeHash, v))
  680. }
  681. // CompletionCodeHashNEQ applies the NEQ predicate on the "completion_code_hash" field.
  682. func CompletionCodeHashNEQ(v string) predicate.PendingAuthSession {
  683. return predicate.PendingAuthSession(sql.FieldNEQ(FieldCompletionCodeHash, v))
  684. }
  685. // CompletionCodeHashIn applies the In predicate on the "completion_code_hash" field.
  686. func CompletionCodeHashIn(vs ...string) predicate.PendingAuthSession {
  687. return predicate.PendingAuthSession(sql.FieldIn(FieldCompletionCodeHash, vs...))
  688. }
  689. // CompletionCodeHashNotIn applies the NotIn predicate on the "completion_code_hash" field.
  690. func CompletionCodeHashNotIn(vs ...string) predicate.PendingAuthSession {
  691. return predicate.PendingAuthSession(sql.FieldNotIn(FieldCompletionCodeHash, vs...))
  692. }
  693. // CompletionCodeHashGT applies the GT predicate on the "completion_code_hash" field.
  694. func CompletionCodeHashGT(v string) predicate.PendingAuthSession {
  695. return predicate.PendingAuthSession(sql.FieldGT(FieldCompletionCodeHash, v))
  696. }
  697. // CompletionCodeHashGTE applies the GTE predicate on the "completion_code_hash" field.
  698. func CompletionCodeHashGTE(v string) predicate.PendingAuthSession {
  699. return predicate.PendingAuthSession(sql.FieldGTE(FieldCompletionCodeHash, v))
  700. }
  701. // CompletionCodeHashLT applies the LT predicate on the "completion_code_hash" field.
  702. func CompletionCodeHashLT(v string) predicate.PendingAuthSession {
  703. return predicate.PendingAuthSession(sql.FieldLT(FieldCompletionCodeHash, v))
  704. }
  705. // CompletionCodeHashLTE applies the LTE predicate on the "completion_code_hash" field.
  706. func CompletionCodeHashLTE(v string) predicate.PendingAuthSession {
  707. return predicate.PendingAuthSession(sql.FieldLTE(FieldCompletionCodeHash, v))
  708. }
  709. // CompletionCodeHashContains applies the Contains predicate on the "completion_code_hash" field.
  710. func CompletionCodeHashContains(v string) predicate.PendingAuthSession {
  711. return predicate.PendingAuthSession(sql.FieldContains(FieldCompletionCodeHash, v))
  712. }
  713. // CompletionCodeHashHasPrefix applies the HasPrefix predicate on the "completion_code_hash" field.
  714. func CompletionCodeHashHasPrefix(v string) predicate.PendingAuthSession {
  715. return predicate.PendingAuthSession(sql.FieldHasPrefix(FieldCompletionCodeHash, v))
  716. }
  717. // CompletionCodeHashHasSuffix applies the HasSuffix predicate on the "completion_code_hash" field.
  718. func CompletionCodeHashHasSuffix(v string) predicate.PendingAuthSession {
  719. return predicate.PendingAuthSession(sql.FieldHasSuffix(FieldCompletionCodeHash, v))
  720. }
  721. // CompletionCodeHashEqualFold applies the EqualFold predicate on the "completion_code_hash" field.
  722. func CompletionCodeHashEqualFold(v string) predicate.PendingAuthSession {
  723. return predicate.PendingAuthSession(sql.FieldEqualFold(FieldCompletionCodeHash, v))
  724. }
  725. // CompletionCodeHashContainsFold applies the ContainsFold predicate on the "completion_code_hash" field.
  726. func CompletionCodeHashContainsFold(v string) predicate.PendingAuthSession {
  727. return predicate.PendingAuthSession(sql.FieldContainsFold(FieldCompletionCodeHash, v))
  728. }
  729. // CompletionCodeExpiresAtEQ applies the EQ predicate on the "completion_code_expires_at" field.
  730. func CompletionCodeExpiresAtEQ(v time.Time) predicate.PendingAuthSession {
  731. return predicate.PendingAuthSession(sql.FieldEQ(FieldCompletionCodeExpiresAt, v))
  732. }
  733. // CompletionCodeExpiresAtNEQ applies the NEQ predicate on the "completion_code_expires_at" field.
  734. func CompletionCodeExpiresAtNEQ(v time.Time) predicate.PendingAuthSession {
  735. return predicate.PendingAuthSession(sql.FieldNEQ(FieldCompletionCodeExpiresAt, v))
  736. }
  737. // CompletionCodeExpiresAtIn applies the In predicate on the "completion_code_expires_at" field.
  738. func CompletionCodeExpiresAtIn(vs ...time.Time) predicate.PendingAuthSession {
  739. return predicate.PendingAuthSession(sql.FieldIn(FieldCompletionCodeExpiresAt, vs...))
  740. }
  741. // CompletionCodeExpiresAtNotIn applies the NotIn predicate on the "completion_code_expires_at" field.
  742. func CompletionCodeExpiresAtNotIn(vs ...time.Time) predicate.PendingAuthSession {
  743. return predicate.PendingAuthSession(sql.FieldNotIn(FieldCompletionCodeExpiresAt, vs...))
  744. }
  745. // CompletionCodeExpiresAtGT applies the GT predicate on the "completion_code_expires_at" field.
  746. func CompletionCodeExpiresAtGT(v time.Time) predicate.PendingAuthSession {
  747. return predicate.PendingAuthSession(sql.FieldGT(FieldCompletionCodeExpiresAt, v))
  748. }
  749. // CompletionCodeExpiresAtGTE applies the GTE predicate on the "completion_code_expires_at" field.
  750. func CompletionCodeExpiresAtGTE(v time.Time) predicate.PendingAuthSession {
  751. return predicate.PendingAuthSession(sql.FieldGTE(FieldCompletionCodeExpiresAt, v))
  752. }
  753. // CompletionCodeExpiresAtLT applies the LT predicate on the "completion_code_expires_at" field.
  754. func CompletionCodeExpiresAtLT(v time.Time) predicate.PendingAuthSession {
  755. return predicate.PendingAuthSession(sql.FieldLT(FieldCompletionCodeExpiresAt, v))
  756. }
  757. // CompletionCodeExpiresAtLTE applies the LTE predicate on the "completion_code_expires_at" field.
  758. func CompletionCodeExpiresAtLTE(v time.Time) predicate.PendingAuthSession {
  759. return predicate.PendingAuthSession(sql.FieldLTE(FieldCompletionCodeExpiresAt, v))
  760. }
  761. // CompletionCodeExpiresAtIsNil applies the IsNil predicate on the "completion_code_expires_at" field.
  762. func CompletionCodeExpiresAtIsNil() predicate.PendingAuthSession {
  763. return predicate.PendingAuthSession(sql.FieldIsNull(FieldCompletionCodeExpiresAt))
  764. }
  765. // CompletionCodeExpiresAtNotNil applies the NotNil predicate on the "completion_code_expires_at" field.
  766. func CompletionCodeExpiresAtNotNil() predicate.PendingAuthSession {
  767. return predicate.PendingAuthSession(sql.FieldNotNull(FieldCompletionCodeExpiresAt))
  768. }
  769. // EmailVerifiedAtEQ applies the EQ predicate on the "email_verified_at" field.
  770. func EmailVerifiedAtEQ(v time.Time) predicate.PendingAuthSession {
  771. return predicate.PendingAuthSession(sql.FieldEQ(FieldEmailVerifiedAt, v))
  772. }
  773. // EmailVerifiedAtNEQ applies the NEQ predicate on the "email_verified_at" field.
  774. func EmailVerifiedAtNEQ(v time.Time) predicate.PendingAuthSession {
  775. return predicate.PendingAuthSession(sql.FieldNEQ(FieldEmailVerifiedAt, v))
  776. }
  777. // EmailVerifiedAtIn applies the In predicate on the "email_verified_at" field.
  778. func EmailVerifiedAtIn(vs ...time.Time) predicate.PendingAuthSession {
  779. return predicate.PendingAuthSession(sql.FieldIn(FieldEmailVerifiedAt, vs...))
  780. }
  781. // EmailVerifiedAtNotIn applies the NotIn predicate on the "email_verified_at" field.
  782. func EmailVerifiedAtNotIn(vs ...time.Time) predicate.PendingAuthSession {
  783. return predicate.PendingAuthSession(sql.FieldNotIn(FieldEmailVerifiedAt, vs...))
  784. }
  785. // EmailVerifiedAtGT applies the GT predicate on the "email_verified_at" field.
  786. func EmailVerifiedAtGT(v time.Time) predicate.PendingAuthSession {
  787. return predicate.PendingAuthSession(sql.FieldGT(FieldEmailVerifiedAt, v))
  788. }
  789. // EmailVerifiedAtGTE applies the GTE predicate on the "email_verified_at" field.
  790. func EmailVerifiedAtGTE(v time.Time) predicate.PendingAuthSession {
  791. return predicate.PendingAuthSession(sql.FieldGTE(FieldEmailVerifiedAt, v))
  792. }
  793. // EmailVerifiedAtLT applies the LT predicate on the "email_verified_at" field.
  794. func EmailVerifiedAtLT(v time.Time) predicate.PendingAuthSession {
  795. return predicate.PendingAuthSession(sql.FieldLT(FieldEmailVerifiedAt, v))
  796. }
  797. // EmailVerifiedAtLTE applies the LTE predicate on the "email_verified_at" field.
  798. func EmailVerifiedAtLTE(v time.Time) predicate.PendingAuthSession {
  799. return predicate.PendingAuthSession(sql.FieldLTE(FieldEmailVerifiedAt, v))
  800. }
  801. // EmailVerifiedAtIsNil applies the IsNil predicate on the "email_verified_at" field.
  802. func EmailVerifiedAtIsNil() predicate.PendingAuthSession {
  803. return predicate.PendingAuthSession(sql.FieldIsNull(FieldEmailVerifiedAt))
  804. }
  805. // EmailVerifiedAtNotNil applies the NotNil predicate on the "email_verified_at" field.
  806. func EmailVerifiedAtNotNil() predicate.PendingAuthSession {
  807. return predicate.PendingAuthSession(sql.FieldNotNull(FieldEmailVerifiedAt))
  808. }
  809. // PasswordVerifiedAtEQ applies the EQ predicate on the "password_verified_at" field.
  810. func PasswordVerifiedAtEQ(v time.Time) predicate.PendingAuthSession {
  811. return predicate.PendingAuthSession(sql.FieldEQ(FieldPasswordVerifiedAt, v))
  812. }
  813. // PasswordVerifiedAtNEQ applies the NEQ predicate on the "password_verified_at" field.
  814. func PasswordVerifiedAtNEQ(v time.Time) predicate.PendingAuthSession {
  815. return predicate.PendingAuthSession(sql.FieldNEQ(FieldPasswordVerifiedAt, v))
  816. }
  817. // PasswordVerifiedAtIn applies the In predicate on the "password_verified_at" field.
  818. func PasswordVerifiedAtIn(vs ...time.Time) predicate.PendingAuthSession {
  819. return predicate.PendingAuthSession(sql.FieldIn(FieldPasswordVerifiedAt, vs...))
  820. }
  821. // PasswordVerifiedAtNotIn applies the NotIn predicate on the "password_verified_at" field.
  822. func PasswordVerifiedAtNotIn(vs ...time.Time) predicate.PendingAuthSession {
  823. return predicate.PendingAuthSession(sql.FieldNotIn(FieldPasswordVerifiedAt, vs...))
  824. }
  825. // PasswordVerifiedAtGT applies the GT predicate on the "password_verified_at" field.
  826. func PasswordVerifiedAtGT(v time.Time) predicate.PendingAuthSession {
  827. return predicate.PendingAuthSession(sql.FieldGT(FieldPasswordVerifiedAt, v))
  828. }
  829. // PasswordVerifiedAtGTE applies the GTE predicate on the "password_verified_at" field.
  830. func PasswordVerifiedAtGTE(v time.Time) predicate.PendingAuthSession {
  831. return predicate.PendingAuthSession(sql.FieldGTE(FieldPasswordVerifiedAt, v))
  832. }
  833. // PasswordVerifiedAtLT applies the LT predicate on the "password_verified_at" field.
  834. func PasswordVerifiedAtLT(v time.Time) predicate.PendingAuthSession {
  835. return predicate.PendingAuthSession(sql.FieldLT(FieldPasswordVerifiedAt, v))
  836. }
  837. // PasswordVerifiedAtLTE applies the LTE predicate on the "password_verified_at" field.
  838. func PasswordVerifiedAtLTE(v time.Time) predicate.PendingAuthSession {
  839. return predicate.PendingAuthSession(sql.FieldLTE(FieldPasswordVerifiedAt, v))
  840. }
  841. // PasswordVerifiedAtIsNil applies the IsNil predicate on the "password_verified_at" field.
  842. func PasswordVerifiedAtIsNil() predicate.PendingAuthSession {
  843. return predicate.PendingAuthSession(sql.FieldIsNull(FieldPasswordVerifiedAt))
  844. }
  845. // PasswordVerifiedAtNotNil applies the NotNil predicate on the "password_verified_at" field.
  846. func PasswordVerifiedAtNotNil() predicate.PendingAuthSession {
  847. return predicate.PendingAuthSession(sql.FieldNotNull(FieldPasswordVerifiedAt))
  848. }
  849. // TotpVerifiedAtEQ applies the EQ predicate on the "totp_verified_at" field.
  850. func TotpVerifiedAtEQ(v time.Time) predicate.PendingAuthSession {
  851. return predicate.PendingAuthSession(sql.FieldEQ(FieldTotpVerifiedAt, v))
  852. }
  853. // TotpVerifiedAtNEQ applies the NEQ predicate on the "totp_verified_at" field.
  854. func TotpVerifiedAtNEQ(v time.Time) predicate.PendingAuthSession {
  855. return predicate.PendingAuthSession(sql.FieldNEQ(FieldTotpVerifiedAt, v))
  856. }
  857. // TotpVerifiedAtIn applies the In predicate on the "totp_verified_at" field.
  858. func TotpVerifiedAtIn(vs ...time.Time) predicate.PendingAuthSession {
  859. return predicate.PendingAuthSession(sql.FieldIn(FieldTotpVerifiedAt, vs...))
  860. }
  861. // TotpVerifiedAtNotIn applies the NotIn predicate on the "totp_verified_at" field.
  862. func TotpVerifiedAtNotIn(vs ...time.Time) predicate.PendingAuthSession {
  863. return predicate.PendingAuthSession(sql.FieldNotIn(FieldTotpVerifiedAt, vs...))
  864. }
  865. // TotpVerifiedAtGT applies the GT predicate on the "totp_verified_at" field.
  866. func TotpVerifiedAtGT(v time.Time) predicate.PendingAuthSession {
  867. return predicate.PendingAuthSession(sql.FieldGT(FieldTotpVerifiedAt, v))
  868. }
  869. // TotpVerifiedAtGTE applies the GTE predicate on the "totp_verified_at" field.
  870. func TotpVerifiedAtGTE(v time.Time) predicate.PendingAuthSession {
  871. return predicate.PendingAuthSession(sql.FieldGTE(FieldTotpVerifiedAt, v))
  872. }
  873. // TotpVerifiedAtLT applies the LT predicate on the "totp_verified_at" field.
  874. func TotpVerifiedAtLT(v time.Time) predicate.PendingAuthSession {
  875. return predicate.PendingAuthSession(sql.FieldLT(FieldTotpVerifiedAt, v))
  876. }
  877. // TotpVerifiedAtLTE applies the LTE predicate on the "totp_verified_at" field.
  878. func TotpVerifiedAtLTE(v time.Time) predicate.PendingAuthSession {
  879. return predicate.PendingAuthSession(sql.FieldLTE(FieldTotpVerifiedAt, v))
  880. }
  881. // TotpVerifiedAtIsNil applies the IsNil predicate on the "totp_verified_at" field.
  882. func TotpVerifiedAtIsNil() predicate.PendingAuthSession {
  883. return predicate.PendingAuthSession(sql.FieldIsNull(FieldTotpVerifiedAt))
  884. }
  885. // TotpVerifiedAtNotNil applies the NotNil predicate on the "totp_verified_at" field.
  886. func TotpVerifiedAtNotNil() predicate.PendingAuthSession {
  887. return predicate.PendingAuthSession(sql.FieldNotNull(FieldTotpVerifiedAt))
  888. }
  889. // ExpiresAtEQ applies the EQ predicate on the "expires_at" field.
  890. func ExpiresAtEQ(v time.Time) predicate.PendingAuthSession {
  891. return predicate.PendingAuthSession(sql.FieldEQ(FieldExpiresAt, v))
  892. }
  893. // ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.
  894. func ExpiresAtNEQ(v time.Time) predicate.PendingAuthSession {
  895. return predicate.PendingAuthSession(sql.FieldNEQ(FieldExpiresAt, v))
  896. }
  897. // ExpiresAtIn applies the In predicate on the "expires_at" field.
  898. func ExpiresAtIn(vs ...time.Time) predicate.PendingAuthSession {
  899. return predicate.PendingAuthSession(sql.FieldIn(FieldExpiresAt, vs...))
  900. }
  901. // ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.
  902. func ExpiresAtNotIn(vs ...time.Time) predicate.PendingAuthSession {
  903. return predicate.PendingAuthSession(sql.FieldNotIn(FieldExpiresAt, vs...))
  904. }
  905. // ExpiresAtGT applies the GT predicate on the "expires_at" field.
  906. func ExpiresAtGT(v time.Time) predicate.PendingAuthSession {
  907. return predicate.PendingAuthSession(sql.FieldGT(FieldExpiresAt, v))
  908. }
  909. // ExpiresAtGTE applies the GTE predicate on the "expires_at" field.
  910. func ExpiresAtGTE(v time.Time) predicate.PendingAuthSession {
  911. return predicate.PendingAuthSession(sql.FieldGTE(FieldExpiresAt, v))
  912. }
  913. // ExpiresAtLT applies the LT predicate on the "expires_at" field.
  914. func ExpiresAtLT(v time.Time) predicate.PendingAuthSession {
  915. return predicate.PendingAuthSession(sql.FieldLT(FieldExpiresAt, v))
  916. }
  917. // ExpiresAtLTE applies the LTE predicate on the "expires_at" field.
  918. func ExpiresAtLTE(v time.Time) predicate.PendingAuthSession {
  919. return predicate.PendingAuthSession(sql.FieldLTE(FieldExpiresAt, v))
  920. }
  921. // ConsumedAtEQ applies the EQ predicate on the "consumed_at" field.
  922. func ConsumedAtEQ(v time.Time) predicate.PendingAuthSession {
  923. return predicate.PendingAuthSession(sql.FieldEQ(FieldConsumedAt, v))
  924. }
  925. // ConsumedAtNEQ applies the NEQ predicate on the "consumed_at" field.
  926. func ConsumedAtNEQ(v time.Time) predicate.PendingAuthSession {
  927. return predicate.PendingAuthSession(sql.FieldNEQ(FieldConsumedAt, v))
  928. }
  929. // ConsumedAtIn applies the In predicate on the "consumed_at" field.
  930. func ConsumedAtIn(vs ...time.Time) predicate.PendingAuthSession {
  931. return predicate.PendingAuthSession(sql.FieldIn(FieldConsumedAt, vs...))
  932. }
  933. // ConsumedAtNotIn applies the NotIn predicate on the "consumed_at" field.
  934. func ConsumedAtNotIn(vs ...time.Time) predicate.PendingAuthSession {
  935. return predicate.PendingAuthSession(sql.FieldNotIn(FieldConsumedAt, vs...))
  936. }
  937. // ConsumedAtGT applies the GT predicate on the "consumed_at" field.
  938. func ConsumedAtGT(v time.Time) predicate.PendingAuthSession {
  939. return predicate.PendingAuthSession(sql.FieldGT(FieldConsumedAt, v))
  940. }
  941. // ConsumedAtGTE applies the GTE predicate on the "consumed_at" field.
  942. func ConsumedAtGTE(v time.Time) predicate.PendingAuthSession {
  943. return predicate.PendingAuthSession(sql.FieldGTE(FieldConsumedAt, v))
  944. }
  945. // ConsumedAtLT applies the LT predicate on the "consumed_at" field.
  946. func ConsumedAtLT(v time.Time) predicate.PendingAuthSession {
  947. return predicate.PendingAuthSession(sql.FieldLT(FieldConsumedAt, v))
  948. }
  949. // ConsumedAtLTE applies the LTE predicate on the "consumed_at" field.
  950. func ConsumedAtLTE(v time.Time) predicate.PendingAuthSession {
  951. return predicate.PendingAuthSession(sql.FieldLTE(FieldConsumedAt, v))
  952. }
  953. // ConsumedAtIsNil applies the IsNil predicate on the "consumed_at" field.
  954. func ConsumedAtIsNil() predicate.PendingAuthSession {
  955. return predicate.PendingAuthSession(sql.FieldIsNull(FieldConsumedAt))
  956. }
  957. // ConsumedAtNotNil applies the NotNil predicate on the "consumed_at" field.
  958. func ConsumedAtNotNil() predicate.PendingAuthSession {
  959. return predicate.PendingAuthSession(sql.FieldNotNull(FieldConsumedAt))
  960. }
  961. // HasTargetUser applies the HasEdge predicate on the "target_user" edge.
  962. func HasTargetUser() predicate.PendingAuthSession {
  963. return predicate.PendingAuthSession(func(s *sql.Selector) {
  964. step := sqlgraph.NewStep(
  965. sqlgraph.From(Table, FieldID),
  966. sqlgraph.Edge(sqlgraph.M2O, true, TargetUserTable, TargetUserColumn),
  967. )
  968. sqlgraph.HasNeighbors(s, step)
  969. })
  970. }
  971. // HasTargetUserWith applies the HasEdge predicate on the "target_user" edge with a given conditions (other predicates).
  972. func HasTargetUserWith(preds ...predicate.User) predicate.PendingAuthSession {
  973. return predicate.PendingAuthSession(func(s *sql.Selector) {
  974. step := newTargetUserStep()
  975. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  976. for _, p := range preds {
  977. p(s)
  978. }
  979. })
  980. })
  981. }
  982. // HasAdoptionDecision applies the HasEdge predicate on the "adoption_decision" edge.
  983. func HasAdoptionDecision() predicate.PendingAuthSession {
  984. return predicate.PendingAuthSession(func(s *sql.Selector) {
  985. step := sqlgraph.NewStep(
  986. sqlgraph.From(Table, FieldID),
  987. sqlgraph.Edge(sqlgraph.O2O, false, AdoptionDecisionTable, AdoptionDecisionColumn),
  988. )
  989. sqlgraph.HasNeighbors(s, step)
  990. })
  991. }
  992. // HasAdoptionDecisionWith applies the HasEdge predicate on the "adoption_decision" edge with a given conditions (other predicates).
  993. func HasAdoptionDecisionWith(preds ...predicate.IdentityAdoptionDecision) predicate.PendingAuthSession {
  994. return predicate.PendingAuthSession(func(s *sql.Selector) {
  995. step := newAdoptionDecisionStep()
  996. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  997. for _, p := range preds {
  998. p(s)
  999. }
  1000. })
  1001. })
  1002. }
  1003. // And groups predicates with the AND operator between them.
  1004. func And(predicates ...predicate.PendingAuthSession) predicate.PendingAuthSession {
  1005. return predicate.PendingAuthSession(sql.AndPredicates(predicates...))
  1006. }
  1007. // Or groups predicates with the OR operator between them.
  1008. func Or(predicates ...predicate.PendingAuthSession) predicate.PendingAuthSession {
  1009. return predicate.PendingAuthSession(sql.OrPredicates(predicates...))
  1010. }
  1011. // Not applies the not operator on the given predicate.
  1012. func Not(p predicate.PendingAuthSession) predicate.PendingAuthSession {
  1013. return predicate.PendingAuthSession(sql.NotPredicates(p))
  1014. }