github.com/crowdsecurity/crowdsec@v1.6.1/pkg/database/ent/alert/where.go (about)

     1  // Code generated by ent, DO NOT EDIT.
     2  
     3  package alert
     4  
     5  import (
     6  	"time"
     7  
     8  	"entgo.io/ent/dialect/sql"
     9  	"entgo.io/ent/dialect/sql/sqlgraph"
    10  	"github.com/crowdsecurity/crowdsec/pkg/database/ent/predicate"
    11  )
    12  
    13  // ID filters vertices based on their ID field.
    14  func ID(id int) predicate.Alert {
    15  	return predicate.Alert(sql.FieldEQ(FieldID, id))
    16  }
    17  
    18  // IDEQ applies the EQ predicate on the ID field.
    19  func IDEQ(id int) predicate.Alert {
    20  	return predicate.Alert(sql.FieldEQ(FieldID, id))
    21  }
    22  
    23  // IDNEQ applies the NEQ predicate on the ID field.
    24  func IDNEQ(id int) predicate.Alert {
    25  	return predicate.Alert(sql.FieldNEQ(FieldID, id))
    26  }
    27  
    28  // IDIn applies the In predicate on the ID field.
    29  func IDIn(ids ...int) predicate.Alert {
    30  	return predicate.Alert(sql.FieldIn(FieldID, ids...))
    31  }
    32  
    33  // IDNotIn applies the NotIn predicate on the ID field.
    34  func IDNotIn(ids ...int) predicate.Alert {
    35  	return predicate.Alert(sql.FieldNotIn(FieldID, ids...))
    36  }
    37  
    38  // IDGT applies the GT predicate on the ID field.
    39  func IDGT(id int) predicate.Alert {
    40  	return predicate.Alert(sql.FieldGT(FieldID, id))
    41  }
    42  
    43  // IDGTE applies the GTE predicate on the ID field.
    44  func IDGTE(id int) predicate.Alert {
    45  	return predicate.Alert(sql.FieldGTE(FieldID, id))
    46  }
    47  
    48  // IDLT applies the LT predicate on the ID field.
    49  func IDLT(id int) predicate.Alert {
    50  	return predicate.Alert(sql.FieldLT(FieldID, id))
    51  }
    52  
    53  // IDLTE applies the LTE predicate on the ID field.
    54  func IDLTE(id int) predicate.Alert {
    55  	return predicate.Alert(sql.FieldLTE(FieldID, id))
    56  }
    57  
    58  // CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
    59  func CreatedAt(v time.Time) predicate.Alert {
    60  	return predicate.Alert(sql.FieldEQ(FieldCreatedAt, v))
    61  }
    62  
    63  // UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
    64  func UpdatedAt(v time.Time) predicate.Alert {
    65  	return predicate.Alert(sql.FieldEQ(FieldUpdatedAt, v))
    66  }
    67  
    68  // Scenario applies equality check predicate on the "scenario" field. It's identical to ScenarioEQ.
    69  func Scenario(v string) predicate.Alert {
    70  	return predicate.Alert(sql.FieldEQ(FieldScenario, v))
    71  }
    72  
    73  // BucketId applies equality check predicate on the "bucketId" field. It's identical to BucketIdEQ.
    74  func BucketId(v string) predicate.Alert {
    75  	return predicate.Alert(sql.FieldEQ(FieldBucketId, v))
    76  }
    77  
    78  // Message applies equality check predicate on the "message" field. It's identical to MessageEQ.
    79  func Message(v string) predicate.Alert {
    80  	return predicate.Alert(sql.FieldEQ(FieldMessage, v))
    81  }
    82  
    83  // EventsCount applies equality check predicate on the "eventsCount" field. It's identical to EventsCountEQ.
    84  func EventsCount(v int32) predicate.Alert {
    85  	return predicate.Alert(sql.FieldEQ(FieldEventsCount, v))
    86  }
    87  
    88  // StartedAt applies equality check predicate on the "startedAt" field. It's identical to StartedAtEQ.
    89  func StartedAt(v time.Time) predicate.Alert {
    90  	return predicate.Alert(sql.FieldEQ(FieldStartedAt, v))
    91  }
    92  
    93  // StoppedAt applies equality check predicate on the "stoppedAt" field. It's identical to StoppedAtEQ.
    94  func StoppedAt(v time.Time) predicate.Alert {
    95  	return predicate.Alert(sql.FieldEQ(FieldStoppedAt, v))
    96  }
    97  
    98  // SourceIp applies equality check predicate on the "sourceIp" field. It's identical to SourceIpEQ.
    99  func SourceIp(v string) predicate.Alert {
   100  	return predicate.Alert(sql.FieldEQ(FieldSourceIp, v))
   101  }
   102  
   103  // SourceRange applies equality check predicate on the "sourceRange" field. It's identical to SourceRangeEQ.
   104  func SourceRange(v string) predicate.Alert {
   105  	return predicate.Alert(sql.FieldEQ(FieldSourceRange, v))
   106  }
   107  
   108  // SourceAsNumber applies equality check predicate on the "sourceAsNumber" field. It's identical to SourceAsNumberEQ.
   109  func SourceAsNumber(v string) predicate.Alert {
   110  	return predicate.Alert(sql.FieldEQ(FieldSourceAsNumber, v))
   111  }
   112  
   113  // SourceAsName applies equality check predicate on the "sourceAsName" field. It's identical to SourceAsNameEQ.
   114  func SourceAsName(v string) predicate.Alert {
   115  	return predicate.Alert(sql.FieldEQ(FieldSourceAsName, v))
   116  }
   117  
   118  // SourceCountry applies equality check predicate on the "sourceCountry" field. It's identical to SourceCountryEQ.
   119  func SourceCountry(v string) predicate.Alert {
   120  	return predicate.Alert(sql.FieldEQ(FieldSourceCountry, v))
   121  }
   122  
   123  // SourceLatitude applies equality check predicate on the "sourceLatitude" field. It's identical to SourceLatitudeEQ.
   124  func SourceLatitude(v float32) predicate.Alert {
   125  	return predicate.Alert(sql.FieldEQ(FieldSourceLatitude, v))
   126  }
   127  
   128  // SourceLongitude applies equality check predicate on the "sourceLongitude" field. It's identical to SourceLongitudeEQ.
   129  func SourceLongitude(v float32) predicate.Alert {
   130  	return predicate.Alert(sql.FieldEQ(FieldSourceLongitude, v))
   131  }
   132  
   133  // SourceScope applies equality check predicate on the "sourceScope" field. It's identical to SourceScopeEQ.
   134  func SourceScope(v string) predicate.Alert {
   135  	return predicate.Alert(sql.FieldEQ(FieldSourceScope, v))
   136  }
   137  
   138  // SourceValue applies equality check predicate on the "sourceValue" field. It's identical to SourceValueEQ.
   139  func SourceValue(v string) predicate.Alert {
   140  	return predicate.Alert(sql.FieldEQ(FieldSourceValue, v))
   141  }
   142  
   143  // Capacity applies equality check predicate on the "capacity" field. It's identical to CapacityEQ.
   144  func Capacity(v int32) predicate.Alert {
   145  	return predicate.Alert(sql.FieldEQ(FieldCapacity, v))
   146  }
   147  
   148  // LeakSpeed applies equality check predicate on the "leakSpeed" field. It's identical to LeakSpeedEQ.
   149  func LeakSpeed(v string) predicate.Alert {
   150  	return predicate.Alert(sql.FieldEQ(FieldLeakSpeed, v))
   151  }
   152  
   153  // ScenarioVersion applies equality check predicate on the "scenarioVersion" field. It's identical to ScenarioVersionEQ.
   154  func ScenarioVersion(v string) predicate.Alert {
   155  	return predicate.Alert(sql.FieldEQ(FieldScenarioVersion, v))
   156  }
   157  
   158  // ScenarioHash applies equality check predicate on the "scenarioHash" field. It's identical to ScenarioHashEQ.
   159  func ScenarioHash(v string) predicate.Alert {
   160  	return predicate.Alert(sql.FieldEQ(FieldScenarioHash, v))
   161  }
   162  
   163  // Simulated applies equality check predicate on the "simulated" field. It's identical to SimulatedEQ.
   164  func Simulated(v bool) predicate.Alert {
   165  	return predicate.Alert(sql.FieldEQ(FieldSimulated, v))
   166  }
   167  
   168  // UUID applies equality check predicate on the "uuid" field. It's identical to UUIDEQ.
   169  func UUID(v string) predicate.Alert {
   170  	return predicate.Alert(sql.FieldEQ(FieldUUID, v))
   171  }
   172  
   173  // CreatedAtEQ applies the EQ predicate on the "created_at" field.
   174  func CreatedAtEQ(v time.Time) predicate.Alert {
   175  	return predicate.Alert(sql.FieldEQ(FieldCreatedAt, v))
   176  }
   177  
   178  // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
   179  func CreatedAtNEQ(v time.Time) predicate.Alert {
   180  	return predicate.Alert(sql.FieldNEQ(FieldCreatedAt, v))
   181  }
   182  
   183  // CreatedAtIn applies the In predicate on the "created_at" field.
   184  func CreatedAtIn(vs ...time.Time) predicate.Alert {
   185  	return predicate.Alert(sql.FieldIn(FieldCreatedAt, vs...))
   186  }
   187  
   188  // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
   189  func CreatedAtNotIn(vs ...time.Time) predicate.Alert {
   190  	return predicate.Alert(sql.FieldNotIn(FieldCreatedAt, vs...))
   191  }
   192  
   193  // CreatedAtGT applies the GT predicate on the "created_at" field.
   194  func CreatedAtGT(v time.Time) predicate.Alert {
   195  	return predicate.Alert(sql.FieldGT(FieldCreatedAt, v))
   196  }
   197  
   198  // CreatedAtGTE applies the GTE predicate on the "created_at" field.
   199  func CreatedAtGTE(v time.Time) predicate.Alert {
   200  	return predicate.Alert(sql.FieldGTE(FieldCreatedAt, v))
   201  }
   202  
   203  // CreatedAtLT applies the LT predicate on the "created_at" field.
   204  func CreatedAtLT(v time.Time) predicate.Alert {
   205  	return predicate.Alert(sql.FieldLT(FieldCreatedAt, v))
   206  }
   207  
   208  // CreatedAtLTE applies the LTE predicate on the "created_at" field.
   209  func CreatedAtLTE(v time.Time) predicate.Alert {
   210  	return predicate.Alert(sql.FieldLTE(FieldCreatedAt, v))
   211  }
   212  
   213  // CreatedAtIsNil applies the IsNil predicate on the "created_at" field.
   214  func CreatedAtIsNil() predicate.Alert {
   215  	return predicate.Alert(sql.FieldIsNull(FieldCreatedAt))
   216  }
   217  
   218  // CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
   219  func CreatedAtNotNil() predicate.Alert {
   220  	return predicate.Alert(sql.FieldNotNull(FieldCreatedAt))
   221  }
   222  
   223  // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
   224  func UpdatedAtEQ(v time.Time) predicate.Alert {
   225  	return predicate.Alert(sql.FieldEQ(FieldUpdatedAt, v))
   226  }
   227  
   228  // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
   229  func UpdatedAtNEQ(v time.Time) predicate.Alert {
   230  	return predicate.Alert(sql.FieldNEQ(FieldUpdatedAt, v))
   231  }
   232  
   233  // UpdatedAtIn applies the In predicate on the "updated_at" field.
   234  func UpdatedAtIn(vs ...time.Time) predicate.Alert {
   235  	return predicate.Alert(sql.FieldIn(FieldUpdatedAt, vs...))
   236  }
   237  
   238  // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
   239  func UpdatedAtNotIn(vs ...time.Time) predicate.Alert {
   240  	return predicate.Alert(sql.FieldNotIn(FieldUpdatedAt, vs...))
   241  }
   242  
   243  // UpdatedAtGT applies the GT predicate on the "updated_at" field.
   244  func UpdatedAtGT(v time.Time) predicate.Alert {
   245  	return predicate.Alert(sql.FieldGT(FieldUpdatedAt, v))
   246  }
   247  
   248  // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
   249  func UpdatedAtGTE(v time.Time) predicate.Alert {
   250  	return predicate.Alert(sql.FieldGTE(FieldUpdatedAt, v))
   251  }
   252  
   253  // UpdatedAtLT applies the LT predicate on the "updated_at" field.
   254  func UpdatedAtLT(v time.Time) predicate.Alert {
   255  	return predicate.Alert(sql.FieldLT(FieldUpdatedAt, v))
   256  }
   257  
   258  // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
   259  func UpdatedAtLTE(v time.Time) predicate.Alert {
   260  	return predicate.Alert(sql.FieldLTE(FieldUpdatedAt, v))
   261  }
   262  
   263  // UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
   264  func UpdatedAtIsNil() predicate.Alert {
   265  	return predicate.Alert(sql.FieldIsNull(FieldUpdatedAt))
   266  }
   267  
   268  // UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
   269  func UpdatedAtNotNil() predicate.Alert {
   270  	return predicate.Alert(sql.FieldNotNull(FieldUpdatedAt))
   271  }
   272  
   273  // ScenarioEQ applies the EQ predicate on the "scenario" field.
   274  func ScenarioEQ(v string) predicate.Alert {
   275  	return predicate.Alert(sql.FieldEQ(FieldScenario, v))
   276  }
   277  
   278  // ScenarioNEQ applies the NEQ predicate on the "scenario" field.
   279  func ScenarioNEQ(v string) predicate.Alert {
   280  	return predicate.Alert(sql.FieldNEQ(FieldScenario, v))
   281  }
   282  
   283  // ScenarioIn applies the In predicate on the "scenario" field.
   284  func ScenarioIn(vs ...string) predicate.Alert {
   285  	return predicate.Alert(sql.FieldIn(FieldScenario, vs...))
   286  }
   287  
   288  // ScenarioNotIn applies the NotIn predicate on the "scenario" field.
   289  func ScenarioNotIn(vs ...string) predicate.Alert {
   290  	return predicate.Alert(sql.FieldNotIn(FieldScenario, vs...))
   291  }
   292  
   293  // ScenarioGT applies the GT predicate on the "scenario" field.
   294  func ScenarioGT(v string) predicate.Alert {
   295  	return predicate.Alert(sql.FieldGT(FieldScenario, v))
   296  }
   297  
   298  // ScenarioGTE applies the GTE predicate on the "scenario" field.
   299  func ScenarioGTE(v string) predicate.Alert {
   300  	return predicate.Alert(sql.FieldGTE(FieldScenario, v))
   301  }
   302  
   303  // ScenarioLT applies the LT predicate on the "scenario" field.
   304  func ScenarioLT(v string) predicate.Alert {
   305  	return predicate.Alert(sql.FieldLT(FieldScenario, v))
   306  }
   307  
   308  // ScenarioLTE applies the LTE predicate on the "scenario" field.
   309  func ScenarioLTE(v string) predicate.Alert {
   310  	return predicate.Alert(sql.FieldLTE(FieldScenario, v))
   311  }
   312  
   313  // ScenarioContains applies the Contains predicate on the "scenario" field.
   314  func ScenarioContains(v string) predicate.Alert {
   315  	return predicate.Alert(sql.FieldContains(FieldScenario, v))
   316  }
   317  
   318  // ScenarioHasPrefix applies the HasPrefix predicate on the "scenario" field.
   319  func ScenarioHasPrefix(v string) predicate.Alert {
   320  	return predicate.Alert(sql.FieldHasPrefix(FieldScenario, v))
   321  }
   322  
   323  // ScenarioHasSuffix applies the HasSuffix predicate on the "scenario" field.
   324  func ScenarioHasSuffix(v string) predicate.Alert {
   325  	return predicate.Alert(sql.FieldHasSuffix(FieldScenario, v))
   326  }
   327  
   328  // ScenarioEqualFold applies the EqualFold predicate on the "scenario" field.
   329  func ScenarioEqualFold(v string) predicate.Alert {
   330  	return predicate.Alert(sql.FieldEqualFold(FieldScenario, v))
   331  }
   332  
   333  // ScenarioContainsFold applies the ContainsFold predicate on the "scenario" field.
   334  func ScenarioContainsFold(v string) predicate.Alert {
   335  	return predicate.Alert(sql.FieldContainsFold(FieldScenario, v))
   336  }
   337  
   338  // BucketIdEQ applies the EQ predicate on the "bucketId" field.
   339  func BucketIdEQ(v string) predicate.Alert {
   340  	return predicate.Alert(sql.FieldEQ(FieldBucketId, v))
   341  }
   342  
   343  // BucketIdNEQ applies the NEQ predicate on the "bucketId" field.
   344  func BucketIdNEQ(v string) predicate.Alert {
   345  	return predicate.Alert(sql.FieldNEQ(FieldBucketId, v))
   346  }
   347  
   348  // BucketIdIn applies the In predicate on the "bucketId" field.
   349  func BucketIdIn(vs ...string) predicate.Alert {
   350  	return predicate.Alert(sql.FieldIn(FieldBucketId, vs...))
   351  }
   352  
   353  // BucketIdNotIn applies the NotIn predicate on the "bucketId" field.
   354  func BucketIdNotIn(vs ...string) predicate.Alert {
   355  	return predicate.Alert(sql.FieldNotIn(FieldBucketId, vs...))
   356  }
   357  
   358  // BucketIdGT applies the GT predicate on the "bucketId" field.
   359  func BucketIdGT(v string) predicate.Alert {
   360  	return predicate.Alert(sql.FieldGT(FieldBucketId, v))
   361  }
   362  
   363  // BucketIdGTE applies the GTE predicate on the "bucketId" field.
   364  func BucketIdGTE(v string) predicate.Alert {
   365  	return predicate.Alert(sql.FieldGTE(FieldBucketId, v))
   366  }
   367  
   368  // BucketIdLT applies the LT predicate on the "bucketId" field.
   369  func BucketIdLT(v string) predicate.Alert {
   370  	return predicate.Alert(sql.FieldLT(FieldBucketId, v))
   371  }
   372  
   373  // BucketIdLTE applies the LTE predicate on the "bucketId" field.
   374  func BucketIdLTE(v string) predicate.Alert {
   375  	return predicate.Alert(sql.FieldLTE(FieldBucketId, v))
   376  }
   377  
   378  // BucketIdContains applies the Contains predicate on the "bucketId" field.
   379  func BucketIdContains(v string) predicate.Alert {
   380  	return predicate.Alert(sql.FieldContains(FieldBucketId, v))
   381  }
   382  
   383  // BucketIdHasPrefix applies the HasPrefix predicate on the "bucketId" field.
   384  func BucketIdHasPrefix(v string) predicate.Alert {
   385  	return predicate.Alert(sql.FieldHasPrefix(FieldBucketId, v))
   386  }
   387  
   388  // BucketIdHasSuffix applies the HasSuffix predicate on the "bucketId" field.
   389  func BucketIdHasSuffix(v string) predicate.Alert {
   390  	return predicate.Alert(sql.FieldHasSuffix(FieldBucketId, v))
   391  }
   392  
   393  // BucketIdIsNil applies the IsNil predicate on the "bucketId" field.
   394  func BucketIdIsNil() predicate.Alert {
   395  	return predicate.Alert(sql.FieldIsNull(FieldBucketId))
   396  }
   397  
   398  // BucketIdNotNil applies the NotNil predicate on the "bucketId" field.
   399  func BucketIdNotNil() predicate.Alert {
   400  	return predicate.Alert(sql.FieldNotNull(FieldBucketId))
   401  }
   402  
   403  // BucketIdEqualFold applies the EqualFold predicate on the "bucketId" field.
   404  func BucketIdEqualFold(v string) predicate.Alert {
   405  	return predicate.Alert(sql.FieldEqualFold(FieldBucketId, v))
   406  }
   407  
   408  // BucketIdContainsFold applies the ContainsFold predicate on the "bucketId" field.
   409  func BucketIdContainsFold(v string) predicate.Alert {
   410  	return predicate.Alert(sql.FieldContainsFold(FieldBucketId, v))
   411  }
   412  
   413  // MessageEQ applies the EQ predicate on the "message" field.
   414  func MessageEQ(v string) predicate.Alert {
   415  	return predicate.Alert(sql.FieldEQ(FieldMessage, v))
   416  }
   417  
   418  // MessageNEQ applies the NEQ predicate on the "message" field.
   419  func MessageNEQ(v string) predicate.Alert {
   420  	return predicate.Alert(sql.FieldNEQ(FieldMessage, v))
   421  }
   422  
   423  // MessageIn applies the In predicate on the "message" field.
   424  func MessageIn(vs ...string) predicate.Alert {
   425  	return predicate.Alert(sql.FieldIn(FieldMessage, vs...))
   426  }
   427  
   428  // MessageNotIn applies the NotIn predicate on the "message" field.
   429  func MessageNotIn(vs ...string) predicate.Alert {
   430  	return predicate.Alert(sql.FieldNotIn(FieldMessage, vs...))
   431  }
   432  
   433  // MessageGT applies the GT predicate on the "message" field.
   434  func MessageGT(v string) predicate.Alert {
   435  	return predicate.Alert(sql.FieldGT(FieldMessage, v))
   436  }
   437  
   438  // MessageGTE applies the GTE predicate on the "message" field.
   439  func MessageGTE(v string) predicate.Alert {
   440  	return predicate.Alert(sql.FieldGTE(FieldMessage, v))
   441  }
   442  
   443  // MessageLT applies the LT predicate on the "message" field.
   444  func MessageLT(v string) predicate.Alert {
   445  	return predicate.Alert(sql.FieldLT(FieldMessage, v))
   446  }
   447  
   448  // MessageLTE applies the LTE predicate on the "message" field.
   449  func MessageLTE(v string) predicate.Alert {
   450  	return predicate.Alert(sql.FieldLTE(FieldMessage, v))
   451  }
   452  
   453  // MessageContains applies the Contains predicate on the "message" field.
   454  func MessageContains(v string) predicate.Alert {
   455  	return predicate.Alert(sql.FieldContains(FieldMessage, v))
   456  }
   457  
   458  // MessageHasPrefix applies the HasPrefix predicate on the "message" field.
   459  func MessageHasPrefix(v string) predicate.Alert {
   460  	return predicate.Alert(sql.FieldHasPrefix(FieldMessage, v))
   461  }
   462  
   463  // MessageHasSuffix applies the HasSuffix predicate on the "message" field.
   464  func MessageHasSuffix(v string) predicate.Alert {
   465  	return predicate.Alert(sql.FieldHasSuffix(FieldMessage, v))
   466  }
   467  
   468  // MessageIsNil applies the IsNil predicate on the "message" field.
   469  func MessageIsNil() predicate.Alert {
   470  	return predicate.Alert(sql.FieldIsNull(FieldMessage))
   471  }
   472  
   473  // MessageNotNil applies the NotNil predicate on the "message" field.
   474  func MessageNotNil() predicate.Alert {
   475  	return predicate.Alert(sql.FieldNotNull(FieldMessage))
   476  }
   477  
   478  // MessageEqualFold applies the EqualFold predicate on the "message" field.
   479  func MessageEqualFold(v string) predicate.Alert {
   480  	return predicate.Alert(sql.FieldEqualFold(FieldMessage, v))
   481  }
   482  
   483  // MessageContainsFold applies the ContainsFold predicate on the "message" field.
   484  func MessageContainsFold(v string) predicate.Alert {
   485  	return predicate.Alert(sql.FieldContainsFold(FieldMessage, v))
   486  }
   487  
   488  // EventsCountEQ applies the EQ predicate on the "eventsCount" field.
   489  func EventsCountEQ(v int32) predicate.Alert {
   490  	return predicate.Alert(sql.FieldEQ(FieldEventsCount, v))
   491  }
   492  
   493  // EventsCountNEQ applies the NEQ predicate on the "eventsCount" field.
   494  func EventsCountNEQ(v int32) predicate.Alert {
   495  	return predicate.Alert(sql.FieldNEQ(FieldEventsCount, v))
   496  }
   497  
   498  // EventsCountIn applies the In predicate on the "eventsCount" field.
   499  func EventsCountIn(vs ...int32) predicate.Alert {
   500  	return predicate.Alert(sql.FieldIn(FieldEventsCount, vs...))
   501  }
   502  
   503  // EventsCountNotIn applies the NotIn predicate on the "eventsCount" field.
   504  func EventsCountNotIn(vs ...int32) predicate.Alert {
   505  	return predicate.Alert(sql.FieldNotIn(FieldEventsCount, vs...))
   506  }
   507  
   508  // EventsCountGT applies the GT predicate on the "eventsCount" field.
   509  func EventsCountGT(v int32) predicate.Alert {
   510  	return predicate.Alert(sql.FieldGT(FieldEventsCount, v))
   511  }
   512  
   513  // EventsCountGTE applies the GTE predicate on the "eventsCount" field.
   514  func EventsCountGTE(v int32) predicate.Alert {
   515  	return predicate.Alert(sql.FieldGTE(FieldEventsCount, v))
   516  }
   517  
   518  // EventsCountLT applies the LT predicate on the "eventsCount" field.
   519  func EventsCountLT(v int32) predicate.Alert {
   520  	return predicate.Alert(sql.FieldLT(FieldEventsCount, v))
   521  }
   522  
   523  // EventsCountLTE applies the LTE predicate on the "eventsCount" field.
   524  func EventsCountLTE(v int32) predicate.Alert {
   525  	return predicate.Alert(sql.FieldLTE(FieldEventsCount, v))
   526  }
   527  
   528  // EventsCountIsNil applies the IsNil predicate on the "eventsCount" field.
   529  func EventsCountIsNil() predicate.Alert {
   530  	return predicate.Alert(sql.FieldIsNull(FieldEventsCount))
   531  }
   532  
   533  // EventsCountNotNil applies the NotNil predicate on the "eventsCount" field.
   534  func EventsCountNotNil() predicate.Alert {
   535  	return predicate.Alert(sql.FieldNotNull(FieldEventsCount))
   536  }
   537  
   538  // StartedAtEQ applies the EQ predicate on the "startedAt" field.
   539  func StartedAtEQ(v time.Time) predicate.Alert {
   540  	return predicate.Alert(sql.FieldEQ(FieldStartedAt, v))
   541  }
   542  
   543  // StartedAtNEQ applies the NEQ predicate on the "startedAt" field.
   544  func StartedAtNEQ(v time.Time) predicate.Alert {
   545  	return predicate.Alert(sql.FieldNEQ(FieldStartedAt, v))
   546  }
   547  
   548  // StartedAtIn applies the In predicate on the "startedAt" field.
   549  func StartedAtIn(vs ...time.Time) predicate.Alert {
   550  	return predicate.Alert(sql.FieldIn(FieldStartedAt, vs...))
   551  }
   552  
   553  // StartedAtNotIn applies the NotIn predicate on the "startedAt" field.
   554  func StartedAtNotIn(vs ...time.Time) predicate.Alert {
   555  	return predicate.Alert(sql.FieldNotIn(FieldStartedAt, vs...))
   556  }
   557  
   558  // StartedAtGT applies the GT predicate on the "startedAt" field.
   559  func StartedAtGT(v time.Time) predicate.Alert {
   560  	return predicate.Alert(sql.FieldGT(FieldStartedAt, v))
   561  }
   562  
   563  // StartedAtGTE applies the GTE predicate on the "startedAt" field.
   564  func StartedAtGTE(v time.Time) predicate.Alert {
   565  	return predicate.Alert(sql.FieldGTE(FieldStartedAt, v))
   566  }
   567  
   568  // StartedAtLT applies the LT predicate on the "startedAt" field.
   569  func StartedAtLT(v time.Time) predicate.Alert {
   570  	return predicate.Alert(sql.FieldLT(FieldStartedAt, v))
   571  }
   572  
   573  // StartedAtLTE applies the LTE predicate on the "startedAt" field.
   574  func StartedAtLTE(v time.Time) predicate.Alert {
   575  	return predicate.Alert(sql.FieldLTE(FieldStartedAt, v))
   576  }
   577  
   578  // StartedAtIsNil applies the IsNil predicate on the "startedAt" field.
   579  func StartedAtIsNil() predicate.Alert {
   580  	return predicate.Alert(sql.FieldIsNull(FieldStartedAt))
   581  }
   582  
   583  // StartedAtNotNil applies the NotNil predicate on the "startedAt" field.
   584  func StartedAtNotNil() predicate.Alert {
   585  	return predicate.Alert(sql.FieldNotNull(FieldStartedAt))
   586  }
   587  
   588  // StoppedAtEQ applies the EQ predicate on the "stoppedAt" field.
   589  func StoppedAtEQ(v time.Time) predicate.Alert {
   590  	return predicate.Alert(sql.FieldEQ(FieldStoppedAt, v))
   591  }
   592  
   593  // StoppedAtNEQ applies the NEQ predicate on the "stoppedAt" field.
   594  func StoppedAtNEQ(v time.Time) predicate.Alert {
   595  	return predicate.Alert(sql.FieldNEQ(FieldStoppedAt, v))
   596  }
   597  
   598  // StoppedAtIn applies the In predicate on the "stoppedAt" field.
   599  func StoppedAtIn(vs ...time.Time) predicate.Alert {
   600  	return predicate.Alert(sql.FieldIn(FieldStoppedAt, vs...))
   601  }
   602  
   603  // StoppedAtNotIn applies the NotIn predicate on the "stoppedAt" field.
   604  func StoppedAtNotIn(vs ...time.Time) predicate.Alert {
   605  	return predicate.Alert(sql.FieldNotIn(FieldStoppedAt, vs...))
   606  }
   607  
   608  // StoppedAtGT applies the GT predicate on the "stoppedAt" field.
   609  func StoppedAtGT(v time.Time) predicate.Alert {
   610  	return predicate.Alert(sql.FieldGT(FieldStoppedAt, v))
   611  }
   612  
   613  // StoppedAtGTE applies the GTE predicate on the "stoppedAt" field.
   614  func StoppedAtGTE(v time.Time) predicate.Alert {
   615  	return predicate.Alert(sql.FieldGTE(FieldStoppedAt, v))
   616  }
   617  
   618  // StoppedAtLT applies the LT predicate on the "stoppedAt" field.
   619  func StoppedAtLT(v time.Time) predicate.Alert {
   620  	return predicate.Alert(sql.FieldLT(FieldStoppedAt, v))
   621  }
   622  
   623  // StoppedAtLTE applies the LTE predicate on the "stoppedAt" field.
   624  func StoppedAtLTE(v time.Time) predicate.Alert {
   625  	return predicate.Alert(sql.FieldLTE(FieldStoppedAt, v))
   626  }
   627  
   628  // StoppedAtIsNil applies the IsNil predicate on the "stoppedAt" field.
   629  func StoppedAtIsNil() predicate.Alert {
   630  	return predicate.Alert(sql.FieldIsNull(FieldStoppedAt))
   631  }
   632  
   633  // StoppedAtNotNil applies the NotNil predicate on the "stoppedAt" field.
   634  func StoppedAtNotNil() predicate.Alert {
   635  	return predicate.Alert(sql.FieldNotNull(FieldStoppedAt))
   636  }
   637  
   638  // SourceIpEQ applies the EQ predicate on the "sourceIp" field.
   639  func SourceIpEQ(v string) predicate.Alert {
   640  	return predicate.Alert(sql.FieldEQ(FieldSourceIp, v))
   641  }
   642  
   643  // SourceIpNEQ applies the NEQ predicate on the "sourceIp" field.
   644  func SourceIpNEQ(v string) predicate.Alert {
   645  	return predicate.Alert(sql.FieldNEQ(FieldSourceIp, v))
   646  }
   647  
   648  // SourceIpIn applies the In predicate on the "sourceIp" field.
   649  func SourceIpIn(vs ...string) predicate.Alert {
   650  	return predicate.Alert(sql.FieldIn(FieldSourceIp, vs...))
   651  }
   652  
   653  // SourceIpNotIn applies the NotIn predicate on the "sourceIp" field.
   654  func SourceIpNotIn(vs ...string) predicate.Alert {
   655  	return predicate.Alert(sql.FieldNotIn(FieldSourceIp, vs...))
   656  }
   657  
   658  // SourceIpGT applies the GT predicate on the "sourceIp" field.
   659  func SourceIpGT(v string) predicate.Alert {
   660  	return predicate.Alert(sql.FieldGT(FieldSourceIp, v))
   661  }
   662  
   663  // SourceIpGTE applies the GTE predicate on the "sourceIp" field.
   664  func SourceIpGTE(v string) predicate.Alert {
   665  	return predicate.Alert(sql.FieldGTE(FieldSourceIp, v))
   666  }
   667  
   668  // SourceIpLT applies the LT predicate on the "sourceIp" field.
   669  func SourceIpLT(v string) predicate.Alert {
   670  	return predicate.Alert(sql.FieldLT(FieldSourceIp, v))
   671  }
   672  
   673  // SourceIpLTE applies the LTE predicate on the "sourceIp" field.
   674  func SourceIpLTE(v string) predicate.Alert {
   675  	return predicate.Alert(sql.FieldLTE(FieldSourceIp, v))
   676  }
   677  
   678  // SourceIpContains applies the Contains predicate on the "sourceIp" field.
   679  func SourceIpContains(v string) predicate.Alert {
   680  	return predicate.Alert(sql.FieldContains(FieldSourceIp, v))
   681  }
   682  
   683  // SourceIpHasPrefix applies the HasPrefix predicate on the "sourceIp" field.
   684  func SourceIpHasPrefix(v string) predicate.Alert {
   685  	return predicate.Alert(sql.FieldHasPrefix(FieldSourceIp, v))
   686  }
   687  
   688  // SourceIpHasSuffix applies the HasSuffix predicate on the "sourceIp" field.
   689  func SourceIpHasSuffix(v string) predicate.Alert {
   690  	return predicate.Alert(sql.FieldHasSuffix(FieldSourceIp, v))
   691  }
   692  
   693  // SourceIpIsNil applies the IsNil predicate on the "sourceIp" field.
   694  func SourceIpIsNil() predicate.Alert {
   695  	return predicate.Alert(sql.FieldIsNull(FieldSourceIp))
   696  }
   697  
   698  // SourceIpNotNil applies the NotNil predicate on the "sourceIp" field.
   699  func SourceIpNotNil() predicate.Alert {
   700  	return predicate.Alert(sql.FieldNotNull(FieldSourceIp))
   701  }
   702  
   703  // SourceIpEqualFold applies the EqualFold predicate on the "sourceIp" field.
   704  func SourceIpEqualFold(v string) predicate.Alert {
   705  	return predicate.Alert(sql.FieldEqualFold(FieldSourceIp, v))
   706  }
   707  
   708  // SourceIpContainsFold applies the ContainsFold predicate on the "sourceIp" field.
   709  func SourceIpContainsFold(v string) predicate.Alert {
   710  	return predicate.Alert(sql.FieldContainsFold(FieldSourceIp, v))
   711  }
   712  
   713  // SourceRangeEQ applies the EQ predicate on the "sourceRange" field.
   714  func SourceRangeEQ(v string) predicate.Alert {
   715  	return predicate.Alert(sql.FieldEQ(FieldSourceRange, v))
   716  }
   717  
   718  // SourceRangeNEQ applies the NEQ predicate on the "sourceRange" field.
   719  func SourceRangeNEQ(v string) predicate.Alert {
   720  	return predicate.Alert(sql.FieldNEQ(FieldSourceRange, v))
   721  }
   722  
   723  // SourceRangeIn applies the In predicate on the "sourceRange" field.
   724  func SourceRangeIn(vs ...string) predicate.Alert {
   725  	return predicate.Alert(sql.FieldIn(FieldSourceRange, vs...))
   726  }
   727  
   728  // SourceRangeNotIn applies the NotIn predicate on the "sourceRange" field.
   729  func SourceRangeNotIn(vs ...string) predicate.Alert {
   730  	return predicate.Alert(sql.FieldNotIn(FieldSourceRange, vs...))
   731  }
   732  
   733  // SourceRangeGT applies the GT predicate on the "sourceRange" field.
   734  func SourceRangeGT(v string) predicate.Alert {
   735  	return predicate.Alert(sql.FieldGT(FieldSourceRange, v))
   736  }
   737  
   738  // SourceRangeGTE applies the GTE predicate on the "sourceRange" field.
   739  func SourceRangeGTE(v string) predicate.Alert {
   740  	return predicate.Alert(sql.FieldGTE(FieldSourceRange, v))
   741  }
   742  
   743  // SourceRangeLT applies the LT predicate on the "sourceRange" field.
   744  func SourceRangeLT(v string) predicate.Alert {
   745  	return predicate.Alert(sql.FieldLT(FieldSourceRange, v))
   746  }
   747  
   748  // SourceRangeLTE applies the LTE predicate on the "sourceRange" field.
   749  func SourceRangeLTE(v string) predicate.Alert {
   750  	return predicate.Alert(sql.FieldLTE(FieldSourceRange, v))
   751  }
   752  
   753  // SourceRangeContains applies the Contains predicate on the "sourceRange" field.
   754  func SourceRangeContains(v string) predicate.Alert {
   755  	return predicate.Alert(sql.FieldContains(FieldSourceRange, v))
   756  }
   757  
   758  // SourceRangeHasPrefix applies the HasPrefix predicate on the "sourceRange" field.
   759  func SourceRangeHasPrefix(v string) predicate.Alert {
   760  	return predicate.Alert(sql.FieldHasPrefix(FieldSourceRange, v))
   761  }
   762  
   763  // SourceRangeHasSuffix applies the HasSuffix predicate on the "sourceRange" field.
   764  func SourceRangeHasSuffix(v string) predicate.Alert {
   765  	return predicate.Alert(sql.FieldHasSuffix(FieldSourceRange, v))
   766  }
   767  
   768  // SourceRangeIsNil applies the IsNil predicate on the "sourceRange" field.
   769  func SourceRangeIsNil() predicate.Alert {
   770  	return predicate.Alert(sql.FieldIsNull(FieldSourceRange))
   771  }
   772  
   773  // SourceRangeNotNil applies the NotNil predicate on the "sourceRange" field.
   774  func SourceRangeNotNil() predicate.Alert {
   775  	return predicate.Alert(sql.FieldNotNull(FieldSourceRange))
   776  }
   777  
   778  // SourceRangeEqualFold applies the EqualFold predicate on the "sourceRange" field.
   779  func SourceRangeEqualFold(v string) predicate.Alert {
   780  	return predicate.Alert(sql.FieldEqualFold(FieldSourceRange, v))
   781  }
   782  
   783  // SourceRangeContainsFold applies the ContainsFold predicate on the "sourceRange" field.
   784  func SourceRangeContainsFold(v string) predicate.Alert {
   785  	return predicate.Alert(sql.FieldContainsFold(FieldSourceRange, v))
   786  }
   787  
   788  // SourceAsNumberEQ applies the EQ predicate on the "sourceAsNumber" field.
   789  func SourceAsNumberEQ(v string) predicate.Alert {
   790  	return predicate.Alert(sql.FieldEQ(FieldSourceAsNumber, v))
   791  }
   792  
   793  // SourceAsNumberNEQ applies the NEQ predicate on the "sourceAsNumber" field.
   794  func SourceAsNumberNEQ(v string) predicate.Alert {
   795  	return predicate.Alert(sql.FieldNEQ(FieldSourceAsNumber, v))
   796  }
   797  
   798  // SourceAsNumberIn applies the In predicate on the "sourceAsNumber" field.
   799  func SourceAsNumberIn(vs ...string) predicate.Alert {
   800  	return predicate.Alert(sql.FieldIn(FieldSourceAsNumber, vs...))
   801  }
   802  
   803  // SourceAsNumberNotIn applies the NotIn predicate on the "sourceAsNumber" field.
   804  func SourceAsNumberNotIn(vs ...string) predicate.Alert {
   805  	return predicate.Alert(sql.FieldNotIn(FieldSourceAsNumber, vs...))
   806  }
   807  
   808  // SourceAsNumberGT applies the GT predicate on the "sourceAsNumber" field.
   809  func SourceAsNumberGT(v string) predicate.Alert {
   810  	return predicate.Alert(sql.FieldGT(FieldSourceAsNumber, v))
   811  }
   812  
   813  // SourceAsNumberGTE applies the GTE predicate on the "sourceAsNumber" field.
   814  func SourceAsNumberGTE(v string) predicate.Alert {
   815  	return predicate.Alert(sql.FieldGTE(FieldSourceAsNumber, v))
   816  }
   817  
   818  // SourceAsNumberLT applies the LT predicate on the "sourceAsNumber" field.
   819  func SourceAsNumberLT(v string) predicate.Alert {
   820  	return predicate.Alert(sql.FieldLT(FieldSourceAsNumber, v))
   821  }
   822  
   823  // SourceAsNumberLTE applies the LTE predicate on the "sourceAsNumber" field.
   824  func SourceAsNumberLTE(v string) predicate.Alert {
   825  	return predicate.Alert(sql.FieldLTE(FieldSourceAsNumber, v))
   826  }
   827  
   828  // SourceAsNumberContains applies the Contains predicate on the "sourceAsNumber" field.
   829  func SourceAsNumberContains(v string) predicate.Alert {
   830  	return predicate.Alert(sql.FieldContains(FieldSourceAsNumber, v))
   831  }
   832  
   833  // SourceAsNumberHasPrefix applies the HasPrefix predicate on the "sourceAsNumber" field.
   834  func SourceAsNumberHasPrefix(v string) predicate.Alert {
   835  	return predicate.Alert(sql.FieldHasPrefix(FieldSourceAsNumber, v))
   836  }
   837  
   838  // SourceAsNumberHasSuffix applies the HasSuffix predicate on the "sourceAsNumber" field.
   839  func SourceAsNumberHasSuffix(v string) predicate.Alert {
   840  	return predicate.Alert(sql.FieldHasSuffix(FieldSourceAsNumber, v))
   841  }
   842  
   843  // SourceAsNumberIsNil applies the IsNil predicate on the "sourceAsNumber" field.
   844  func SourceAsNumberIsNil() predicate.Alert {
   845  	return predicate.Alert(sql.FieldIsNull(FieldSourceAsNumber))
   846  }
   847  
   848  // SourceAsNumberNotNil applies the NotNil predicate on the "sourceAsNumber" field.
   849  func SourceAsNumberNotNil() predicate.Alert {
   850  	return predicate.Alert(sql.FieldNotNull(FieldSourceAsNumber))
   851  }
   852  
   853  // SourceAsNumberEqualFold applies the EqualFold predicate on the "sourceAsNumber" field.
   854  func SourceAsNumberEqualFold(v string) predicate.Alert {
   855  	return predicate.Alert(sql.FieldEqualFold(FieldSourceAsNumber, v))
   856  }
   857  
   858  // SourceAsNumberContainsFold applies the ContainsFold predicate on the "sourceAsNumber" field.
   859  func SourceAsNumberContainsFold(v string) predicate.Alert {
   860  	return predicate.Alert(sql.FieldContainsFold(FieldSourceAsNumber, v))
   861  }
   862  
   863  // SourceAsNameEQ applies the EQ predicate on the "sourceAsName" field.
   864  func SourceAsNameEQ(v string) predicate.Alert {
   865  	return predicate.Alert(sql.FieldEQ(FieldSourceAsName, v))
   866  }
   867  
   868  // SourceAsNameNEQ applies the NEQ predicate on the "sourceAsName" field.
   869  func SourceAsNameNEQ(v string) predicate.Alert {
   870  	return predicate.Alert(sql.FieldNEQ(FieldSourceAsName, v))
   871  }
   872  
   873  // SourceAsNameIn applies the In predicate on the "sourceAsName" field.
   874  func SourceAsNameIn(vs ...string) predicate.Alert {
   875  	return predicate.Alert(sql.FieldIn(FieldSourceAsName, vs...))
   876  }
   877  
   878  // SourceAsNameNotIn applies the NotIn predicate on the "sourceAsName" field.
   879  func SourceAsNameNotIn(vs ...string) predicate.Alert {
   880  	return predicate.Alert(sql.FieldNotIn(FieldSourceAsName, vs...))
   881  }
   882  
   883  // SourceAsNameGT applies the GT predicate on the "sourceAsName" field.
   884  func SourceAsNameGT(v string) predicate.Alert {
   885  	return predicate.Alert(sql.FieldGT(FieldSourceAsName, v))
   886  }
   887  
   888  // SourceAsNameGTE applies the GTE predicate on the "sourceAsName" field.
   889  func SourceAsNameGTE(v string) predicate.Alert {
   890  	return predicate.Alert(sql.FieldGTE(FieldSourceAsName, v))
   891  }
   892  
   893  // SourceAsNameLT applies the LT predicate on the "sourceAsName" field.
   894  func SourceAsNameLT(v string) predicate.Alert {
   895  	return predicate.Alert(sql.FieldLT(FieldSourceAsName, v))
   896  }
   897  
   898  // SourceAsNameLTE applies the LTE predicate on the "sourceAsName" field.
   899  func SourceAsNameLTE(v string) predicate.Alert {
   900  	return predicate.Alert(sql.FieldLTE(FieldSourceAsName, v))
   901  }
   902  
   903  // SourceAsNameContains applies the Contains predicate on the "sourceAsName" field.
   904  func SourceAsNameContains(v string) predicate.Alert {
   905  	return predicate.Alert(sql.FieldContains(FieldSourceAsName, v))
   906  }
   907  
   908  // SourceAsNameHasPrefix applies the HasPrefix predicate on the "sourceAsName" field.
   909  func SourceAsNameHasPrefix(v string) predicate.Alert {
   910  	return predicate.Alert(sql.FieldHasPrefix(FieldSourceAsName, v))
   911  }
   912  
   913  // SourceAsNameHasSuffix applies the HasSuffix predicate on the "sourceAsName" field.
   914  func SourceAsNameHasSuffix(v string) predicate.Alert {
   915  	return predicate.Alert(sql.FieldHasSuffix(FieldSourceAsName, v))
   916  }
   917  
   918  // SourceAsNameIsNil applies the IsNil predicate on the "sourceAsName" field.
   919  func SourceAsNameIsNil() predicate.Alert {
   920  	return predicate.Alert(sql.FieldIsNull(FieldSourceAsName))
   921  }
   922  
   923  // SourceAsNameNotNil applies the NotNil predicate on the "sourceAsName" field.
   924  func SourceAsNameNotNil() predicate.Alert {
   925  	return predicate.Alert(sql.FieldNotNull(FieldSourceAsName))
   926  }
   927  
   928  // SourceAsNameEqualFold applies the EqualFold predicate on the "sourceAsName" field.
   929  func SourceAsNameEqualFold(v string) predicate.Alert {
   930  	return predicate.Alert(sql.FieldEqualFold(FieldSourceAsName, v))
   931  }
   932  
   933  // SourceAsNameContainsFold applies the ContainsFold predicate on the "sourceAsName" field.
   934  func SourceAsNameContainsFold(v string) predicate.Alert {
   935  	return predicate.Alert(sql.FieldContainsFold(FieldSourceAsName, v))
   936  }
   937  
   938  // SourceCountryEQ applies the EQ predicate on the "sourceCountry" field.
   939  func SourceCountryEQ(v string) predicate.Alert {
   940  	return predicate.Alert(sql.FieldEQ(FieldSourceCountry, v))
   941  }
   942  
   943  // SourceCountryNEQ applies the NEQ predicate on the "sourceCountry" field.
   944  func SourceCountryNEQ(v string) predicate.Alert {
   945  	return predicate.Alert(sql.FieldNEQ(FieldSourceCountry, v))
   946  }
   947  
   948  // SourceCountryIn applies the In predicate on the "sourceCountry" field.
   949  func SourceCountryIn(vs ...string) predicate.Alert {
   950  	return predicate.Alert(sql.FieldIn(FieldSourceCountry, vs...))
   951  }
   952  
   953  // SourceCountryNotIn applies the NotIn predicate on the "sourceCountry" field.
   954  func SourceCountryNotIn(vs ...string) predicate.Alert {
   955  	return predicate.Alert(sql.FieldNotIn(FieldSourceCountry, vs...))
   956  }
   957  
   958  // SourceCountryGT applies the GT predicate on the "sourceCountry" field.
   959  func SourceCountryGT(v string) predicate.Alert {
   960  	return predicate.Alert(sql.FieldGT(FieldSourceCountry, v))
   961  }
   962  
   963  // SourceCountryGTE applies the GTE predicate on the "sourceCountry" field.
   964  func SourceCountryGTE(v string) predicate.Alert {
   965  	return predicate.Alert(sql.FieldGTE(FieldSourceCountry, v))
   966  }
   967  
   968  // SourceCountryLT applies the LT predicate on the "sourceCountry" field.
   969  func SourceCountryLT(v string) predicate.Alert {
   970  	return predicate.Alert(sql.FieldLT(FieldSourceCountry, v))
   971  }
   972  
   973  // SourceCountryLTE applies the LTE predicate on the "sourceCountry" field.
   974  func SourceCountryLTE(v string) predicate.Alert {
   975  	return predicate.Alert(sql.FieldLTE(FieldSourceCountry, v))
   976  }
   977  
   978  // SourceCountryContains applies the Contains predicate on the "sourceCountry" field.
   979  func SourceCountryContains(v string) predicate.Alert {
   980  	return predicate.Alert(sql.FieldContains(FieldSourceCountry, v))
   981  }
   982  
   983  // SourceCountryHasPrefix applies the HasPrefix predicate on the "sourceCountry" field.
   984  func SourceCountryHasPrefix(v string) predicate.Alert {
   985  	return predicate.Alert(sql.FieldHasPrefix(FieldSourceCountry, v))
   986  }
   987  
   988  // SourceCountryHasSuffix applies the HasSuffix predicate on the "sourceCountry" field.
   989  func SourceCountryHasSuffix(v string) predicate.Alert {
   990  	return predicate.Alert(sql.FieldHasSuffix(FieldSourceCountry, v))
   991  }
   992  
   993  // SourceCountryIsNil applies the IsNil predicate on the "sourceCountry" field.
   994  func SourceCountryIsNil() predicate.Alert {
   995  	return predicate.Alert(sql.FieldIsNull(FieldSourceCountry))
   996  }
   997  
   998  // SourceCountryNotNil applies the NotNil predicate on the "sourceCountry" field.
   999  func SourceCountryNotNil() predicate.Alert {
  1000  	return predicate.Alert(sql.FieldNotNull(FieldSourceCountry))
  1001  }
  1002  
  1003  // SourceCountryEqualFold applies the EqualFold predicate on the "sourceCountry" field.
  1004  func SourceCountryEqualFold(v string) predicate.Alert {
  1005  	return predicate.Alert(sql.FieldEqualFold(FieldSourceCountry, v))
  1006  }
  1007  
  1008  // SourceCountryContainsFold applies the ContainsFold predicate on the "sourceCountry" field.
  1009  func SourceCountryContainsFold(v string) predicate.Alert {
  1010  	return predicate.Alert(sql.FieldContainsFold(FieldSourceCountry, v))
  1011  }
  1012  
  1013  // SourceLatitudeEQ applies the EQ predicate on the "sourceLatitude" field.
  1014  func SourceLatitudeEQ(v float32) predicate.Alert {
  1015  	return predicate.Alert(sql.FieldEQ(FieldSourceLatitude, v))
  1016  }
  1017  
  1018  // SourceLatitudeNEQ applies the NEQ predicate on the "sourceLatitude" field.
  1019  func SourceLatitudeNEQ(v float32) predicate.Alert {
  1020  	return predicate.Alert(sql.FieldNEQ(FieldSourceLatitude, v))
  1021  }
  1022  
  1023  // SourceLatitudeIn applies the In predicate on the "sourceLatitude" field.
  1024  func SourceLatitudeIn(vs ...float32) predicate.Alert {
  1025  	return predicate.Alert(sql.FieldIn(FieldSourceLatitude, vs...))
  1026  }
  1027  
  1028  // SourceLatitudeNotIn applies the NotIn predicate on the "sourceLatitude" field.
  1029  func SourceLatitudeNotIn(vs ...float32) predicate.Alert {
  1030  	return predicate.Alert(sql.FieldNotIn(FieldSourceLatitude, vs...))
  1031  }
  1032  
  1033  // SourceLatitudeGT applies the GT predicate on the "sourceLatitude" field.
  1034  func SourceLatitudeGT(v float32) predicate.Alert {
  1035  	return predicate.Alert(sql.FieldGT(FieldSourceLatitude, v))
  1036  }
  1037  
  1038  // SourceLatitudeGTE applies the GTE predicate on the "sourceLatitude" field.
  1039  func SourceLatitudeGTE(v float32) predicate.Alert {
  1040  	return predicate.Alert(sql.FieldGTE(FieldSourceLatitude, v))
  1041  }
  1042  
  1043  // SourceLatitudeLT applies the LT predicate on the "sourceLatitude" field.
  1044  func SourceLatitudeLT(v float32) predicate.Alert {
  1045  	return predicate.Alert(sql.FieldLT(FieldSourceLatitude, v))
  1046  }
  1047  
  1048  // SourceLatitudeLTE applies the LTE predicate on the "sourceLatitude" field.
  1049  func SourceLatitudeLTE(v float32) predicate.Alert {
  1050  	return predicate.Alert(sql.FieldLTE(FieldSourceLatitude, v))
  1051  }
  1052  
  1053  // SourceLatitudeIsNil applies the IsNil predicate on the "sourceLatitude" field.
  1054  func SourceLatitudeIsNil() predicate.Alert {
  1055  	return predicate.Alert(sql.FieldIsNull(FieldSourceLatitude))
  1056  }
  1057  
  1058  // SourceLatitudeNotNil applies the NotNil predicate on the "sourceLatitude" field.
  1059  func SourceLatitudeNotNil() predicate.Alert {
  1060  	return predicate.Alert(sql.FieldNotNull(FieldSourceLatitude))
  1061  }
  1062  
  1063  // SourceLongitudeEQ applies the EQ predicate on the "sourceLongitude" field.
  1064  func SourceLongitudeEQ(v float32) predicate.Alert {
  1065  	return predicate.Alert(sql.FieldEQ(FieldSourceLongitude, v))
  1066  }
  1067  
  1068  // SourceLongitudeNEQ applies the NEQ predicate on the "sourceLongitude" field.
  1069  func SourceLongitudeNEQ(v float32) predicate.Alert {
  1070  	return predicate.Alert(sql.FieldNEQ(FieldSourceLongitude, v))
  1071  }
  1072  
  1073  // SourceLongitudeIn applies the In predicate on the "sourceLongitude" field.
  1074  func SourceLongitudeIn(vs ...float32) predicate.Alert {
  1075  	return predicate.Alert(sql.FieldIn(FieldSourceLongitude, vs...))
  1076  }
  1077  
  1078  // SourceLongitudeNotIn applies the NotIn predicate on the "sourceLongitude" field.
  1079  func SourceLongitudeNotIn(vs ...float32) predicate.Alert {
  1080  	return predicate.Alert(sql.FieldNotIn(FieldSourceLongitude, vs...))
  1081  }
  1082  
  1083  // SourceLongitudeGT applies the GT predicate on the "sourceLongitude" field.
  1084  func SourceLongitudeGT(v float32) predicate.Alert {
  1085  	return predicate.Alert(sql.FieldGT(FieldSourceLongitude, v))
  1086  }
  1087  
  1088  // SourceLongitudeGTE applies the GTE predicate on the "sourceLongitude" field.
  1089  func SourceLongitudeGTE(v float32) predicate.Alert {
  1090  	return predicate.Alert(sql.FieldGTE(FieldSourceLongitude, v))
  1091  }
  1092  
  1093  // SourceLongitudeLT applies the LT predicate on the "sourceLongitude" field.
  1094  func SourceLongitudeLT(v float32) predicate.Alert {
  1095  	return predicate.Alert(sql.FieldLT(FieldSourceLongitude, v))
  1096  }
  1097  
  1098  // SourceLongitudeLTE applies the LTE predicate on the "sourceLongitude" field.
  1099  func SourceLongitudeLTE(v float32) predicate.Alert {
  1100  	return predicate.Alert(sql.FieldLTE(FieldSourceLongitude, v))
  1101  }
  1102  
  1103  // SourceLongitudeIsNil applies the IsNil predicate on the "sourceLongitude" field.
  1104  func SourceLongitudeIsNil() predicate.Alert {
  1105  	return predicate.Alert(sql.FieldIsNull(FieldSourceLongitude))
  1106  }
  1107  
  1108  // SourceLongitudeNotNil applies the NotNil predicate on the "sourceLongitude" field.
  1109  func SourceLongitudeNotNil() predicate.Alert {
  1110  	return predicate.Alert(sql.FieldNotNull(FieldSourceLongitude))
  1111  }
  1112  
  1113  // SourceScopeEQ applies the EQ predicate on the "sourceScope" field.
  1114  func SourceScopeEQ(v string) predicate.Alert {
  1115  	return predicate.Alert(sql.FieldEQ(FieldSourceScope, v))
  1116  }
  1117  
  1118  // SourceScopeNEQ applies the NEQ predicate on the "sourceScope" field.
  1119  func SourceScopeNEQ(v string) predicate.Alert {
  1120  	return predicate.Alert(sql.FieldNEQ(FieldSourceScope, v))
  1121  }
  1122  
  1123  // SourceScopeIn applies the In predicate on the "sourceScope" field.
  1124  func SourceScopeIn(vs ...string) predicate.Alert {
  1125  	return predicate.Alert(sql.FieldIn(FieldSourceScope, vs...))
  1126  }
  1127  
  1128  // SourceScopeNotIn applies the NotIn predicate on the "sourceScope" field.
  1129  func SourceScopeNotIn(vs ...string) predicate.Alert {
  1130  	return predicate.Alert(sql.FieldNotIn(FieldSourceScope, vs...))
  1131  }
  1132  
  1133  // SourceScopeGT applies the GT predicate on the "sourceScope" field.
  1134  func SourceScopeGT(v string) predicate.Alert {
  1135  	return predicate.Alert(sql.FieldGT(FieldSourceScope, v))
  1136  }
  1137  
  1138  // SourceScopeGTE applies the GTE predicate on the "sourceScope" field.
  1139  func SourceScopeGTE(v string) predicate.Alert {
  1140  	return predicate.Alert(sql.FieldGTE(FieldSourceScope, v))
  1141  }
  1142  
  1143  // SourceScopeLT applies the LT predicate on the "sourceScope" field.
  1144  func SourceScopeLT(v string) predicate.Alert {
  1145  	return predicate.Alert(sql.FieldLT(FieldSourceScope, v))
  1146  }
  1147  
  1148  // SourceScopeLTE applies the LTE predicate on the "sourceScope" field.
  1149  func SourceScopeLTE(v string) predicate.Alert {
  1150  	return predicate.Alert(sql.FieldLTE(FieldSourceScope, v))
  1151  }
  1152  
  1153  // SourceScopeContains applies the Contains predicate on the "sourceScope" field.
  1154  func SourceScopeContains(v string) predicate.Alert {
  1155  	return predicate.Alert(sql.FieldContains(FieldSourceScope, v))
  1156  }
  1157  
  1158  // SourceScopeHasPrefix applies the HasPrefix predicate on the "sourceScope" field.
  1159  func SourceScopeHasPrefix(v string) predicate.Alert {
  1160  	return predicate.Alert(sql.FieldHasPrefix(FieldSourceScope, v))
  1161  }
  1162  
  1163  // SourceScopeHasSuffix applies the HasSuffix predicate on the "sourceScope" field.
  1164  func SourceScopeHasSuffix(v string) predicate.Alert {
  1165  	return predicate.Alert(sql.FieldHasSuffix(FieldSourceScope, v))
  1166  }
  1167  
  1168  // SourceScopeIsNil applies the IsNil predicate on the "sourceScope" field.
  1169  func SourceScopeIsNil() predicate.Alert {
  1170  	return predicate.Alert(sql.FieldIsNull(FieldSourceScope))
  1171  }
  1172  
  1173  // SourceScopeNotNil applies the NotNil predicate on the "sourceScope" field.
  1174  func SourceScopeNotNil() predicate.Alert {
  1175  	return predicate.Alert(sql.FieldNotNull(FieldSourceScope))
  1176  }
  1177  
  1178  // SourceScopeEqualFold applies the EqualFold predicate on the "sourceScope" field.
  1179  func SourceScopeEqualFold(v string) predicate.Alert {
  1180  	return predicate.Alert(sql.FieldEqualFold(FieldSourceScope, v))
  1181  }
  1182  
  1183  // SourceScopeContainsFold applies the ContainsFold predicate on the "sourceScope" field.
  1184  func SourceScopeContainsFold(v string) predicate.Alert {
  1185  	return predicate.Alert(sql.FieldContainsFold(FieldSourceScope, v))
  1186  }
  1187  
  1188  // SourceValueEQ applies the EQ predicate on the "sourceValue" field.
  1189  func SourceValueEQ(v string) predicate.Alert {
  1190  	return predicate.Alert(sql.FieldEQ(FieldSourceValue, v))
  1191  }
  1192  
  1193  // SourceValueNEQ applies the NEQ predicate on the "sourceValue" field.
  1194  func SourceValueNEQ(v string) predicate.Alert {
  1195  	return predicate.Alert(sql.FieldNEQ(FieldSourceValue, v))
  1196  }
  1197  
  1198  // SourceValueIn applies the In predicate on the "sourceValue" field.
  1199  func SourceValueIn(vs ...string) predicate.Alert {
  1200  	return predicate.Alert(sql.FieldIn(FieldSourceValue, vs...))
  1201  }
  1202  
  1203  // SourceValueNotIn applies the NotIn predicate on the "sourceValue" field.
  1204  func SourceValueNotIn(vs ...string) predicate.Alert {
  1205  	return predicate.Alert(sql.FieldNotIn(FieldSourceValue, vs...))
  1206  }
  1207  
  1208  // SourceValueGT applies the GT predicate on the "sourceValue" field.
  1209  func SourceValueGT(v string) predicate.Alert {
  1210  	return predicate.Alert(sql.FieldGT(FieldSourceValue, v))
  1211  }
  1212  
  1213  // SourceValueGTE applies the GTE predicate on the "sourceValue" field.
  1214  func SourceValueGTE(v string) predicate.Alert {
  1215  	return predicate.Alert(sql.FieldGTE(FieldSourceValue, v))
  1216  }
  1217  
  1218  // SourceValueLT applies the LT predicate on the "sourceValue" field.
  1219  func SourceValueLT(v string) predicate.Alert {
  1220  	return predicate.Alert(sql.FieldLT(FieldSourceValue, v))
  1221  }
  1222  
  1223  // SourceValueLTE applies the LTE predicate on the "sourceValue" field.
  1224  func SourceValueLTE(v string) predicate.Alert {
  1225  	return predicate.Alert(sql.FieldLTE(FieldSourceValue, v))
  1226  }
  1227  
  1228  // SourceValueContains applies the Contains predicate on the "sourceValue" field.
  1229  func SourceValueContains(v string) predicate.Alert {
  1230  	return predicate.Alert(sql.FieldContains(FieldSourceValue, v))
  1231  }
  1232  
  1233  // SourceValueHasPrefix applies the HasPrefix predicate on the "sourceValue" field.
  1234  func SourceValueHasPrefix(v string) predicate.Alert {
  1235  	return predicate.Alert(sql.FieldHasPrefix(FieldSourceValue, v))
  1236  }
  1237  
  1238  // SourceValueHasSuffix applies the HasSuffix predicate on the "sourceValue" field.
  1239  func SourceValueHasSuffix(v string) predicate.Alert {
  1240  	return predicate.Alert(sql.FieldHasSuffix(FieldSourceValue, v))
  1241  }
  1242  
  1243  // SourceValueIsNil applies the IsNil predicate on the "sourceValue" field.
  1244  func SourceValueIsNil() predicate.Alert {
  1245  	return predicate.Alert(sql.FieldIsNull(FieldSourceValue))
  1246  }
  1247  
  1248  // SourceValueNotNil applies the NotNil predicate on the "sourceValue" field.
  1249  func SourceValueNotNil() predicate.Alert {
  1250  	return predicate.Alert(sql.FieldNotNull(FieldSourceValue))
  1251  }
  1252  
  1253  // SourceValueEqualFold applies the EqualFold predicate on the "sourceValue" field.
  1254  func SourceValueEqualFold(v string) predicate.Alert {
  1255  	return predicate.Alert(sql.FieldEqualFold(FieldSourceValue, v))
  1256  }
  1257  
  1258  // SourceValueContainsFold applies the ContainsFold predicate on the "sourceValue" field.
  1259  func SourceValueContainsFold(v string) predicate.Alert {
  1260  	return predicate.Alert(sql.FieldContainsFold(FieldSourceValue, v))
  1261  }
  1262  
  1263  // CapacityEQ applies the EQ predicate on the "capacity" field.
  1264  func CapacityEQ(v int32) predicate.Alert {
  1265  	return predicate.Alert(sql.FieldEQ(FieldCapacity, v))
  1266  }
  1267  
  1268  // CapacityNEQ applies the NEQ predicate on the "capacity" field.
  1269  func CapacityNEQ(v int32) predicate.Alert {
  1270  	return predicate.Alert(sql.FieldNEQ(FieldCapacity, v))
  1271  }
  1272  
  1273  // CapacityIn applies the In predicate on the "capacity" field.
  1274  func CapacityIn(vs ...int32) predicate.Alert {
  1275  	return predicate.Alert(sql.FieldIn(FieldCapacity, vs...))
  1276  }
  1277  
  1278  // CapacityNotIn applies the NotIn predicate on the "capacity" field.
  1279  func CapacityNotIn(vs ...int32) predicate.Alert {
  1280  	return predicate.Alert(sql.FieldNotIn(FieldCapacity, vs...))
  1281  }
  1282  
  1283  // CapacityGT applies the GT predicate on the "capacity" field.
  1284  func CapacityGT(v int32) predicate.Alert {
  1285  	return predicate.Alert(sql.FieldGT(FieldCapacity, v))
  1286  }
  1287  
  1288  // CapacityGTE applies the GTE predicate on the "capacity" field.
  1289  func CapacityGTE(v int32) predicate.Alert {
  1290  	return predicate.Alert(sql.FieldGTE(FieldCapacity, v))
  1291  }
  1292  
  1293  // CapacityLT applies the LT predicate on the "capacity" field.
  1294  func CapacityLT(v int32) predicate.Alert {
  1295  	return predicate.Alert(sql.FieldLT(FieldCapacity, v))
  1296  }
  1297  
  1298  // CapacityLTE applies the LTE predicate on the "capacity" field.
  1299  func CapacityLTE(v int32) predicate.Alert {
  1300  	return predicate.Alert(sql.FieldLTE(FieldCapacity, v))
  1301  }
  1302  
  1303  // CapacityIsNil applies the IsNil predicate on the "capacity" field.
  1304  func CapacityIsNil() predicate.Alert {
  1305  	return predicate.Alert(sql.FieldIsNull(FieldCapacity))
  1306  }
  1307  
  1308  // CapacityNotNil applies the NotNil predicate on the "capacity" field.
  1309  func CapacityNotNil() predicate.Alert {
  1310  	return predicate.Alert(sql.FieldNotNull(FieldCapacity))
  1311  }
  1312  
  1313  // LeakSpeedEQ applies the EQ predicate on the "leakSpeed" field.
  1314  func LeakSpeedEQ(v string) predicate.Alert {
  1315  	return predicate.Alert(sql.FieldEQ(FieldLeakSpeed, v))
  1316  }
  1317  
  1318  // LeakSpeedNEQ applies the NEQ predicate on the "leakSpeed" field.
  1319  func LeakSpeedNEQ(v string) predicate.Alert {
  1320  	return predicate.Alert(sql.FieldNEQ(FieldLeakSpeed, v))
  1321  }
  1322  
  1323  // LeakSpeedIn applies the In predicate on the "leakSpeed" field.
  1324  func LeakSpeedIn(vs ...string) predicate.Alert {
  1325  	return predicate.Alert(sql.FieldIn(FieldLeakSpeed, vs...))
  1326  }
  1327  
  1328  // LeakSpeedNotIn applies the NotIn predicate on the "leakSpeed" field.
  1329  func LeakSpeedNotIn(vs ...string) predicate.Alert {
  1330  	return predicate.Alert(sql.FieldNotIn(FieldLeakSpeed, vs...))
  1331  }
  1332  
  1333  // LeakSpeedGT applies the GT predicate on the "leakSpeed" field.
  1334  func LeakSpeedGT(v string) predicate.Alert {
  1335  	return predicate.Alert(sql.FieldGT(FieldLeakSpeed, v))
  1336  }
  1337  
  1338  // LeakSpeedGTE applies the GTE predicate on the "leakSpeed" field.
  1339  func LeakSpeedGTE(v string) predicate.Alert {
  1340  	return predicate.Alert(sql.FieldGTE(FieldLeakSpeed, v))
  1341  }
  1342  
  1343  // LeakSpeedLT applies the LT predicate on the "leakSpeed" field.
  1344  func LeakSpeedLT(v string) predicate.Alert {
  1345  	return predicate.Alert(sql.FieldLT(FieldLeakSpeed, v))
  1346  }
  1347  
  1348  // LeakSpeedLTE applies the LTE predicate on the "leakSpeed" field.
  1349  func LeakSpeedLTE(v string) predicate.Alert {
  1350  	return predicate.Alert(sql.FieldLTE(FieldLeakSpeed, v))
  1351  }
  1352  
  1353  // LeakSpeedContains applies the Contains predicate on the "leakSpeed" field.
  1354  func LeakSpeedContains(v string) predicate.Alert {
  1355  	return predicate.Alert(sql.FieldContains(FieldLeakSpeed, v))
  1356  }
  1357  
  1358  // LeakSpeedHasPrefix applies the HasPrefix predicate on the "leakSpeed" field.
  1359  func LeakSpeedHasPrefix(v string) predicate.Alert {
  1360  	return predicate.Alert(sql.FieldHasPrefix(FieldLeakSpeed, v))
  1361  }
  1362  
  1363  // LeakSpeedHasSuffix applies the HasSuffix predicate on the "leakSpeed" field.
  1364  func LeakSpeedHasSuffix(v string) predicate.Alert {
  1365  	return predicate.Alert(sql.FieldHasSuffix(FieldLeakSpeed, v))
  1366  }
  1367  
  1368  // LeakSpeedIsNil applies the IsNil predicate on the "leakSpeed" field.
  1369  func LeakSpeedIsNil() predicate.Alert {
  1370  	return predicate.Alert(sql.FieldIsNull(FieldLeakSpeed))
  1371  }
  1372  
  1373  // LeakSpeedNotNil applies the NotNil predicate on the "leakSpeed" field.
  1374  func LeakSpeedNotNil() predicate.Alert {
  1375  	return predicate.Alert(sql.FieldNotNull(FieldLeakSpeed))
  1376  }
  1377  
  1378  // LeakSpeedEqualFold applies the EqualFold predicate on the "leakSpeed" field.
  1379  func LeakSpeedEqualFold(v string) predicate.Alert {
  1380  	return predicate.Alert(sql.FieldEqualFold(FieldLeakSpeed, v))
  1381  }
  1382  
  1383  // LeakSpeedContainsFold applies the ContainsFold predicate on the "leakSpeed" field.
  1384  func LeakSpeedContainsFold(v string) predicate.Alert {
  1385  	return predicate.Alert(sql.FieldContainsFold(FieldLeakSpeed, v))
  1386  }
  1387  
  1388  // ScenarioVersionEQ applies the EQ predicate on the "scenarioVersion" field.
  1389  func ScenarioVersionEQ(v string) predicate.Alert {
  1390  	return predicate.Alert(sql.FieldEQ(FieldScenarioVersion, v))
  1391  }
  1392  
  1393  // ScenarioVersionNEQ applies the NEQ predicate on the "scenarioVersion" field.
  1394  func ScenarioVersionNEQ(v string) predicate.Alert {
  1395  	return predicate.Alert(sql.FieldNEQ(FieldScenarioVersion, v))
  1396  }
  1397  
  1398  // ScenarioVersionIn applies the In predicate on the "scenarioVersion" field.
  1399  func ScenarioVersionIn(vs ...string) predicate.Alert {
  1400  	return predicate.Alert(sql.FieldIn(FieldScenarioVersion, vs...))
  1401  }
  1402  
  1403  // ScenarioVersionNotIn applies the NotIn predicate on the "scenarioVersion" field.
  1404  func ScenarioVersionNotIn(vs ...string) predicate.Alert {
  1405  	return predicate.Alert(sql.FieldNotIn(FieldScenarioVersion, vs...))
  1406  }
  1407  
  1408  // ScenarioVersionGT applies the GT predicate on the "scenarioVersion" field.
  1409  func ScenarioVersionGT(v string) predicate.Alert {
  1410  	return predicate.Alert(sql.FieldGT(FieldScenarioVersion, v))
  1411  }
  1412  
  1413  // ScenarioVersionGTE applies the GTE predicate on the "scenarioVersion" field.
  1414  func ScenarioVersionGTE(v string) predicate.Alert {
  1415  	return predicate.Alert(sql.FieldGTE(FieldScenarioVersion, v))
  1416  }
  1417  
  1418  // ScenarioVersionLT applies the LT predicate on the "scenarioVersion" field.
  1419  func ScenarioVersionLT(v string) predicate.Alert {
  1420  	return predicate.Alert(sql.FieldLT(FieldScenarioVersion, v))
  1421  }
  1422  
  1423  // ScenarioVersionLTE applies the LTE predicate on the "scenarioVersion" field.
  1424  func ScenarioVersionLTE(v string) predicate.Alert {
  1425  	return predicate.Alert(sql.FieldLTE(FieldScenarioVersion, v))
  1426  }
  1427  
  1428  // ScenarioVersionContains applies the Contains predicate on the "scenarioVersion" field.
  1429  func ScenarioVersionContains(v string) predicate.Alert {
  1430  	return predicate.Alert(sql.FieldContains(FieldScenarioVersion, v))
  1431  }
  1432  
  1433  // ScenarioVersionHasPrefix applies the HasPrefix predicate on the "scenarioVersion" field.
  1434  func ScenarioVersionHasPrefix(v string) predicate.Alert {
  1435  	return predicate.Alert(sql.FieldHasPrefix(FieldScenarioVersion, v))
  1436  }
  1437  
  1438  // ScenarioVersionHasSuffix applies the HasSuffix predicate on the "scenarioVersion" field.
  1439  func ScenarioVersionHasSuffix(v string) predicate.Alert {
  1440  	return predicate.Alert(sql.FieldHasSuffix(FieldScenarioVersion, v))
  1441  }
  1442  
  1443  // ScenarioVersionIsNil applies the IsNil predicate on the "scenarioVersion" field.
  1444  func ScenarioVersionIsNil() predicate.Alert {
  1445  	return predicate.Alert(sql.FieldIsNull(FieldScenarioVersion))
  1446  }
  1447  
  1448  // ScenarioVersionNotNil applies the NotNil predicate on the "scenarioVersion" field.
  1449  func ScenarioVersionNotNil() predicate.Alert {
  1450  	return predicate.Alert(sql.FieldNotNull(FieldScenarioVersion))
  1451  }
  1452  
  1453  // ScenarioVersionEqualFold applies the EqualFold predicate on the "scenarioVersion" field.
  1454  func ScenarioVersionEqualFold(v string) predicate.Alert {
  1455  	return predicate.Alert(sql.FieldEqualFold(FieldScenarioVersion, v))
  1456  }
  1457  
  1458  // ScenarioVersionContainsFold applies the ContainsFold predicate on the "scenarioVersion" field.
  1459  func ScenarioVersionContainsFold(v string) predicate.Alert {
  1460  	return predicate.Alert(sql.FieldContainsFold(FieldScenarioVersion, v))
  1461  }
  1462  
  1463  // ScenarioHashEQ applies the EQ predicate on the "scenarioHash" field.
  1464  func ScenarioHashEQ(v string) predicate.Alert {
  1465  	return predicate.Alert(sql.FieldEQ(FieldScenarioHash, v))
  1466  }
  1467  
  1468  // ScenarioHashNEQ applies the NEQ predicate on the "scenarioHash" field.
  1469  func ScenarioHashNEQ(v string) predicate.Alert {
  1470  	return predicate.Alert(sql.FieldNEQ(FieldScenarioHash, v))
  1471  }
  1472  
  1473  // ScenarioHashIn applies the In predicate on the "scenarioHash" field.
  1474  func ScenarioHashIn(vs ...string) predicate.Alert {
  1475  	return predicate.Alert(sql.FieldIn(FieldScenarioHash, vs...))
  1476  }
  1477  
  1478  // ScenarioHashNotIn applies the NotIn predicate on the "scenarioHash" field.
  1479  func ScenarioHashNotIn(vs ...string) predicate.Alert {
  1480  	return predicate.Alert(sql.FieldNotIn(FieldScenarioHash, vs...))
  1481  }
  1482  
  1483  // ScenarioHashGT applies the GT predicate on the "scenarioHash" field.
  1484  func ScenarioHashGT(v string) predicate.Alert {
  1485  	return predicate.Alert(sql.FieldGT(FieldScenarioHash, v))
  1486  }
  1487  
  1488  // ScenarioHashGTE applies the GTE predicate on the "scenarioHash" field.
  1489  func ScenarioHashGTE(v string) predicate.Alert {
  1490  	return predicate.Alert(sql.FieldGTE(FieldScenarioHash, v))
  1491  }
  1492  
  1493  // ScenarioHashLT applies the LT predicate on the "scenarioHash" field.
  1494  func ScenarioHashLT(v string) predicate.Alert {
  1495  	return predicate.Alert(sql.FieldLT(FieldScenarioHash, v))
  1496  }
  1497  
  1498  // ScenarioHashLTE applies the LTE predicate on the "scenarioHash" field.
  1499  func ScenarioHashLTE(v string) predicate.Alert {
  1500  	return predicate.Alert(sql.FieldLTE(FieldScenarioHash, v))
  1501  }
  1502  
  1503  // ScenarioHashContains applies the Contains predicate on the "scenarioHash" field.
  1504  func ScenarioHashContains(v string) predicate.Alert {
  1505  	return predicate.Alert(sql.FieldContains(FieldScenarioHash, v))
  1506  }
  1507  
  1508  // ScenarioHashHasPrefix applies the HasPrefix predicate on the "scenarioHash" field.
  1509  func ScenarioHashHasPrefix(v string) predicate.Alert {
  1510  	return predicate.Alert(sql.FieldHasPrefix(FieldScenarioHash, v))
  1511  }
  1512  
  1513  // ScenarioHashHasSuffix applies the HasSuffix predicate on the "scenarioHash" field.
  1514  func ScenarioHashHasSuffix(v string) predicate.Alert {
  1515  	return predicate.Alert(sql.FieldHasSuffix(FieldScenarioHash, v))
  1516  }
  1517  
  1518  // ScenarioHashIsNil applies the IsNil predicate on the "scenarioHash" field.
  1519  func ScenarioHashIsNil() predicate.Alert {
  1520  	return predicate.Alert(sql.FieldIsNull(FieldScenarioHash))
  1521  }
  1522  
  1523  // ScenarioHashNotNil applies the NotNil predicate on the "scenarioHash" field.
  1524  func ScenarioHashNotNil() predicate.Alert {
  1525  	return predicate.Alert(sql.FieldNotNull(FieldScenarioHash))
  1526  }
  1527  
  1528  // ScenarioHashEqualFold applies the EqualFold predicate on the "scenarioHash" field.
  1529  func ScenarioHashEqualFold(v string) predicate.Alert {
  1530  	return predicate.Alert(sql.FieldEqualFold(FieldScenarioHash, v))
  1531  }
  1532  
  1533  // ScenarioHashContainsFold applies the ContainsFold predicate on the "scenarioHash" field.
  1534  func ScenarioHashContainsFold(v string) predicate.Alert {
  1535  	return predicate.Alert(sql.FieldContainsFold(FieldScenarioHash, v))
  1536  }
  1537  
  1538  // SimulatedEQ applies the EQ predicate on the "simulated" field.
  1539  func SimulatedEQ(v bool) predicate.Alert {
  1540  	return predicate.Alert(sql.FieldEQ(FieldSimulated, v))
  1541  }
  1542  
  1543  // SimulatedNEQ applies the NEQ predicate on the "simulated" field.
  1544  func SimulatedNEQ(v bool) predicate.Alert {
  1545  	return predicate.Alert(sql.FieldNEQ(FieldSimulated, v))
  1546  }
  1547  
  1548  // UUIDEQ applies the EQ predicate on the "uuid" field.
  1549  func UUIDEQ(v string) predicate.Alert {
  1550  	return predicate.Alert(sql.FieldEQ(FieldUUID, v))
  1551  }
  1552  
  1553  // UUIDNEQ applies the NEQ predicate on the "uuid" field.
  1554  func UUIDNEQ(v string) predicate.Alert {
  1555  	return predicate.Alert(sql.FieldNEQ(FieldUUID, v))
  1556  }
  1557  
  1558  // UUIDIn applies the In predicate on the "uuid" field.
  1559  func UUIDIn(vs ...string) predicate.Alert {
  1560  	return predicate.Alert(sql.FieldIn(FieldUUID, vs...))
  1561  }
  1562  
  1563  // UUIDNotIn applies the NotIn predicate on the "uuid" field.
  1564  func UUIDNotIn(vs ...string) predicate.Alert {
  1565  	return predicate.Alert(sql.FieldNotIn(FieldUUID, vs...))
  1566  }
  1567  
  1568  // UUIDGT applies the GT predicate on the "uuid" field.
  1569  func UUIDGT(v string) predicate.Alert {
  1570  	return predicate.Alert(sql.FieldGT(FieldUUID, v))
  1571  }
  1572  
  1573  // UUIDGTE applies the GTE predicate on the "uuid" field.
  1574  func UUIDGTE(v string) predicate.Alert {
  1575  	return predicate.Alert(sql.FieldGTE(FieldUUID, v))
  1576  }
  1577  
  1578  // UUIDLT applies the LT predicate on the "uuid" field.
  1579  func UUIDLT(v string) predicate.Alert {
  1580  	return predicate.Alert(sql.FieldLT(FieldUUID, v))
  1581  }
  1582  
  1583  // UUIDLTE applies the LTE predicate on the "uuid" field.
  1584  func UUIDLTE(v string) predicate.Alert {
  1585  	return predicate.Alert(sql.FieldLTE(FieldUUID, v))
  1586  }
  1587  
  1588  // UUIDContains applies the Contains predicate on the "uuid" field.
  1589  func UUIDContains(v string) predicate.Alert {
  1590  	return predicate.Alert(sql.FieldContains(FieldUUID, v))
  1591  }
  1592  
  1593  // UUIDHasPrefix applies the HasPrefix predicate on the "uuid" field.
  1594  func UUIDHasPrefix(v string) predicate.Alert {
  1595  	return predicate.Alert(sql.FieldHasPrefix(FieldUUID, v))
  1596  }
  1597  
  1598  // UUIDHasSuffix applies the HasSuffix predicate on the "uuid" field.
  1599  func UUIDHasSuffix(v string) predicate.Alert {
  1600  	return predicate.Alert(sql.FieldHasSuffix(FieldUUID, v))
  1601  }
  1602  
  1603  // UUIDIsNil applies the IsNil predicate on the "uuid" field.
  1604  func UUIDIsNil() predicate.Alert {
  1605  	return predicate.Alert(sql.FieldIsNull(FieldUUID))
  1606  }
  1607  
  1608  // UUIDNotNil applies the NotNil predicate on the "uuid" field.
  1609  func UUIDNotNil() predicate.Alert {
  1610  	return predicate.Alert(sql.FieldNotNull(FieldUUID))
  1611  }
  1612  
  1613  // UUIDEqualFold applies the EqualFold predicate on the "uuid" field.
  1614  func UUIDEqualFold(v string) predicate.Alert {
  1615  	return predicate.Alert(sql.FieldEqualFold(FieldUUID, v))
  1616  }
  1617  
  1618  // UUIDContainsFold applies the ContainsFold predicate on the "uuid" field.
  1619  func UUIDContainsFold(v string) predicate.Alert {
  1620  	return predicate.Alert(sql.FieldContainsFold(FieldUUID, v))
  1621  }
  1622  
  1623  // HasOwner applies the HasEdge predicate on the "owner" edge.
  1624  func HasOwner() predicate.Alert {
  1625  	return predicate.Alert(func(s *sql.Selector) {
  1626  		step := sqlgraph.NewStep(
  1627  			sqlgraph.From(Table, FieldID),
  1628  			sqlgraph.Edge(sqlgraph.M2O, true, OwnerTable, OwnerColumn),
  1629  		)
  1630  		sqlgraph.HasNeighbors(s, step)
  1631  	})
  1632  }
  1633  
  1634  // HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
  1635  func HasOwnerWith(preds ...predicate.Machine) predicate.Alert {
  1636  	return predicate.Alert(func(s *sql.Selector) {
  1637  		step := newOwnerStep()
  1638  		sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  1639  			for _, p := range preds {
  1640  				p(s)
  1641  			}
  1642  		})
  1643  	})
  1644  }
  1645  
  1646  // HasDecisions applies the HasEdge predicate on the "decisions" edge.
  1647  func HasDecisions() predicate.Alert {
  1648  	return predicate.Alert(func(s *sql.Selector) {
  1649  		step := sqlgraph.NewStep(
  1650  			sqlgraph.From(Table, FieldID),
  1651  			sqlgraph.Edge(sqlgraph.O2M, false, DecisionsTable, DecisionsColumn),
  1652  		)
  1653  		sqlgraph.HasNeighbors(s, step)
  1654  	})
  1655  }
  1656  
  1657  // HasDecisionsWith applies the HasEdge predicate on the "decisions" edge with a given conditions (other predicates).
  1658  func HasDecisionsWith(preds ...predicate.Decision) predicate.Alert {
  1659  	return predicate.Alert(func(s *sql.Selector) {
  1660  		step := newDecisionsStep()
  1661  		sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  1662  			for _, p := range preds {
  1663  				p(s)
  1664  			}
  1665  		})
  1666  	})
  1667  }
  1668  
  1669  // HasEvents applies the HasEdge predicate on the "events" edge.
  1670  func HasEvents() predicate.Alert {
  1671  	return predicate.Alert(func(s *sql.Selector) {
  1672  		step := sqlgraph.NewStep(
  1673  			sqlgraph.From(Table, FieldID),
  1674  			sqlgraph.Edge(sqlgraph.O2M, false, EventsTable, EventsColumn),
  1675  		)
  1676  		sqlgraph.HasNeighbors(s, step)
  1677  	})
  1678  }
  1679  
  1680  // HasEventsWith applies the HasEdge predicate on the "events" edge with a given conditions (other predicates).
  1681  func HasEventsWith(preds ...predicate.Event) predicate.Alert {
  1682  	return predicate.Alert(func(s *sql.Selector) {
  1683  		step := newEventsStep()
  1684  		sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  1685  			for _, p := range preds {
  1686  				p(s)
  1687  			}
  1688  		})
  1689  	})
  1690  }
  1691  
  1692  // HasMetas applies the HasEdge predicate on the "metas" edge.
  1693  func HasMetas() predicate.Alert {
  1694  	return predicate.Alert(func(s *sql.Selector) {
  1695  		step := sqlgraph.NewStep(
  1696  			sqlgraph.From(Table, FieldID),
  1697  			sqlgraph.Edge(sqlgraph.O2M, false, MetasTable, MetasColumn),
  1698  		)
  1699  		sqlgraph.HasNeighbors(s, step)
  1700  	})
  1701  }
  1702  
  1703  // HasMetasWith applies the HasEdge predicate on the "metas" edge with a given conditions (other predicates).
  1704  func HasMetasWith(preds ...predicate.Meta) predicate.Alert {
  1705  	return predicate.Alert(func(s *sql.Selector) {
  1706  		step := newMetasStep()
  1707  		sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  1708  			for _, p := range preds {
  1709  				p(s)
  1710  			}
  1711  		})
  1712  	})
  1713  }
  1714  
  1715  // And groups predicates with the AND operator between them.
  1716  func And(predicates ...predicate.Alert) predicate.Alert {
  1717  	return predicate.Alert(sql.AndPredicates(predicates...))
  1718  }
  1719  
  1720  // Or groups predicates with the OR operator between them.
  1721  func Or(predicates ...predicate.Alert) predicate.Alert {
  1722  	return predicate.Alert(sql.OrPredicates(predicates...))
  1723  }
  1724  
  1725  // Not applies the not operator on the given predicate.
  1726  func Not(p predicate.Alert) predicate.Alert {
  1727  	return predicate.Alert(sql.NotPredicates(p))
  1728  }