generated from matoszz/mitbgo-template
-
Notifications
You must be signed in to change notification settings - Fork 7
/
where.go
1482 lines (1189 loc) · 55.9 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
// Code generated by ent, DO NOT EDIT.
package userhistory
import (
"time"
"entgo.io/ent/dialect/sql"
"github.com/datumforge/datum/internal/ent/enums"
"github.com/datumforge/datum/internal/ent/generated/predicate"
"github.com/datumforge/enthistory"
)
// ID filters vertices based on their ID field.
func ID(id string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldLTE(FieldID, id))
}
// IDEqualFold applies the EqualFold predicate on the ID field.
func IDEqualFold(id string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEqualFold(FieldID, id))
}
// IDContainsFold applies the ContainsFold predicate on the ID field.
func IDContainsFold(id string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldContainsFold(FieldID, id))
}
// HistoryTime applies equality check predicate on the "history_time" field. It's identical to HistoryTimeEQ.
func HistoryTime(v time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEQ(FieldHistoryTime, v))
}
// Ref applies equality check predicate on the "ref" field. It's identical to RefEQ.
func Ref(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEQ(FieldRef, v))
}
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAt(v time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEQ(FieldCreatedAt, v))
}
// UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAt(v time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEQ(FieldUpdatedAt, v))
}
// CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedBy(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEQ(FieldCreatedBy, v))
}
// UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedBy(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEQ(FieldUpdatedBy, v))
}
// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAt(v time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEQ(FieldDeletedAt, v))
}
// DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ.
func DeletedBy(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEQ(FieldDeletedBy, v))
}
// MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ.
func MappingID(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEQ(FieldMappingID, v))
}
// Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
func Email(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEQ(FieldEmail, v))
}
// FirstName applies equality check predicate on the "first_name" field. It's identical to FirstNameEQ.
func FirstName(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEQ(FieldFirstName, v))
}
// LastName applies equality check predicate on the "last_name" field. It's identical to LastNameEQ.
func LastName(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEQ(FieldLastName, v))
}
// DisplayName applies equality check predicate on the "display_name" field. It's identical to DisplayNameEQ.
func DisplayName(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEQ(FieldDisplayName, v))
}
// AvatarRemoteURL applies equality check predicate on the "avatar_remote_url" field. It's identical to AvatarRemoteURLEQ.
func AvatarRemoteURL(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEQ(FieldAvatarRemoteURL, v))
}
// AvatarLocalFile applies equality check predicate on the "avatar_local_file" field. It's identical to AvatarLocalFileEQ.
func AvatarLocalFile(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEQ(FieldAvatarLocalFile, v))
}
// AvatarUpdatedAt applies equality check predicate on the "avatar_updated_at" field. It's identical to AvatarUpdatedAtEQ.
func AvatarUpdatedAt(v time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEQ(FieldAvatarUpdatedAt, v))
}
// LastSeen applies equality check predicate on the "last_seen" field. It's identical to LastSeenEQ.
func LastSeen(v time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEQ(FieldLastSeen, v))
}
// Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.
func Password(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEQ(FieldPassword, v))
}
// Sub applies equality check predicate on the "sub" field. It's identical to SubEQ.
func Sub(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEQ(FieldSub, v))
}
// HistoryTimeEQ applies the EQ predicate on the "history_time" field.
func HistoryTimeEQ(v time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEQ(FieldHistoryTime, v))
}
// HistoryTimeNEQ applies the NEQ predicate on the "history_time" field.
func HistoryTimeNEQ(v time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldNEQ(FieldHistoryTime, v))
}
// HistoryTimeIn applies the In predicate on the "history_time" field.
func HistoryTimeIn(vs ...time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldIn(FieldHistoryTime, vs...))
}
// HistoryTimeNotIn applies the NotIn predicate on the "history_time" field.
func HistoryTimeNotIn(vs ...time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldNotIn(FieldHistoryTime, vs...))
}
// HistoryTimeGT applies the GT predicate on the "history_time" field.
func HistoryTimeGT(v time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldGT(FieldHistoryTime, v))
}
// HistoryTimeGTE applies the GTE predicate on the "history_time" field.
func HistoryTimeGTE(v time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldGTE(FieldHistoryTime, v))
}
// HistoryTimeLT applies the LT predicate on the "history_time" field.
func HistoryTimeLT(v time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldLT(FieldHistoryTime, v))
}
// HistoryTimeLTE applies the LTE predicate on the "history_time" field.
func HistoryTimeLTE(v time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldLTE(FieldHistoryTime, v))
}
// OperationEQ applies the EQ predicate on the "operation" field.
func OperationEQ(v enthistory.OpType) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEQ(FieldOperation, v))
}
// OperationNEQ applies the NEQ predicate on the "operation" field.
func OperationNEQ(v enthistory.OpType) predicate.UserHistory {
return predicate.UserHistory(sql.FieldNEQ(FieldOperation, v))
}
// OperationIn applies the In predicate on the "operation" field.
func OperationIn(vs ...enthistory.OpType) predicate.UserHistory {
return predicate.UserHistory(sql.FieldIn(FieldOperation, vs...))
}
// OperationNotIn applies the NotIn predicate on the "operation" field.
func OperationNotIn(vs ...enthistory.OpType) predicate.UserHistory {
return predicate.UserHistory(sql.FieldNotIn(FieldOperation, vs...))
}
// RefEQ applies the EQ predicate on the "ref" field.
func RefEQ(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEQ(FieldRef, v))
}
// RefNEQ applies the NEQ predicate on the "ref" field.
func RefNEQ(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldNEQ(FieldRef, v))
}
// RefIn applies the In predicate on the "ref" field.
func RefIn(vs ...string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldIn(FieldRef, vs...))
}
// RefNotIn applies the NotIn predicate on the "ref" field.
func RefNotIn(vs ...string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldNotIn(FieldRef, vs...))
}
// RefGT applies the GT predicate on the "ref" field.
func RefGT(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldGT(FieldRef, v))
}
// RefGTE applies the GTE predicate on the "ref" field.
func RefGTE(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldGTE(FieldRef, v))
}
// RefLT applies the LT predicate on the "ref" field.
func RefLT(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldLT(FieldRef, v))
}
// RefLTE applies the LTE predicate on the "ref" field.
func RefLTE(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldLTE(FieldRef, v))
}
// RefContains applies the Contains predicate on the "ref" field.
func RefContains(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldContains(FieldRef, v))
}
// RefHasPrefix applies the HasPrefix predicate on the "ref" field.
func RefHasPrefix(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldHasPrefix(FieldRef, v))
}
// RefHasSuffix applies the HasSuffix predicate on the "ref" field.
func RefHasSuffix(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldHasSuffix(FieldRef, v))
}
// RefIsNil applies the IsNil predicate on the "ref" field.
func RefIsNil() predicate.UserHistory {
return predicate.UserHistory(sql.FieldIsNull(FieldRef))
}
// RefNotNil applies the NotNil predicate on the "ref" field.
func RefNotNil() predicate.UserHistory {
return predicate.UserHistory(sql.FieldNotNull(FieldRef))
}
// RefEqualFold applies the EqualFold predicate on the "ref" field.
func RefEqualFold(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEqualFold(FieldRef, v))
}
// RefContainsFold applies the ContainsFold predicate on the "ref" field.
func RefContainsFold(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldContainsFold(FieldRef, v))
}
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtEQ(v time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEQ(FieldCreatedAt, v))
}
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNEQ(v time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldNEQ(FieldCreatedAt, v))
}
// CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIn(vs ...time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldIn(FieldCreatedAt, vs...))
}
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotIn(vs ...time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldNotIn(FieldCreatedAt, vs...))
}
// CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGT(v time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldGT(FieldCreatedAt, v))
}
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtGTE(v time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldGTE(FieldCreatedAt, v))
}
// CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLT(v time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldLT(FieldCreatedAt, v))
}
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtLTE(v time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldLTE(FieldCreatedAt, v))
}
// CreatedAtIsNil applies the IsNil predicate on the "created_at" field.
func CreatedAtIsNil() predicate.UserHistory {
return predicate.UserHistory(sql.FieldIsNull(FieldCreatedAt))
}
// CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func CreatedAtNotNil() predicate.UserHistory {
return predicate.UserHistory(sql.FieldNotNull(FieldCreatedAt))
}
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtEQ(v time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEQ(FieldUpdatedAt, v))
}
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNEQ(v time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldNEQ(FieldUpdatedAt, v))
}
// UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIn(vs ...time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldIn(FieldUpdatedAt, vs...))
}
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotIn(vs ...time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldNotIn(FieldUpdatedAt, vs...))
}
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGT(v time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldGT(FieldUpdatedAt, v))
}
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtGTE(v time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldGTE(FieldUpdatedAt, v))
}
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLT(v time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldLT(FieldUpdatedAt, v))
}
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtLTE(v time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldLTE(FieldUpdatedAt, v))
}
// UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtIsNil() predicate.UserHistory {
return predicate.UserHistory(sql.FieldIsNull(FieldUpdatedAt))
}
// UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func UpdatedAtNotNil() predicate.UserHistory {
return predicate.UserHistory(sql.FieldNotNull(FieldUpdatedAt))
}
// CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByEQ(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEQ(FieldCreatedBy, v))
}
// CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNEQ(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldNEQ(FieldCreatedBy, v))
}
// CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIn(vs ...string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldIn(FieldCreatedBy, vs...))
}
// CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotIn(vs ...string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldNotIn(FieldCreatedBy, vs...))
}
// CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGT(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldGT(FieldCreatedBy, v))
}
// CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByGTE(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldGTE(FieldCreatedBy, v))
}
// CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLT(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldLT(FieldCreatedBy, v))
}
// CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByLTE(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldLTE(FieldCreatedBy, v))
}
// CreatedByContains applies the Contains predicate on the "created_by" field.
func CreatedByContains(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldContains(FieldCreatedBy, v))
}
// CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.
func CreatedByHasPrefix(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldHasPrefix(FieldCreatedBy, v))
}
// CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.
func CreatedByHasSuffix(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldHasSuffix(FieldCreatedBy, v))
}
// CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByIsNil() predicate.UserHistory {
return predicate.UserHistory(sql.FieldIsNull(FieldCreatedBy))
}
// CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func CreatedByNotNil() predicate.UserHistory {
return predicate.UserHistory(sql.FieldNotNull(FieldCreatedBy))
}
// CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.
func CreatedByEqualFold(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEqualFold(FieldCreatedBy, v))
}
// CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.
func CreatedByContainsFold(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldContainsFold(FieldCreatedBy, v))
}
// UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByEQ(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEQ(FieldUpdatedBy, v))
}
// UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNEQ(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldNEQ(FieldUpdatedBy, v))
}
// UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIn(vs ...string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldIn(FieldUpdatedBy, vs...))
}
// UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotIn(vs ...string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldNotIn(FieldUpdatedBy, vs...))
}
// UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGT(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldGT(FieldUpdatedBy, v))
}
// UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByGTE(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldGTE(FieldUpdatedBy, v))
}
// UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLT(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldLT(FieldUpdatedBy, v))
}
// UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByLTE(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldLTE(FieldUpdatedBy, v))
}
// UpdatedByContains applies the Contains predicate on the "updated_by" field.
func UpdatedByContains(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldContains(FieldUpdatedBy, v))
}
// UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.
func UpdatedByHasPrefix(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldHasPrefix(FieldUpdatedBy, v))
}
// UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.
func UpdatedByHasSuffix(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldHasSuffix(FieldUpdatedBy, v))
}
// UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByIsNil() predicate.UserHistory {
return predicate.UserHistory(sql.FieldIsNull(FieldUpdatedBy))
}
// UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.
func UpdatedByNotNil() predicate.UserHistory {
return predicate.UserHistory(sql.FieldNotNull(FieldUpdatedBy))
}
// UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.
func UpdatedByEqualFold(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEqualFold(FieldUpdatedBy, v))
}
// UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.
func UpdatedByContainsFold(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldContainsFold(FieldUpdatedBy, v))
}
// DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtEQ(v time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEQ(FieldDeletedAt, v))
}
// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNEQ(v time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldNEQ(FieldDeletedAt, v))
}
// DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIn(vs ...time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldIn(FieldDeletedAt, vs...))
}
// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotIn(vs ...time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldNotIn(FieldDeletedAt, vs...))
}
// DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGT(v time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldGT(FieldDeletedAt, v))
}
// DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtGTE(v time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldGTE(FieldDeletedAt, v))
}
// DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLT(v time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldLT(FieldDeletedAt, v))
}
// DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtLTE(v time.Time) predicate.UserHistory {
return predicate.UserHistory(sql.FieldLTE(FieldDeletedAt, v))
}
// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtIsNil() predicate.UserHistory {
return predicate.UserHistory(sql.FieldIsNull(FieldDeletedAt))
}
// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeletedAtNotNil() predicate.UserHistory {
return predicate.UserHistory(sql.FieldNotNull(FieldDeletedAt))
}
// DeletedByEQ applies the EQ predicate on the "deleted_by" field.
func DeletedByEQ(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEQ(FieldDeletedBy, v))
}
// DeletedByNEQ applies the NEQ predicate on the "deleted_by" field.
func DeletedByNEQ(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldNEQ(FieldDeletedBy, v))
}
// DeletedByIn applies the In predicate on the "deleted_by" field.
func DeletedByIn(vs ...string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldIn(FieldDeletedBy, vs...))
}
// DeletedByNotIn applies the NotIn predicate on the "deleted_by" field.
func DeletedByNotIn(vs ...string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldNotIn(FieldDeletedBy, vs...))
}
// DeletedByGT applies the GT predicate on the "deleted_by" field.
func DeletedByGT(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldGT(FieldDeletedBy, v))
}
// DeletedByGTE applies the GTE predicate on the "deleted_by" field.
func DeletedByGTE(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldGTE(FieldDeletedBy, v))
}
// DeletedByLT applies the LT predicate on the "deleted_by" field.
func DeletedByLT(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldLT(FieldDeletedBy, v))
}
// DeletedByLTE applies the LTE predicate on the "deleted_by" field.
func DeletedByLTE(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldLTE(FieldDeletedBy, v))
}
// DeletedByContains applies the Contains predicate on the "deleted_by" field.
func DeletedByContains(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldContains(FieldDeletedBy, v))
}
// DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field.
func DeletedByHasPrefix(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldHasPrefix(FieldDeletedBy, v))
}
// DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field.
func DeletedByHasSuffix(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldHasSuffix(FieldDeletedBy, v))
}
// DeletedByIsNil applies the IsNil predicate on the "deleted_by" field.
func DeletedByIsNil() predicate.UserHistory {
return predicate.UserHistory(sql.FieldIsNull(FieldDeletedBy))
}
// DeletedByNotNil applies the NotNil predicate on the "deleted_by" field.
func DeletedByNotNil() predicate.UserHistory {
return predicate.UserHistory(sql.FieldNotNull(FieldDeletedBy))
}
// DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field.
func DeletedByEqualFold(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEqualFold(FieldDeletedBy, v))
}
// DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field.
func DeletedByContainsFold(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldContainsFold(FieldDeletedBy, v))
}
// MappingIDEQ applies the EQ predicate on the "mapping_id" field.
func MappingIDEQ(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEQ(FieldMappingID, v))
}
// MappingIDNEQ applies the NEQ predicate on the "mapping_id" field.
func MappingIDNEQ(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldNEQ(FieldMappingID, v))
}
// MappingIDIn applies the In predicate on the "mapping_id" field.
func MappingIDIn(vs ...string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldIn(FieldMappingID, vs...))
}
// MappingIDNotIn applies the NotIn predicate on the "mapping_id" field.
func MappingIDNotIn(vs ...string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldNotIn(FieldMappingID, vs...))
}
// MappingIDGT applies the GT predicate on the "mapping_id" field.
func MappingIDGT(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldGT(FieldMappingID, v))
}
// MappingIDGTE applies the GTE predicate on the "mapping_id" field.
func MappingIDGTE(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldGTE(FieldMappingID, v))
}
// MappingIDLT applies the LT predicate on the "mapping_id" field.
func MappingIDLT(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldLT(FieldMappingID, v))
}
// MappingIDLTE applies the LTE predicate on the "mapping_id" field.
func MappingIDLTE(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldLTE(FieldMappingID, v))
}
// MappingIDContains applies the Contains predicate on the "mapping_id" field.
func MappingIDContains(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldContains(FieldMappingID, v))
}
// MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field.
func MappingIDHasPrefix(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldHasPrefix(FieldMappingID, v))
}
// MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field.
func MappingIDHasSuffix(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldHasSuffix(FieldMappingID, v))
}
// MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field.
func MappingIDEqualFold(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEqualFold(FieldMappingID, v))
}
// MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field.
func MappingIDContainsFold(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldContainsFold(FieldMappingID, v))
}
// EmailEQ applies the EQ predicate on the "email" field.
func EmailEQ(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEQ(FieldEmail, v))
}
// EmailNEQ applies the NEQ predicate on the "email" field.
func EmailNEQ(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldNEQ(FieldEmail, v))
}
// EmailIn applies the In predicate on the "email" field.
func EmailIn(vs ...string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldIn(FieldEmail, vs...))
}
// EmailNotIn applies the NotIn predicate on the "email" field.
func EmailNotIn(vs ...string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldNotIn(FieldEmail, vs...))
}
// EmailGT applies the GT predicate on the "email" field.
func EmailGT(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldGT(FieldEmail, v))
}
// EmailGTE applies the GTE predicate on the "email" field.
func EmailGTE(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldGTE(FieldEmail, v))
}
// EmailLT applies the LT predicate on the "email" field.
func EmailLT(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldLT(FieldEmail, v))
}
// EmailLTE applies the LTE predicate on the "email" field.
func EmailLTE(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldLTE(FieldEmail, v))
}
// EmailContains applies the Contains predicate on the "email" field.
func EmailContains(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldContains(FieldEmail, v))
}
// EmailHasPrefix applies the HasPrefix predicate on the "email" field.
func EmailHasPrefix(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldHasPrefix(FieldEmail, v))
}
// EmailHasSuffix applies the HasSuffix predicate on the "email" field.
func EmailHasSuffix(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldHasSuffix(FieldEmail, v))
}
// EmailEqualFold applies the EqualFold predicate on the "email" field.
func EmailEqualFold(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEqualFold(FieldEmail, v))
}
// EmailContainsFold applies the ContainsFold predicate on the "email" field.
func EmailContainsFold(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldContainsFold(FieldEmail, v))
}
// FirstNameEQ applies the EQ predicate on the "first_name" field.
func FirstNameEQ(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEQ(FieldFirstName, v))
}
// FirstNameNEQ applies the NEQ predicate on the "first_name" field.
func FirstNameNEQ(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldNEQ(FieldFirstName, v))
}
// FirstNameIn applies the In predicate on the "first_name" field.
func FirstNameIn(vs ...string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldIn(FieldFirstName, vs...))
}
// FirstNameNotIn applies the NotIn predicate on the "first_name" field.
func FirstNameNotIn(vs ...string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldNotIn(FieldFirstName, vs...))
}
// FirstNameGT applies the GT predicate on the "first_name" field.
func FirstNameGT(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldGT(FieldFirstName, v))
}
// FirstNameGTE applies the GTE predicate on the "first_name" field.
func FirstNameGTE(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldGTE(FieldFirstName, v))
}
// FirstNameLT applies the LT predicate on the "first_name" field.
func FirstNameLT(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldLT(FieldFirstName, v))
}
// FirstNameLTE applies the LTE predicate on the "first_name" field.
func FirstNameLTE(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldLTE(FieldFirstName, v))
}
// FirstNameContains applies the Contains predicate on the "first_name" field.
func FirstNameContains(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldContains(FieldFirstName, v))
}
// FirstNameHasPrefix applies the HasPrefix predicate on the "first_name" field.
func FirstNameHasPrefix(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldHasPrefix(FieldFirstName, v))
}
// FirstNameHasSuffix applies the HasSuffix predicate on the "first_name" field.
func FirstNameHasSuffix(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldHasSuffix(FieldFirstName, v))
}
// FirstNameEqualFold applies the EqualFold predicate on the "first_name" field.
func FirstNameEqualFold(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEqualFold(FieldFirstName, v))
}
// FirstNameContainsFold applies the ContainsFold predicate on the "first_name" field.
func FirstNameContainsFold(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldContainsFold(FieldFirstName, v))
}
// LastNameEQ applies the EQ predicate on the "last_name" field.
func LastNameEQ(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEQ(FieldLastName, v))
}
// LastNameNEQ applies the NEQ predicate on the "last_name" field.
func LastNameNEQ(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldNEQ(FieldLastName, v))
}
// LastNameIn applies the In predicate on the "last_name" field.
func LastNameIn(vs ...string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldIn(FieldLastName, vs...))
}
// LastNameNotIn applies the NotIn predicate on the "last_name" field.
func LastNameNotIn(vs ...string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldNotIn(FieldLastName, vs...))
}
// LastNameGT applies the GT predicate on the "last_name" field.
func LastNameGT(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldGT(FieldLastName, v))
}
// LastNameGTE applies the GTE predicate on the "last_name" field.
func LastNameGTE(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldGTE(FieldLastName, v))
}
// LastNameLT applies the LT predicate on the "last_name" field.
func LastNameLT(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldLT(FieldLastName, v))
}
// LastNameLTE applies the LTE predicate on the "last_name" field.
func LastNameLTE(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldLTE(FieldLastName, v))
}
// LastNameContains applies the Contains predicate on the "last_name" field.
func LastNameContains(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldContains(FieldLastName, v))
}
// LastNameHasPrefix applies the HasPrefix predicate on the "last_name" field.
func LastNameHasPrefix(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldHasPrefix(FieldLastName, v))
}
// LastNameHasSuffix applies the HasSuffix predicate on the "last_name" field.
func LastNameHasSuffix(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldHasSuffix(FieldLastName, v))
}
// LastNameEqualFold applies the EqualFold predicate on the "last_name" field.
func LastNameEqualFold(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEqualFold(FieldLastName, v))
}
// LastNameContainsFold applies the ContainsFold predicate on the "last_name" field.
func LastNameContainsFold(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldContainsFold(FieldLastName, v))
}
// DisplayNameEQ applies the EQ predicate on the "display_name" field.
func DisplayNameEQ(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEQ(FieldDisplayName, v))
}
// DisplayNameNEQ applies the NEQ predicate on the "display_name" field.
func DisplayNameNEQ(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldNEQ(FieldDisplayName, v))
}
// DisplayNameIn applies the In predicate on the "display_name" field.
func DisplayNameIn(vs ...string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldIn(FieldDisplayName, vs...))
}
// DisplayNameNotIn applies the NotIn predicate on the "display_name" field.
func DisplayNameNotIn(vs ...string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldNotIn(FieldDisplayName, vs...))
}
// DisplayNameGT applies the GT predicate on the "display_name" field.
func DisplayNameGT(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldGT(FieldDisplayName, v))
}
// DisplayNameGTE applies the GTE predicate on the "display_name" field.
func DisplayNameGTE(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldGTE(FieldDisplayName, v))
}
// DisplayNameLT applies the LT predicate on the "display_name" field.
func DisplayNameLT(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldLT(FieldDisplayName, v))
}
// DisplayNameLTE applies the LTE predicate on the "display_name" field.
func DisplayNameLTE(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldLTE(FieldDisplayName, v))
}
// DisplayNameContains applies the Contains predicate on the "display_name" field.
func DisplayNameContains(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldContains(FieldDisplayName, v))
}
// DisplayNameHasPrefix applies the HasPrefix predicate on the "display_name" field.
func DisplayNameHasPrefix(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldHasPrefix(FieldDisplayName, v))
}
// DisplayNameHasSuffix applies the HasSuffix predicate on the "display_name" field.
func DisplayNameHasSuffix(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldHasSuffix(FieldDisplayName, v))
}
// DisplayNameEqualFold applies the EqualFold predicate on the "display_name" field.
func DisplayNameEqualFold(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldEqualFold(FieldDisplayName, v))
}
// DisplayNameContainsFold applies the ContainsFold predicate on the "display_name" field.
func DisplayNameContainsFold(v string) predicate.UserHistory {
return predicate.UserHistory(sql.FieldContainsFold(FieldDisplayName, v))
}
// AvatarRemoteURLEQ applies the EQ predicate on the "avatar_remote_url" field.
func AvatarRemoteURLEQ(v string) predicate.UserHistory {