generated from matoszz/mitbgo-template
-
Notifications
You must be signed in to change notification settings - Fork 7
/
where.go
791 lines (639 loc) · 32 KB
/
where.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
// Code generated by ent, DO NOT EDIT.
package ohauthtootoken
import (
"time"
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"github.com/datumforge/datum/internal/ent/generated/predicate"
"github.com/datumforge/datum/internal/ent/generated/internal"
)
// ID filters vertices based on their ID field.
func ID(id string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldLTE(FieldID, id))
}
// IDEqualFold applies the EqualFold predicate on the ID field.
func IDEqualFold(id string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldEqualFold(FieldID, id))
}
// IDContainsFold applies the ContainsFold predicate on the ID field.
func IDContainsFold(id string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldContainsFold(FieldID, id))
}
// MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ.
func MappingID(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldEQ(FieldMappingID, v))
}
// ClientID applies equality check predicate on the "client_id" field. It's identical to ClientIDEQ.
func ClientID(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldEQ(FieldClientID, v))
}
// Nonce applies equality check predicate on the "nonce" field. It's identical to NonceEQ.
func Nonce(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldEQ(FieldNonce, v))
}
// ClaimsUserID applies equality check predicate on the "claims_user_id" field. It's identical to ClaimsUserIDEQ.
func ClaimsUserID(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldEQ(FieldClaimsUserID, v))
}
// ClaimsUsername applies equality check predicate on the "claims_username" field. It's identical to ClaimsUsernameEQ.
func ClaimsUsername(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldEQ(FieldClaimsUsername, v))
}
// ClaimsEmail applies equality check predicate on the "claims_email" field. It's identical to ClaimsEmailEQ.
func ClaimsEmail(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldEQ(FieldClaimsEmail, v))
}
// ClaimsEmailVerified applies equality check predicate on the "claims_email_verified" field. It's identical to ClaimsEmailVerifiedEQ.
func ClaimsEmailVerified(v bool) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldEQ(FieldClaimsEmailVerified, v))
}
// ClaimsPreferredUsername applies equality check predicate on the "claims_preferred_username" field. It's identical to ClaimsPreferredUsernameEQ.
func ClaimsPreferredUsername(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldEQ(FieldClaimsPreferredUsername, v))
}
// ConnectorID applies equality check predicate on the "connector_id" field. It's identical to ConnectorIDEQ.
func ConnectorID(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldEQ(FieldConnectorID, v))
}
// LastUsed applies equality check predicate on the "last_used" field. It's identical to LastUsedEQ.
func LastUsed(v time.Time) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldEQ(FieldLastUsed, v))
}
// MappingIDEQ applies the EQ predicate on the "mapping_id" field.
func MappingIDEQ(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldEQ(FieldMappingID, v))
}
// MappingIDNEQ applies the NEQ predicate on the "mapping_id" field.
func MappingIDNEQ(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldNEQ(FieldMappingID, v))
}
// MappingIDIn applies the In predicate on the "mapping_id" field.
func MappingIDIn(vs ...string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldIn(FieldMappingID, vs...))
}
// MappingIDNotIn applies the NotIn predicate on the "mapping_id" field.
func MappingIDNotIn(vs ...string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldNotIn(FieldMappingID, vs...))
}
// MappingIDGT applies the GT predicate on the "mapping_id" field.
func MappingIDGT(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldGT(FieldMappingID, v))
}
// MappingIDGTE applies the GTE predicate on the "mapping_id" field.
func MappingIDGTE(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldGTE(FieldMappingID, v))
}
// MappingIDLT applies the LT predicate on the "mapping_id" field.
func MappingIDLT(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldLT(FieldMappingID, v))
}
// MappingIDLTE applies the LTE predicate on the "mapping_id" field.
func MappingIDLTE(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldLTE(FieldMappingID, v))
}
// MappingIDContains applies the Contains predicate on the "mapping_id" field.
func MappingIDContains(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldContains(FieldMappingID, v))
}
// MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field.
func MappingIDHasPrefix(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldHasPrefix(FieldMappingID, v))
}
// MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field.
func MappingIDHasSuffix(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldHasSuffix(FieldMappingID, v))
}
// MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field.
func MappingIDEqualFold(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldEqualFold(FieldMappingID, v))
}
// MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field.
func MappingIDContainsFold(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldContainsFold(FieldMappingID, v))
}
// ClientIDEQ applies the EQ predicate on the "client_id" field.
func ClientIDEQ(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldEQ(FieldClientID, v))
}
// ClientIDNEQ applies the NEQ predicate on the "client_id" field.
func ClientIDNEQ(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldNEQ(FieldClientID, v))
}
// ClientIDIn applies the In predicate on the "client_id" field.
func ClientIDIn(vs ...string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldIn(FieldClientID, vs...))
}
// ClientIDNotIn applies the NotIn predicate on the "client_id" field.
func ClientIDNotIn(vs ...string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldNotIn(FieldClientID, vs...))
}
// ClientIDGT applies the GT predicate on the "client_id" field.
func ClientIDGT(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldGT(FieldClientID, v))
}
// ClientIDGTE applies the GTE predicate on the "client_id" field.
func ClientIDGTE(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldGTE(FieldClientID, v))
}
// ClientIDLT applies the LT predicate on the "client_id" field.
func ClientIDLT(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldLT(FieldClientID, v))
}
// ClientIDLTE applies the LTE predicate on the "client_id" field.
func ClientIDLTE(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldLTE(FieldClientID, v))
}
// ClientIDContains applies the Contains predicate on the "client_id" field.
func ClientIDContains(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldContains(FieldClientID, v))
}
// ClientIDHasPrefix applies the HasPrefix predicate on the "client_id" field.
func ClientIDHasPrefix(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldHasPrefix(FieldClientID, v))
}
// ClientIDHasSuffix applies the HasSuffix predicate on the "client_id" field.
func ClientIDHasSuffix(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldHasSuffix(FieldClientID, v))
}
// ClientIDEqualFold applies the EqualFold predicate on the "client_id" field.
func ClientIDEqualFold(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldEqualFold(FieldClientID, v))
}
// ClientIDContainsFold applies the ContainsFold predicate on the "client_id" field.
func ClientIDContainsFold(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldContainsFold(FieldClientID, v))
}
// ScopesIsNil applies the IsNil predicate on the "scopes" field.
func ScopesIsNil() predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldIsNull(FieldScopes))
}
// ScopesNotNil applies the NotNil predicate on the "scopes" field.
func ScopesNotNil() predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldNotNull(FieldScopes))
}
// NonceEQ applies the EQ predicate on the "nonce" field.
func NonceEQ(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldEQ(FieldNonce, v))
}
// NonceNEQ applies the NEQ predicate on the "nonce" field.
func NonceNEQ(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldNEQ(FieldNonce, v))
}
// NonceIn applies the In predicate on the "nonce" field.
func NonceIn(vs ...string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldIn(FieldNonce, vs...))
}
// NonceNotIn applies the NotIn predicate on the "nonce" field.
func NonceNotIn(vs ...string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldNotIn(FieldNonce, vs...))
}
// NonceGT applies the GT predicate on the "nonce" field.
func NonceGT(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldGT(FieldNonce, v))
}
// NonceGTE applies the GTE predicate on the "nonce" field.
func NonceGTE(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldGTE(FieldNonce, v))
}
// NonceLT applies the LT predicate on the "nonce" field.
func NonceLT(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldLT(FieldNonce, v))
}
// NonceLTE applies the LTE predicate on the "nonce" field.
func NonceLTE(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldLTE(FieldNonce, v))
}
// NonceContains applies the Contains predicate on the "nonce" field.
func NonceContains(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldContains(FieldNonce, v))
}
// NonceHasPrefix applies the HasPrefix predicate on the "nonce" field.
func NonceHasPrefix(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldHasPrefix(FieldNonce, v))
}
// NonceHasSuffix applies the HasSuffix predicate on the "nonce" field.
func NonceHasSuffix(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldHasSuffix(FieldNonce, v))
}
// NonceEqualFold applies the EqualFold predicate on the "nonce" field.
func NonceEqualFold(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldEqualFold(FieldNonce, v))
}
// NonceContainsFold applies the ContainsFold predicate on the "nonce" field.
func NonceContainsFold(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldContainsFold(FieldNonce, v))
}
// ClaimsUserIDEQ applies the EQ predicate on the "claims_user_id" field.
func ClaimsUserIDEQ(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldEQ(FieldClaimsUserID, v))
}
// ClaimsUserIDNEQ applies the NEQ predicate on the "claims_user_id" field.
func ClaimsUserIDNEQ(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldNEQ(FieldClaimsUserID, v))
}
// ClaimsUserIDIn applies the In predicate on the "claims_user_id" field.
func ClaimsUserIDIn(vs ...string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldIn(FieldClaimsUserID, vs...))
}
// ClaimsUserIDNotIn applies the NotIn predicate on the "claims_user_id" field.
func ClaimsUserIDNotIn(vs ...string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldNotIn(FieldClaimsUserID, vs...))
}
// ClaimsUserIDGT applies the GT predicate on the "claims_user_id" field.
func ClaimsUserIDGT(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldGT(FieldClaimsUserID, v))
}
// ClaimsUserIDGTE applies the GTE predicate on the "claims_user_id" field.
func ClaimsUserIDGTE(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldGTE(FieldClaimsUserID, v))
}
// ClaimsUserIDLT applies the LT predicate on the "claims_user_id" field.
func ClaimsUserIDLT(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldLT(FieldClaimsUserID, v))
}
// ClaimsUserIDLTE applies the LTE predicate on the "claims_user_id" field.
func ClaimsUserIDLTE(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldLTE(FieldClaimsUserID, v))
}
// ClaimsUserIDContains applies the Contains predicate on the "claims_user_id" field.
func ClaimsUserIDContains(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldContains(FieldClaimsUserID, v))
}
// ClaimsUserIDHasPrefix applies the HasPrefix predicate on the "claims_user_id" field.
func ClaimsUserIDHasPrefix(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldHasPrefix(FieldClaimsUserID, v))
}
// ClaimsUserIDHasSuffix applies the HasSuffix predicate on the "claims_user_id" field.
func ClaimsUserIDHasSuffix(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldHasSuffix(FieldClaimsUserID, v))
}
// ClaimsUserIDEqualFold applies the EqualFold predicate on the "claims_user_id" field.
func ClaimsUserIDEqualFold(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldEqualFold(FieldClaimsUserID, v))
}
// ClaimsUserIDContainsFold applies the ContainsFold predicate on the "claims_user_id" field.
func ClaimsUserIDContainsFold(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldContainsFold(FieldClaimsUserID, v))
}
// ClaimsUsernameEQ applies the EQ predicate on the "claims_username" field.
func ClaimsUsernameEQ(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldEQ(FieldClaimsUsername, v))
}
// ClaimsUsernameNEQ applies the NEQ predicate on the "claims_username" field.
func ClaimsUsernameNEQ(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldNEQ(FieldClaimsUsername, v))
}
// ClaimsUsernameIn applies the In predicate on the "claims_username" field.
func ClaimsUsernameIn(vs ...string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldIn(FieldClaimsUsername, vs...))
}
// ClaimsUsernameNotIn applies the NotIn predicate on the "claims_username" field.
func ClaimsUsernameNotIn(vs ...string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldNotIn(FieldClaimsUsername, vs...))
}
// ClaimsUsernameGT applies the GT predicate on the "claims_username" field.
func ClaimsUsernameGT(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldGT(FieldClaimsUsername, v))
}
// ClaimsUsernameGTE applies the GTE predicate on the "claims_username" field.
func ClaimsUsernameGTE(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldGTE(FieldClaimsUsername, v))
}
// ClaimsUsernameLT applies the LT predicate on the "claims_username" field.
func ClaimsUsernameLT(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldLT(FieldClaimsUsername, v))
}
// ClaimsUsernameLTE applies the LTE predicate on the "claims_username" field.
func ClaimsUsernameLTE(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldLTE(FieldClaimsUsername, v))
}
// ClaimsUsernameContains applies the Contains predicate on the "claims_username" field.
func ClaimsUsernameContains(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldContains(FieldClaimsUsername, v))
}
// ClaimsUsernameHasPrefix applies the HasPrefix predicate on the "claims_username" field.
func ClaimsUsernameHasPrefix(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldHasPrefix(FieldClaimsUsername, v))
}
// ClaimsUsernameHasSuffix applies the HasSuffix predicate on the "claims_username" field.
func ClaimsUsernameHasSuffix(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldHasSuffix(FieldClaimsUsername, v))
}
// ClaimsUsernameEqualFold applies the EqualFold predicate on the "claims_username" field.
func ClaimsUsernameEqualFold(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldEqualFold(FieldClaimsUsername, v))
}
// ClaimsUsernameContainsFold applies the ContainsFold predicate on the "claims_username" field.
func ClaimsUsernameContainsFold(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldContainsFold(FieldClaimsUsername, v))
}
// ClaimsEmailEQ applies the EQ predicate on the "claims_email" field.
func ClaimsEmailEQ(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldEQ(FieldClaimsEmail, v))
}
// ClaimsEmailNEQ applies the NEQ predicate on the "claims_email" field.
func ClaimsEmailNEQ(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldNEQ(FieldClaimsEmail, v))
}
// ClaimsEmailIn applies the In predicate on the "claims_email" field.
func ClaimsEmailIn(vs ...string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldIn(FieldClaimsEmail, vs...))
}
// ClaimsEmailNotIn applies the NotIn predicate on the "claims_email" field.
func ClaimsEmailNotIn(vs ...string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldNotIn(FieldClaimsEmail, vs...))
}
// ClaimsEmailGT applies the GT predicate on the "claims_email" field.
func ClaimsEmailGT(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldGT(FieldClaimsEmail, v))
}
// ClaimsEmailGTE applies the GTE predicate on the "claims_email" field.
func ClaimsEmailGTE(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldGTE(FieldClaimsEmail, v))
}
// ClaimsEmailLT applies the LT predicate on the "claims_email" field.
func ClaimsEmailLT(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldLT(FieldClaimsEmail, v))
}
// ClaimsEmailLTE applies the LTE predicate on the "claims_email" field.
func ClaimsEmailLTE(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldLTE(FieldClaimsEmail, v))
}
// ClaimsEmailContains applies the Contains predicate on the "claims_email" field.
func ClaimsEmailContains(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldContains(FieldClaimsEmail, v))
}
// ClaimsEmailHasPrefix applies the HasPrefix predicate on the "claims_email" field.
func ClaimsEmailHasPrefix(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldHasPrefix(FieldClaimsEmail, v))
}
// ClaimsEmailHasSuffix applies the HasSuffix predicate on the "claims_email" field.
func ClaimsEmailHasSuffix(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldHasSuffix(FieldClaimsEmail, v))
}
// ClaimsEmailEqualFold applies the EqualFold predicate on the "claims_email" field.
func ClaimsEmailEqualFold(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldEqualFold(FieldClaimsEmail, v))
}
// ClaimsEmailContainsFold applies the ContainsFold predicate on the "claims_email" field.
func ClaimsEmailContainsFold(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldContainsFold(FieldClaimsEmail, v))
}
// ClaimsEmailVerifiedEQ applies the EQ predicate on the "claims_email_verified" field.
func ClaimsEmailVerifiedEQ(v bool) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldEQ(FieldClaimsEmailVerified, v))
}
// ClaimsEmailVerifiedNEQ applies the NEQ predicate on the "claims_email_verified" field.
func ClaimsEmailVerifiedNEQ(v bool) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldNEQ(FieldClaimsEmailVerified, v))
}
// ClaimsGroupsIsNil applies the IsNil predicate on the "claims_groups" field.
func ClaimsGroupsIsNil() predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldIsNull(FieldClaimsGroups))
}
// ClaimsGroupsNotNil applies the NotNil predicate on the "claims_groups" field.
func ClaimsGroupsNotNil() predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldNotNull(FieldClaimsGroups))
}
// ClaimsPreferredUsernameEQ applies the EQ predicate on the "claims_preferred_username" field.
func ClaimsPreferredUsernameEQ(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldEQ(FieldClaimsPreferredUsername, v))
}
// ClaimsPreferredUsernameNEQ applies the NEQ predicate on the "claims_preferred_username" field.
func ClaimsPreferredUsernameNEQ(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldNEQ(FieldClaimsPreferredUsername, v))
}
// ClaimsPreferredUsernameIn applies the In predicate on the "claims_preferred_username" field.
func ClaimsPreferredUsernameIn(vs ...string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldIn(FieldClaimsPreferredUsername, vs...))
}
// ClaimsPreferredUsernameNotIn applies the NotIn predicate on the "claims_preferred_username" field.
func ClaimsPreferredUsernameNotIn(vs ...string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldNotIn(FieldClaimsPreferredUsername, vs...))
}
// ClaimsPreferredUsernameGT applies the GT predicate on the "claims_preferred_username" field.
func ClaimsPreferredUsernameGT(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldGT(FieldClaimsPreferredUsername, v))
}
// ClaimsPreferredUsernameGTE applies the GTE predicate on the "claims_preferred_username" field.
func ClaimsPreferredUsernameGTE(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldGTE(FieldClaimsPreferredUsername, v))
}
// ClaimsPreferredUsernameLT applies the LT predicate on the "claims_preferred_username" field.
func ClaimsPreferredUsernameLT(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldLT(FieldClaimsPreferredUsername, v))
}
// ClaimsPreferredUsernameLTE applies the LTE predicate on the "claims_preferred_username" field.
func ClaimsPreferredUsernameLTE(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldLTE(FieldClaimsPreferredUsername, v))
}
// ClaimsPreferredUsernameContains applies the Contains predicate on the "claims_preferred_username" field.
func ClaimsPreferredUsernameContains(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldContains(FieldClaimsPreferredUsername, v))
}
// ClaimsPreferredUsernameHasPrefix applies the HasPrefix predicate on the "claims_preferred_username" field.
func ClaimsPreferredUsernameHasPrefix(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldHasPrefix(FieldClaimsPreferredUsername, v))
}
// ClaimsPreferredUsernameHasSuffix applies the HasSuffix predicate on the "claims_preferred_username" field.
func ClaimsPreferredUsernameHasSuffix(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldHasSuffix(FieldClaimsPreferredUsername, v))
}
// ClaimsPreferredUsernameEqualFold applies the EqualFold predicate on the "claims_preferred_username" field.
func ClaimsPreferredUsernameEqualFold(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldEqualFold(FieldClaimsPreferredUsername, v))
}
// ClaimsPreferredUsernameContainsFold applies the ContainsFold predicate on the "claims_preferred_username" field.
func ClaimsPreferredUsernameContainsFold(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldContainsFold(FieldClaimsPreferredUsername, v))
}
// ConnectorIDEQ applies the EQ predicate on the "connector_id" field.
func ConnectorIDEQ(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldEQ(FieldConnectorID, v))
}
// ConnectorIDNEQ applies the NEQ predicate on the "connector_id" field.
func ConnectorIDNEQ(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldNEQ(FieldConnectorID, v))
}
// ConnectorIDIn applies the In predicate on the "connector_id" field.
func ConnectorIDIn(vs ...string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldIn(FieldConnectorID, vs...))
}
// ConnectorIDNotIn applies the NotIn predicate on the "connector_id" field.
func ConnectorIDNotIn(vs ...string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldNotIn(FieldConnectorID, vs...))
}
// ConnectorIDGT applies the GT predicate on the "connector_id" field.
func ConnectorIDGT(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldGT(FieldConnectorID, v))
}
// ConnectorIDGTE applies the GTE predicate on the "connector_id" field.
func ConnectorIDGTE(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldGTE(FieldConnectorID, v))
}
// ConnectorIDLT applies the LT predicate on the "connector_id" field.
func ConnectorIDLT(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldLT(FieldConnectorID, v))
}
// ConnectorIDLTE applies the LTE predicate on the "connector_id" field.
func ConnectorIDLTE(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldLTE(FieldConnectorID, v))
}
// ConnectorIDContains applies the Contains predicate on the "connector_id" field.
func ConnectorIDContains(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldContains(FieldConnectorID, v))
}
// ConnectorIDHasPrefix applies the HasPrefix predicate on the "connector_id" field.
func ConnectorIDHasPrefix(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldHasPrefix(FieldConnectorID, v))
}
// ConnectorIDHasSuffix applies the HasSuffix predicate on the "connector_id" field.
func ConnectorIDHasSuffix(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldHasSuffix(FieldConnectorID, v))
}
// ConnectorIDEqualFold applies the EqualFold predicate on the "connector_id" field.
func ConnectorIDEqualFold(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldEqualFold(FieldConnectorID, v))
}
// ConnectorIDContainsFold applies the ContainsFold predicate on the "connector_id" field.
func ConnectorIDContainsFold(v string) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldContainsFold(FieldConnectorID, v))
}
// ConnectorDataIsNil applies the IsNil predicate on the "connector_data" field.
func ConnectorDataIsNil() predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldIsNull(FieldConnectorData))
}
// ConnectorDataNotNil applies the NotNil predicate on the "connector_data" field.
func ConnectorDataNotNil() predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldNotNull(FieldConnectorData))
}
// LastUsedEQ applies the EQ predicate on the "last_used" field.
func LastUsedEQ(v time.Time) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldEQ(FieldLastUsed, v))
}
// LastUsedNEQ applies the NEQ predicate on the "last_used" field.
func LastUsedNEQ(v time.Time) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldNEQ(FieldLastUsed, v))
}
// LastUsedIn applies the In predicate on the "last_used" field.
func LastUsedIn(vs ...time.Time) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldIn(FieldLastUsed, vs...))
}
// LastUsedNotIn applies the NotIn predicate on the "last_used" field.
func LastUsedNotIn(vs ...time.Time) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldNotIn(FieldLastUsed, vs...))
}
// LastUsedGT applies the GT predicate on the "last_used" field.
func LastUsedGT(v time.Time) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldGT(FieldLastUsed, v))
}
// LastUsedGTE applies the GTE predicate on the "last_used" field.
func LastUsedGTE(v time.Time) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldGTE(FieldLastUsed, v))
}
// LastUsedLT applies the LT predicate on the "last_used" field.
func LastUsedLT(v time.Time) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldLT(FieldLastUsed, v))
}
// LastUsedLTE applies the LTE predicate on the "last_used" field.
func LastUsedLTE(v time.Time) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.FieldLTE(FieldLastUsed, v))
}
// HasIntegration applies the HasEdge predicate on the "integration" edge.
func HasIntegration() predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2M, true, IntegrationTable, IntegrationPrimaryKey...),
)
schemaConfig := internal.SchemaConfigFromContext(s.Context())
step.To.Schema = schemaConfig.Integration
step.Edge.Schema = schemaConfig.IntegrationOauth2tokens
sqlgraph.HasNeighbors(s, step)
})
}
// HasIntegrationWith applies the HasEdge predicate on the "integration" edge with a given conditions (other predicates).
func HasIntegrationWith(preds ...predicate.Integration) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(func(s *sql.Selector) {
step := newIntegrationStep()
schemaConfig := internal.SchemaConfigFromContext(s.Context())
step.To.Schema = schemaConfig.Integration
step.Edge.Schema = schemaConfig.IntegrationOauth2tokens
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasEvents applies the HasEdge predicate on the "events" edge.
func HasEvents() predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2M, false, EventsTable, EventsPrimaryKey...),
)
schemaConfig := internal.SchemaConfigFromContext(s.Context())
step.To.Schema = schemaConfig.Event
step.Edge.Schema = schemaConfig.OhAuthTooTokenEvents
sqlgraph.HasNeighbors(s, step)
})
}
// HasEventsWith applies the HasEdge predicate on the "events" edge with a given conditions (other predicates).
func HasEventsWith(preds ...predicate.Event) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(func(s *sql.Selector) {
step := newEventsStep()
schemaConfig := internal.SchemaConfigFromContext(s.Context())
step.To.Schema = schemaConfig.Event
step.Edge.Schema = schemaConfig.OhAuthTooTokenEvents
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// And groups predicates with the AND operator between them.
func And(predicates ...predicate.OhAuthTooToken) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.AndPredicates(predicates...))
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.OhAuthTooToken) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.OrPredicates(predicates...))
}
// Not applies the not operator on the given predicate.
func Not(p predicate.OhAuthTooToken) predicate.OhAuthTooToken {
return predicate.OhAuthTooToken(sql.NotPredicates(p))
}