/
where.go
1368 lines (1107 loc) · 46.1 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
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2019-present Facebook Inc. All rights reserved.
// This source code is licensed under the Apache 2.0 license found
// in the LICENSE file in the root directory of this source tree.
// Code generated by ent, DO NOT EDIT.
package user
import (
"time"
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/entc/integration/migrate/entv2/predicate"
)
// ID filters vertices based on their ID field.
func ID(id int) predicate.User {
return predicate.User(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id int) predicate.User {
return predicate.User(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id int) predicate.User {
return predicate.User(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...int) predicate.User {
return predicate.User(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...int) predicate.User {
return predicate.User(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id int) predicate.User {
return predicate.User(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id int) predicate.User {
return predicate.User(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id int) predicate.User {
return predicate.User(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id int) predicate.User {
return predicate.User(sql.FieldLTE(FieldID, id))
}
// MixedString applies equality check predicate on the "mixed_string" field. It's identical to MixedStringEQ.
func MixedString(v string) predicate.User {
return predicate.User(sql.FieldEQ(FieldMixedString, v))
}
// Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.
func Active(v bool) predicate.User {
return predicate.User(sql.FieldEQ(FieldActive, v))
}
// Age applies equality check predicate on the "age" field. It's identical to AgeEQ.
func Age(v int) predicate.User {
return predicate.User(sql.FieldEQ(FieldAge, v))
}
// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func Name(v string) predicate.User {
return predicate.User(sql.FieldEQ(FieldName, v))
}
// Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func Description(v string) predicate.User {
return predicate.User(sql.FieldEQ(FieldDescription, v))
}
// Nickname applies equality check predicate on the "nickname" field. It's identical to NicknameEQ.
func Nickname(v string) predicate.User {
return predicate.User(sql.FieldEQ(FieldNickname, v))
}
// Phone applies equality check predicate on the "phone" field. It's identical to PhoneEQ.
func Phone(v string) predicate.User {
return predicate.User(sql.FieldEQ(FieldPhone, v))
}
// Buffer applies equality check predicate on the "buffer" field. It's identical to BufferEQ.
func Buffer(v []byte) predicate.User {
return predicate.User(sql.FieldEQ(FieldBuffer, v))
}
// Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func Title(v string) predicate.User {
return predicate.User(sql.FieldEQ(FieldTitle, v))
}
// NewName applies equality check predicate on the "new_name" field. It's identical to NewNameEQ.
func NewName(v string) predicate.User {
return predicate.User(sql.FieldEQ(FieldNewName, v))
}
// NewToken applies equality check predicate on the "new_token" field. It's identical to NewTokenEQ.
func NewToken(v string) predicate.User {
return predicate.User(sql.FieldEQ(FieldNewToken, v))
}
// Blob applies equality check predicate on the "blob" field. It's identical to BlobEQ.
func Blob(v []byte) predicate.User {
return predicate.User(sql.FieldEQ(FieldBlob, v))
}
// Workplace applies equality check predicate on the "workplace" field. It's identical to WorkplaceEQ.
func Workplace(v string) predicate.User {
return predicate.User(sql.FieldEQ(FieldWorkplace, v))
}
// DefaultExpr applies equality check predicate on the "default_expr" field. It's identical to DefaultExprEQ.
func DefaultExpr(v string) predicate.User {
return predicate.User(sql.FieldEQ(FieldDefaultExpr, v))
}
// DefaultExprs applies equality check predicate on the "default_exprs" field. It's identical to DefaultExprsEQ.
func DefaultExprs(v string) predicate.User {
return predicate.User(sql.FieldEQ(FieldDefaultExprs, v))
}
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAt(v time.Time) predicate.User {
return predicate.User(sql.FieldEQ(FieldCreatedAt, v))
}
// DropOptional applies equality check predicate on the "drop_optional" field. It's identical to DropOptionalEQ.
func DropOptional(v string) predicate.User {
return predicate.User(sql.FieldEQ(FieldDropOptional, v))
}
// MixedStringEQ applies the EQ predicate on the "mixed_string" field.
func MixedStringEQ(v string) predicate.User {
return predicate.User(sql.FieldEQ(FieldMixedString, v))
}
// MixedStringNEQ applies the NEQ predicate on the "mixed_string" field.
func MixedStringNEQ(v string) predicate.User {
return predicate.User(sql.FieldNEQ(FieldMixedString, v))
}
// MixedStringIn applies the In predicate on the "mixed_string" field.
func MixedStringIn(vs ...string) predicate.User {
return predicate.User(sql.FieldIn(FieldMixedString, vs...))
}
// MixedStringNotIn applies the NotIn predicate on the "mixed_string" field.
func MixedStringNotIn(vs ...string) predicate.User {
return predicate.User(sql.FieldNotIn(FieldMixedString, vs...))
}
// MixedStringGT applies the GT predicate on the "mixed_string" field.
func MixedStringGT(v string) predicate.User {
return predicate.User(sql.FieldGT(FieldMixedString, v))
}
// MixedStringGTE applies the GTE predicate on the "mixed_string" field.
func MixedStringGTE(v string) predicate.User {
return predicate.User(sql.FieldGTE(FieldMixedString, v))
}
// MixedStringLT applies the LT predicate on the "mixed_string" field.
func MixedStringLT(v string) predicate.User {
return predicate.User(sql.FieldLT(FieldMixedString, v))
}
// MixedStringLTE applies the LTE predicate on the "mixed_string" field.
func MixedStringLTE(v string) predicate.User {
return predicate.User(sql.FieldLTE(FieldMixedString, v))
}
// MixedStringContains applies the Contains predicate on the "mixed_string" field.
func MixedStringContains(v string) predicate.User {
return predicate.User(sql.FieldContains(FieldMixedString, v))
}
// MixedStringHasPrefix applies the HasPrefix predicate on the "mixed_string" field.
func MixedStringHasPrefix(v string) predicate.User {
return predicate.User(sql.FieldHasPrefix(FieldMixedString, v))
}
// MixedStringHasSuffix applies the HasSuffix predicate on the "mixed_string" field.
func MixedStringHasSuffix(v string) predicate.User {
return predicate.User(sql.FieldHasSuffix(FieldMixedString, v))
}
// MixedStringEqualFold applies the EqualFold predicate on the "mixed_string" field.
func MixedStringEqualFold(v string) predicate.User {
return predicate.User(sql.FieldEqualFold(FieldMixedString, v))
}
// MixedStringContainsFold applies the ContainsFold predicate on the "mixed_string" field.
func MixedStringContainsFold(v string) predicate.User {
return predicate.User(sql.FieldContainsFold(FieldMixedString, v))
}
// MixedEnumEQ applies the EQ predicate on the "mixed_enum" field.
func MixedEnumEQ(v MixedEnum) predicate.User {
return predicate.User(sql.FieldEQ(FieldMixedEnum, v))
}
// MixedEnumNEQ applies the NEQ predicate on the "mixed_enum" field.
func MixedEnumNEQ(v MixedEnum) predicate.User {
return predicate.User(sql.FieldNEQ(FieldMixedEnum, v))
}
// MixedEnumIn applies the In predicate on the "mixed_enum" field.
func MixedEnumIn(vs ...MixedEnum) predicate.User {
return predicate.User(sql.FieldIn(FieldMixedEnum, vs...))
}
// MixedEnumNotIn applies the NotIn predicate on the "mixed_enum" field.
func MixedEnumNotIn(vs ...MixedEnum) predicate.User {
return predicate.User(sql.FieldNotIn(FieldMixedEnum, vs...))
}
// ActiveEQ applies the EQ predicate on the "active" field.
func ActiveEQ(v bool) predicate.User {
return predicate.User(sql.FieldEQ(FieldActive, v))
}
// ActiveNEQ applies the NEQ predicate on the "active" field.
func ActiveNEQ(v bool) predicate.User {
return predicate.User(sql.FieldNEQ(FieldActive, v))
}
// AgeEQ applies the EQ predicate on the "age" field.
func AgeEQ(v int) predicate.User {
return predicate.User(sql.FieldEQ(FieldAge, v))
}
// AgeNEQ applies the NEQ predicate on the "age" field.
func AgeNEQ(v int) predicate.User {
return predicate.User(sql.FieldNEQ(FieldAge, v))
}
// AgeIn applies the In predicate on the "age" field.
func AgeIn(vs ...int) predicate.User {
return predicate.User(sql.FieldIn(FieldAge, vs...))
}
// AgeNotIn applies the NotIn predicate on the "age" field.
func AgeNotIn(vs ...int) predicate.User {
return predicate.User(sql.FieldNotIn(FieldAge, vs...))
}
// AgeGT applies the GT predicate on the "age" field.
func AgeGT(v int) predicate.User {
return predicate.User(sql.FieldGT(FieldAge, v))
}
// AgeGTE applies the GTE predicate on the "age" field.
func AgeGTE(v int) predicate.User {
return predicate.User(sql.FieldGTE(FieldAge, v))
}
// AgeLT applies the LT predicate on the "age" field.
func AgeLT(v int) predicate.User {
return predicate.User(sql.FieldLT(FieldAge, v))
}
// AgeLTE applies the LTE predicate on the "age" field.
func AgeLTE(v int) predicate.User {
return predicate.User(sql.FieldLTE(FieldAge, v))
}
// NameEQ applies the EQ predicate on the "name" field.
func NameEQ(v string) predicate.User {
return predicate.User(sql.FieldEQ(FieldName, v))
}
// NameNEQ applies the NEQ predicate on the "name" field.
func NameNEQ(v string) predicate.User {
return predicate.User(sql.FieldNEQ(FieldName, v))
}
// NameIn applies the In predicate on the "name" field.
func NameIn(vs ...string) predicate.User {
return predicate.User(sql.FieldIn(FieldName, vs...))
}
// NameNotIn applies the NotIn predicate on the "name" field.
func NameNotIn(vs ...string) predicate.User {
return predicate.User(sql.FieldNotIn(FieldName, vs...))
}
// NameGT applies the GT predicate on the "name" field.
func NameGT(v string) predicate.User {
return predicate.User(sql.FieldGT(FieldName, v))
}
// NameGTE applies the GTE predicate on the "name" field.
func NameGTE(v string) predicate.User {
return predicate.User(sql.FieldGTE(FieldName, v))
}
// NameLT applies the LT predicate on the "name" field.
func NameLT(v string) predicate.User {
return predicate.User(sql.FieldLT(FieldName, v))
}
// NameLTE applies the LTE predicate on the "name" field.
func NameLTE(v string) predicate.User {
return predicate.User(sql.FieldLTE(FieldName, v))
}
// NameContains applies the Contains predicate on the "name" field.
func NameContains(v string) predicate.User {
return predicate.User(sql.FieldContains(FieldName, v))
}
// NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasPrefix(v string) predicate.User {
return predicate.User(sql.FieldHasPrefix(FieldName, v))
}
// NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameHasSuffix(v string) predicate.User {
return predicate.User(sql.FieldHasSuffix(FieldName, v))
}
// NameEqualFold applies the EqualFold predicate on the "name" field.
func NameEqualFold(v string) predicate.User {
return predicate.User(sql.FieldEqualFold(FieldName, v))
}
// NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameContainsFold(v string) predicate.User {
return predicate.User(sql.FieldContainsFold(FieldName, v))
}
// DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEQ(v string) predicate.User {
return predicate.User(sql.FieldEQ(FieldDescription, v))
}
// DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNEQ(v string) predicate.User {
return predicate.User(sql.FieldNEQ(FieldDescription, v))
}
// DescriptionIn applies the In predicate on the "description" field.
func DescriptionIn(vs ...string) predicate.User {
return predicate.User(sql.FieldIn(FieldDescription, vs...))
}
// DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotIn(vs ...string) predicate.User {
return predicate.User(sql.FieldNotIn(FieldDescription, vs...))
}
// DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGT(v string) predicate.User {
return predicate.User(sql.FieldGT(FieldDescription, v))
}
// DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionGTE(v string) predicate.User {
return predicate.User(sql.FieldGTE(FieldDescription, v))
}
// DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLT(v string) predicate.User {
return predicate.User(sql.FieldLT(FieldDescription, v))
}
// DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionLTE(v string) predicate.User {
return predicate.User(sql.FieldLTE(FieldDescription, v))
}
// DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContains(v string) predicate.User {
return predicate.User(sql.FieldContains(FieldDescription, v))
}
// DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasPrefix(v string) predicate.User {
return predicate.User(sql.FieldHasPrefix(FieldDescription, v))
}
// DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionHasSuffix(v string) predicate.User {
return predicate.User(sql.FieldHasSuffix(FieldDescription, v))
}
// DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionIsNil() predicate.User {
return predicate.User(sql.FieldIsNull(FieldDescription))
}
// DescriptionNotNil applies the NotNil predicate on the "description" field.
func DescriptionNotNil() predicate.User {
return predicate.User(sql.FieldNotNull(FieldDescription))
}
// DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionEqualFold(v string) predicate.User {
return predicate.User(sql.FieldEqualFold(FieldDescription, v))
}
// DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionContainsFold(v string) predicate.User {
return predicate.User(sql.FieldContainsFold(FieldDescription, v))
}
// NicknameEQ applies the EQ predicate on the "nickname" field.
func NicknameEQ(v string) predicate.User {
return predicate.User(sql.FieldEQ(FieldNickname, v))
}
// NicknameNEQ applies the NEQ predicate on the "nickname" field.
func NicknameNEQ(v string) predicate.User {
return predicate.User(sql.FieldNEQ(FieldNickname, v))
}
// NicknameIn applies the In predicate on the "nickname" field.
func NicknameIn(vs ...string) predicate.User {
return predicate.User(sql.FieldIn(FieldNickname, vs...))
}
// NicknameNotIn applies the NotIn predicate on the "nickname" field.
func NicknameNotIn(vs ...string) predicate.User {
return predicate.User(sql.FieldNotIn(FieldNickname, vs...))
}
// NicknameGT applies the GT predicate on the "nickname" field.
func NicknameGT(v string) predicate.User {
return predicate.User(sql.FieldGT(FieldNickname, v))
}
// NicknameGTE applies the GTE predicate on the "nickname" field.
func NicknameGTE(v string) predicate.User {
return predicate.User(sql.FieldGTE(FieldNickname, v))
}
// NicknameLT applies the LT predicate on the "nickname" field.
func NicknameLT(v string) predicate.User {
return predicate.User(sql.FieldLT(FieldNickname, v))
}
// NicknameLTE applies the LTE predicate on the "nickname" field.
func NicknameLTE(v string) predicate.User {
return predicate.User(sql.FieldLTE(FieldNickname, v))
}
// NicknameContains applies the Contains predicate on the "nickname" field.
func NicknameContains(v string) predicate.User {
return predicate.User(sql.FieldContains(FieldNickname, v))
}
// NicknameHasPrefix applies the HasPrefix predicate on the "nickname" field.
func NicknameHasPrefix(v string) predicate.User {
return predicate.User(sql.FieldHasPrefix(FieldNickname, v))
}
// NicknameHasSuffix applies the HasSuffix predicate on the "nickname" field.
func NicknameHasSuffix(v string) predicate.User {
return predicate.User(sql.FieldHasSuffix(FieldNickname, v))
}
// NicknameEqualFold applies the EqualFold predicate on the "nickname" field.
func NicknameEqualFold(v string) predicate.User {
return predicate.User(sql.FieldEqualFold(FieldNickname, v))
}
// NicknameContainsFold applies the ContainsFold predicate on the "nickname" field.
func NicknameContainsFold(v string) predicate.User {
return predicate.User(sql.FieldContainsFold(FieldNickname, v))
}
// PhoneEQ applies the EQ predicate on the "phone" field.
func PhoneEQ(v string) predicate.User {
return predicate.User(sql.FieldEQ(FieldPhone, v))
}
// PhoneNEQ applies the NEQ predicate on the "phone" field.
func PhoneNEQ(v string) predicate.User {
return predicate.User(sql.FieldNEQ(FieldPhone, v))
}
// PhoneIn applies the In predicate on the "phone" field.
func PhoneIn(vs ...string) predicate.User {
return predicate.User(sql.FieldIn(FieldPhone, vs...))
}
// PhoneNotIn applies the NotIn predicate on the "phone" field.
func PhoneNotIn(vs ...string) predicate.User {
return predicate.User(sql.FieldNotIn(FieldPhone, vs...))
}
// PhoneGT applies the GT predicate on the "phone" field.
func PhoneGT(v string) predicate.User {
return predicate.User(sql.FieldGT(FieldPhone, v))
}
// PhoneGTE applies the GTE predicate on the "phone" field.
func PhoneGTE(v string) predicate.User {
return predicate.User(sql.FieldGTE(FieldPhone, v))
}
// PhoneLT applies the LT predicate on the "phone" field.
func PhoneLT(v string) predicate.User {
return predicate.User(sql.FieldLT(FieldPhone, v))
}
// PhoneLTE applies the LTE predicate on the "phone" field.
func PhoneLTE(v string) predicate.User {
return predicate.User(sql.FieldLTE(FieldPhone, v))
}
// PhoneContains applies the Contains predicate on the "phone" field.
func PhoneContains(v string) predicate.User {
return predicate.User(sql.FieldContains(FieldPhone, v))
}
// PhoneHasPrefix applies the HasPrefix predicate on the "phone" field.
func PhoneHasPrefix(v string) predicate.User {
return predicate.User(sql.FieldHasPrefix(FieldPhone, v))
}
// PhoneHasSuffix applies the HasSuffix predicate on the "phone" field.
func PhoneHasSuffix(v string) predicate.User {
return predicate.User(sql.FieldHasSuffix(FieldPhone, v))
}
// PhoneEqualFold applies the EqualFold predicate on the "phone" field.
func PhoneEqualFold(v string) predicate.User {
return predicate.User(sql.FieldEqualFold(FieldPhone, v))
}
// PhoneContainsFold applies the ContainsFold predicate on the "phone" field.
func PhoneContainsFold(v string) predicate.User {
return predicate.User(sql.FieldContainsFold(FieldPhone, v))
}
// BufferEQ applies the EQ predicate on the "buffer" field.
func BufferEQ(v []byte) predicate.User {
return predicate.User(sql.FieldEQ(FieldBuffer, v))
}
// BufferNEQ applies the NEQ predicate on the "buffer" field.
func BufferNEQ(v []byte) predicate.User {
return predicate.User(sql.FieldNEQ(FieldBuffer, v))
}
// BufferIn applies the In predicate on the "buffer" field.
func BufferIn(vs ...[]byte) predicate.User {
return predicate.User(sql.FieldIn(FieldBuffer, vs...))
}
// BufferNotIn applies the NotIn predicate on the "buffer" field.
func BufferNotIn(vs ...[]byte) predicate.User {
return predicate.User(sql.FieldNotIn(FieldBuffer, vs...))
}
// BufferGT applies the GT predicate on the "buffer" field.
func BufferGT(v []byte) predicate.User {
return predicate.User(sql.FieldGT(FieldBuffer, v))
}
// BufferGTE applies the GTE predicate on the "buffer" field.
func BufferGTE(v []byte) predicate.User {
return predicate.User(sql.FieldGTE(FieldBuffer, v))
}
// BufferLT applies the LT predicate on the "buffer" field.
func BufferLT(v []byte) predicate.User {
return predicate.User(sql.FieldLT(FieldBuffer, v))
}
// BufferLTE applies the LTE predicate on the "buffer" field.
func BufferLTE(v []byte) predicate.User {
return predicate.User(sql.FieldLTE(FieldBuffer, v))
}
// BufferIsNil applies the IsNil predicate on the "buffer" field.
func BufferIsNil() predicate.User {
return predicate.User(sql.FieldIsNull(FieldBuffer))
}
// BufferNotNil applies the NotNil predicate on the "buffer" field.
func BufferNotNil() predicate.User {
return predicate.User(sql.FieldNotNull(FieldBuffer))
}
// TitleEQ applies the EQ predicate on the "title" field.
func TitleEQ(v string) predicate.User {
return predicate.User(sql.FieldEQ(FieldTitle, v))
}
// TitleNEQ applies the NEQ predicate on the "title" field.
func TitleNEQ(v string) predicate.User {
return predicate.User(sql.FieldNEQ(FieldTitle, v))
}
// TitleIn applies the In predicate on the "title" field.
func TitleIn(vs ...string) predicate.User {
return predicate.User(sql.FieldIn(FieldTitle, vs...))
}
// TitleNotIn applies the NotIn predicate on the "title" field.
func TitleNotIn(vs ...string) predicate.User {
return predicate.User(sql.FieldNotIn(FieldTitle, vs...))
}
// TitleGT applies the GT predicate on the "title" field.
func TitleGT(v string) predicate.User {
return predicate.User(sql.FieldGT(FieldTitle, v))
}
// TitleGTE applies the GTE predicate on the "title" field.
func TitleGTE(v string) predicate.User {
return predicate.User(sql.FieldGTE(FieldTitle, v))
}
// TitleLT applies the LT predicate on the "title" field.
func TitleLT(v string) predicate.User {
return predicate.User(sql.FieldLT(FieldTitle, v))
}
// TitleLTE applies the LTE predicate on the "title" field.
func TitleLTE(v string) predicate.User {
return predicate.User(sql.FieldLTE(FieldTitle, v))
}
// TitleContains applies the Contains predicate on the "title" field.
func TitleContains(v string) predicate.User {
return predicate.User(sql.FieldContains(FieldTitle, v))
}
// TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasPrefix(v string) predicate.User {
return predicate.User(sql.FieldHasPrefix(FieldTitle, v))
}
// TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleHasSuffix(v string) predicate.User {
return predicate.User(sql.FieldHasSuffix(FieldTitle, v))
}
// TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleEqualFold(v string) predicate.User {
return predicate.User(sql.FieldEqualFold(FieldTitle, v))
}
// TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleContainsFold(v string) predicate.User {
return predicate.User(sql.FieldContainsFold(FieldTitle, v))
}
// NewNameEQ applies the EQ predicate on the "new_name" field.
func NewNameEQ(v string) predicate.User {
return predicate.User(sql.FieldEQ(FieldNewName, v))
}
// NewNameNEQ applies the NEQ predicate on the "new_name" field.
func NewNameNEQ(v string) predicate.User {
return predicate.User(sql.FieldNEQ(FieldNewName, v))
}
// NewNameIn applies the In predicate on the "new_name" field.
func NewNameIn(vs ...string) predicate.User {
return predicate.User(sql.FieldIn(FieldNewName, vs...))
}
// NewNameNotIn applies the NotIn predicate on the "new_name" field.
func NewNameNotIn(vs ...string) predicate.User {
return predicate.User(sql.FieldNotIn(FieldNewName, vs...))
}
// NewNameGT applies the GT predicate on the "new_name" field.
func NewNameGT(v string) predicate.User {
return predicate.User(sql.FieldGT(FieldNewName, v))
}
// NewNameGTE applies the GTE predicate on the "new_name" field.
func NewNameGTE(v string) predicate.User {
return predicate.User(sql.FieldGTE(FieldNewName, v))
}
// NewNameLT applies the LT predicate on the "new_name" field.
func NewNameLT(v string) predicate.User {
return predicate.User(sql.FieldLT(FieldNewName, v))
}
// NewNameLTE applies the LTE predicate on the "new_name" field.
func NewNameLTE(v string) predicate.User {
return predicate.User(sql.FieldLTE(FieldNewName, v))
}
// NewNameContains applies the Contains predicate on the "new_name" field.
func NewNameContains(v string) predicate.User {
return predicate.User(sql.FieldContains(FieldNewName, v))
}
// NewNameHasPrefix applies the HasPrefix predicate on the "new_name" field.
func NewNameHasPrefix(v string) predicate.User {
return predicate.User(sql.FieldHasPrefix(FieldNewName, v))
}
// NewNameHasSuffix applies the HasSuffix predicate on the "new_name" field.
func NewNameHasSuffix(v string) predicate.User {
return predicate.User(sql.FieldHasSuffix(FieldNewName, v))
}
// NewNameIsNil applies the IsNil predicate on the "new_name" field.
func NewNameIsNil() predicate.User {
return predicate.User(sql.FieldIsNull(FieldNewName))
}
// NewNameNotNil applies the NotNil predicate on the "new_name" field.
func NewNameNotNil() predicate.User {
return predicate.User(sql.FieldNotNull(FieldNewName))
}
// NewNameEqualFold applies the EqualFold predicate on the "new_name" field.
func NewNameEqualFold(v string) predicate.User {
return predicate.User(sql.FieldEqualFold(FieldNewName, v))
}
// NewNameContainsFold applies the ContainsFold predicate on the "new_name" field.
func NewNameContainsFold(v string) predicate.User {
return predicate.User(sql.FieldContainsFold(FieldNewName, v))
}
// NewTokenEQ applies the EQ predicate on the "new_token" field.
func NewTokenEQ(v string) predicate.User {
return predicate.User(sql.FieldEQ(FieldNewToken, v))
}
// NewTokenNEQ applies the NEQ predicate on the "new_token" field.
func NewTokenNEQ(v string) predicate.User {
return predicate.User(sql.FieldNEQ(FieldNewToken, v))
}
// NewTokenIn applies the In predicate on the "new_token" field.
func NewTokenIn(vs ...string) predicate.User {
return predicate.User(sql.FieldIn(FieldNewToken, vs...))
}
// NewTokenNotIn applies the NotIn predicate on the "new_token" field.
func NewTokenNotIn(vs ...string) predicate.User {
return predicate.User(sql.FieldNotIn(FieldNewToken, vs...))
}
// NewTokenGT applies the GT predicate on the "new_token" field.
func NewTokenGT(v string) predicate.User {
return predicate.User(sql.FieldGT(FieldNewToken, v))
}
// NewTokenGTE applies the GTE predicate on the "new_token" field.
func NewTokenGTE(v string) predicate.User {
return predicate.User(sql.FieldGTE(FieldNewToken, v))
}
// NewTokenLT applies the LT predicate on the "new_token" field.
func NewTokenLT(v string) predicate.User {
return predicate.User(sql.FieldLT(FieldNewToken, v))
}
// NewTokenLTE applies the LTE predicate on the "new_token" field.
func NewTokenLTE(v string) predicate.User {
return predicate.User(sql.FieldLTE(FieldNewToken, v))
}
// NewTokenContains applies the Contains predicate on the "new_token" field.
func NewTokenContains(v string) predicate.User {
return predicate.User(sql.FieldContains(FieldNewToken, v))
}
// NewTokenHasPrefix applies the HasPrefix predicate on the "new_token" field.
func NewTokenHasPrefix(v string) predicate.User {
return predicate.User(sql.FieldHasPrefix(FieldNewToken, v))
}
// NewTokenHasSuffix applies the HasSuffix predicate on the "new_token" field.
func NewTokenHasSuffix(v string) predicate.User {
return predicate.User(sql.FieldHasSuffix(FieldNewToken, v))
}
// NewTokenEqualFold applies the EqualFold predicate on the "new_token" field.
func NewTokenEqualFold(v string) predicate.User {
return predicate.User(sql.FieldEqualFold(FieldNewToken, v))
}
// NewTokenContainsFold applies the ContainsFold predicate on the "new_token" field.
func NewTokenContainsFold(v string) predicate.User {
return predicate.User(sql.FieldContainsFold(FieldNewToken, v))
}
// BlobEQ applies the EQ predicate on the "blob" field.
func BlobEQ(v []byte) predicate.User {
return predicate.User(sql.FieldEQ(FieldBlob, v))
}
// BlobNEQ applies the NEQ predicate on the "blob" field.
func BlobNEQ(v []byte) predicate.User {
return predicate.User(sql.FieldNEQ(FieldBlob, v))
}
// BlobIn applies the In predicate on the "blob" field.
func BlobIn(vs ...[]byte) predicate.User {
return predicate.User(sql.FieldIn(FieldBlob, vs...))
}
// BlobNotIn applies the NotIn predicate on the "blob" field.
func BlobNotIn(vs ...[]byte) predicate.User {
return predicate.User(sql.FieldNotIn(FieldBlob, vs...))
}
// BlobGT applies the GT predicate on the "blob" field.
func BlobGT(v []byte) predicate.User {
return predicate.User(sql.FieldGT(FieldBlob, v))
}
// BlobGTE applies the GTE predicate on the "blob" field.
func BlobGTE(v []byte) predicate.User {
return predicate.User(sql.FieldGTE(FieldBlob, v))
}
// BlobLT applies the LT predicate on the "blob" field.
func BlobLT(v []byte) predicate.User {
return predicate.User(sql.FieldLT(FieldBlob, v))
}
// BlobLTE applies the LTE predicate on the "blob" field.
func BlobLTE(v []byte) predicate.User {
return predicate.User(sql.FieldLTE(FieldBlob, v))
}
// BlobIsNil applies the IsNil predicate on the "blob" field.
func BlobIsNil() predicate.User {
return predicate.User(sql.FieldIsNull(FieldBlob))
}
// BlobNotNil applies the NotNil predicate on the "blob" field.
func BlobNotNil() predicate.User {
return predicate.User(sql.FieldNotNull(FieldBlob))
}
// StateEQ applies the EQ predicate on the "state" field.
func StateEQ(v State) predicate.User {
return predicate.User(sql.FieldEQ(FieldState, v))
}
// StateNEQ applies the NEQ predicate on the "state" field.
func StateNEQ(v State) predicate.User {
return predicate.User(sql.FieldNEQ(FieldState, v))
}
// StateIn applies the In predicate on the "state" field.
func StateIn(vs ...State) predicate.User {
return predicate.User(sql.FieldIn(FieldState, vs...))
}
// StateNotIn applies the NotIn predicate on the "state" field.
func StateNotIn(vs ...State) predicate.User {
return predicate.User(sql.FieldNotIn(FieldState, vs...))
}
// StateIsNil applies the IsNil predicate on the "state" field.
func StateIsNil() predicate.User {
return predicate.User(sql.FieldIsNull(FieldState))
}
// StateNotNil applies the NotNil predicate on the "state" field.
func StateNotNil() predicate.User {
return predicate.User(sql.FieldNotNull(FieldState))
}
// StatusEQ applies the EQ predicate on the "status" field.
func StatusEQ(v Status) predicate.User {
return predicate.User(sql.FieldEQ(FieldStatus, v))
}
// StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNEQ(v Status) predicate.User {
return predicate.User(sql.FieldNEQ(FieldStatus, v))
}
// StatusIn applies the In predicate on the "status" field.
func StatusIn(vs ...Status) predicate.User {
return predicate.User(sql.FieldIn(FieldStatus, vs...))
}
// StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotIn(vs ...Status) predicate.User {
return predicate.User(sql.FieldNotIn(FieldStatus, vs...))
}
// StatusIsNil applies the IsNil predicate on the "status" field.
func StatusIsNil() predicate.User {
return predicate.User(sql.FieldIsNull(FieldStatus))
}
// StatusNotNil applies the NotNil predicate on the "status" field.
func StatusNotNil() predicate.User {
return predicate.User(sql.FieldNotNull(FieldStatus))
}
// WorkplaceEQ applies the EQ predicate on the "workplace" field.
func WorkplaceEQ(v string) predicate.User {
return predicate.User(sql.FieldEQ(FieldWorkplace, v))
}
// WorkplaceNEQ applies the NEQ predicate on the "workplace" field.
func WorkplaceNEQ(v string) predicate.User {
return predicate.User(sql.FieldNEQ(FieldWorkplace, v))
}
// WorkplaceIn applies the In predicate on the "workplace" field.
func WorkplaceIn(vs ...string) predicate.User {
return predicate.User(sql.FieldIn(FieldWorkplace, vs...))
}
// WorkplaceNotIn applies the NotIn predicate on the "workplace" field.
func WorkplaceNotIn(vs ...string) predicate.User {
return predicate.User(sql.FieldNotIn(FieldWorkplace, vs...))
}
// WorkplaceGT applies the GT predicate on the "workplace" field.
func WorkplaceGT(v string) predicate.User {
return predicate.User(sql.FieldGT(FieldWorkplace, v))
}
// WorkplaceGTE applies the GTE predicate on the "workplace" field.
func WorkplaceGTE(v string) predicate.User {
return predicate.User(sql.FieldGTE(FieldWorkplace, v))
}
// WorkplaceLT applies the LT predicate on the "workplace" field.
func WorkplaceLT(v string) predicate.User {
return predicate.User(sql.FieldLT(FieldWorkplace, v))
}
// WorkplaceLTE applies the LTE predicate on the "workplace" field.
func WorkplaceLTE(v string) predicate.User {
return predicate.User(sql.FieldLTE(FieldWorkplace, v))
}
// WorkplaceContains applies the Contains predicate on the "workplace" field.
func WorkplaceContains(v string) predicate.User {
return predicate.User(sql.FieldContains(FieldWorkplace, v))
}
// WorkplaceHasPrefix applies the HasPrefix predicate on the "workplace" field.
func WorkplaceHasPrefix(v string) predicate.User {
return predicate.User(sql.FieldHasPrefix(FieldWorkplace, v))
}
// WorkplaceHasSuffix applies the HasSuffix predicate on the "workplace" field.
func WorkplaceHasSuffix(v string) predicate.User {
return predicate.User(sql.FieldHasSuffix(FieldWorkplace, v))
}
// WorkplaceIsNil applies the IsNil predicate on the "workplace" field.
func WorkplaceIsNil() predicate.User {
return predicate.User(sql.FieldIsNull(FieldWorkplace))
}
// WorkplaceNotNil applies the NotNil predicate on the "workplace" field.
func WorkplaceNotNil() predicate.User {
return predicate.User(sql.FieldNotNull(FieldWorkplace))
}
// WorkplaceEqualFold applies the EqualFold predicate on the "workplace" field.
func WorkplaceEqualFold(v string) predicate.User {
return predicate.User(sql.FieldEqualFold(FieldWorkplace, v))
}
// WorkplaceContainsFold applies the ContainsFold predicate on the "workplace" field.
func WorkplaceContainsFold(v string) predicate.User {
return predicate.User(sql.FieldContainsFold(FieldWorkplace, v))
}
// RolesIsNil applies the IsNil predicate on the "roles" field.
func RolesIsNil() predicate.User {
return predicate.User(sql.FieldIsNull(FieldRoles))
}
// RolesNotNil applies the NotNil predicate on the "roles" field.
func RolesNotNil() predicate.User {
return predicate.User(sql.FieldNotNull(FieldRoles))
}