github.com/crowdsecurity/crowdsec@v1.6.1/pkg/database/ent/machine/where.go (about) 1 // Code generated by ent, DO NOT EDIT. 2 3 package machine 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.Machine { 15 return predicate.Machine(sql.FieldEQ(FieldID, id)) 16 } 17 18 // IDEQ applies the EQ predicate on the ID field. 19 func IDEQ(id int) predicate.Machine { 20 return predicate.Machine(sql.FieldEQ(FieldID, id)) 21 } 22 23 // IDNEQ applies the NEQ predicate on the ID field. 24 func IDNEQ(id int) predicate.Machine { 25 return predicate.Machine(sql.FieldNEQ(FieldID, id)) 26 } 27 28 // IDIn applies the In predicate on the ID field. 29 func IDIn(ids ...int) predicate.Machine { 30 return predicate.Machine(sql.FieldIn(FieldID, ids...)) 31 } 32 33 // IDNotIn applies the NotIn predicate on the ID field. 34 func IDNotIn(ids ...int) predicate.Machine { 35 return predicate.Machine(sql.FieldNotIn(FieldID, ids...)) 36 } 37 38 // IDGT applies the GT predicate on the ID field. 39 func IDGT(id int) predicate.Machine { 40 return predicate.Machine(sql.FieldGT(FieldID, id)) 41 } 42 43 // IDGTE applies the GTE predicate on the ID field. 44 func IDGTE(id int) predicate.Machine { 45 return predicate.Machine(sql.FieldGTE(FieldID, id)) 46 } 47 48 // IDLT applies the LT predicate on the ID field. 49 func IDLT(id int) predicate.Machine { 50 return predicate.Machine(sql.FieldLT(FieldID, id)) 51 } 52 53 // IDLTE applies the LTE predicate on the ID field. 54 func IDLTE(id int) predicate.Machine { 55 return predicate.Machine(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.Machine { 60 return predicate.Machine(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.Machine { 65 return predicate.Machine(sql.FieldEQ(FieldUpdatedAt, v)) 66 } 67 68 // LastPush applies equality check predicate on the "last_push" field. It's identical to LastPushEQ. 69 func LastPush(v time.Time) predicate.Machine { 70 return predicate.Machine(sql.FieldEQ(FieldLastPush, v)) 71 } 72 73 // LastHeartbeat applies equality check predicate on the "last_heartbeat" field. It's identical to LastHeartbeatEQ. 74 func LastHeartbeat(v time.Time) predicate.Machine { 75 return predicate.Machine(sql.FieldEQ(FieldLastHeartbeat, v)) 76 } 77 78 // MachineId applies equality check predicate on the "machineId" field. It's identical to MachineIdEQ. 79 func MachineId(v string) predicate.Machine { 80 return predicate.Machine(sql.FieldEQ(FieldMachineId, v)) 81 } 82 83 // Password applies equality check predicate on the "password" field. It's identical to PasswordEQ. 84 func Password(v string) predicate.Machine { 85 return predicate.Machine(sql.FieldEQ(FieldPassword, v)) 86 } 87 88 // IpAddress applies equality check predicate on the "ipAddress" field. It's identical to IpAddressEQ. 89 func IpAddress(v string) predicate.Machine { 90 return predicate.Machine(sql.FieldEQ(FieldIpAddress, v)) 91 } 92 93 // Scenarios applies equality check predicate on the "scenarios" field. It's identical to ScenariosEQ. 94 func Scenarios(v string) predicate.Machine { 95 return predicate.Machine(sql.FieldEQ(FieldScenarios, v)) 96 } 97 98 // Version applies equality check predicate on the "version" field. It's identical to VersionEQ. 99 func Version(v string) predicate.Machine { 100 return predicate.Machine(sql.FieldEQ(FieldVersion, v)) 101 } 102 103 // IsValidated applies equality check predicate on the "isValidated" field. It's identical to IsValidatedEQ. 104 func IsValidated(v bool) predicate.Machine { 105 return predicate.Machine(sql.FieldEQ(FieldIsValidated, v)) 106 } 107 108 // Status applies equality check predicate on the "status" field. It's identical to StatusEQ. 109 func Status(v string) predicate.Machine { 110 return predicate.Machine(sql.FieldEQ(FieldStatus, v)) 111 } 112 113 // AuthType applies equality check predicate on the "auth_type" field. It's identical to AuthTypeEQ. 114 func AuthType(v string) predicate.Machine { 115 return predicate.Machine(sql.FieldEQ(FieldAuthType, v)) 116 } 117 118 // CreatedAtEQ applies the EQ predicate on the "created_at" field. 119 func CreatedAtEQ(v time.Time) predicate.Machine { 120 return predicate.Machine(sql.FieldEQ(FieldCreatedAt, v)) 121 } 122 123 // CreatedAtNEQ applies the NEQ predicate on the "created_at" field. 124 func CreatedAtNEQ(v time.Time) predicate.Machine { 125 return predicate.Machine(sql.FieldNEQ(FieldCreatedAt, v)) 126 } 127 128 // CreatedAtIn applies the In predicate on the "created_at" field. 129 func CreatedAtIn(vs ...time.Time) predicate.Machine { 130 return predicate.Machine(sql.FieldIn(FieldCreatedAt, vs...)) 131 } 132 133 // CreatedAtNotIn applies the NotIn predicate on the "created_at" field. 134 func CreatedAtNotIn(vs ...time.Time) predicate.Machine { 135 return predicate.Machine(sql.FieldNotIn(FieldCreatedAt, vs...)) 136 } 137 138 // CreatedAtGT applies the GT predicate on the "created_at" field. 139 func CreatedAtGT(v time.Time) predicate.Machine { 140 return predicate.Machine(sql.FieldGT(FieldCreatedAt, v)) 141 } 142 143 // CreatedAtGTE applies the GTE predicate on the "created_at" field. 144 func CreatedAtGTE(v time.Time) predicate.Machine { 145 return predicate.Machine(sql.FieldGTE(FieldCreatedAt, v)) 146 } 147 148 // CreatedAtLT applies the LT predicate on the "created_at" field. 149 func CreatedAtLT(v time.Time) predicate.Machine { 150 return predicate.Machine(sql.FieldLT(FieldCreatedAt, v)) 151 } 152 153 // CreatedAtLTE applies the LTE predicate on the "created_at" field. 154 func CreatedAtLTE(v time.Time) predicate.Machine { 155 return predicate.Machine(sql.FieldLTE(FieldCreatedAt, v)) 156 } 157 158 // CreatedAtIsNil applies the IsNil predicate on the "created_at" field. 159 func CreatedAtIsNil() predicate.Machine { 160 return predicate.Machine(sql.FieldIsNull(FieldCreatedAt)) 161 } 162 163 // CreatedAtNotNil applies the NotNil predicate on the "created_at" field. 164 func CreatedAtNotNil() predicate.Machine { 165 return predicate.Machine(sql.FieldNotNull(FieldCreatedAt)) 166 } 167 168 // UpdatedAtEQ applies the EQ predicate on the "updated_at" field. 169 func UpdatedAtEQ(v time.Time) predicate.Machine { 170 return predicate.Machine(sql.FieldEQ(FieldUpdatedAt, v)) 171 } 172 173 // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. 174 func UpdatedAtNEQ(v time.Time) predicate.Machine { 175 return predicate.Machine(sql.FieldNEQ(FieldUpdatedAt, v)) 176 } 177 178 // UpdatedAtIn applies the In predicate on the "updated_at" field. 179 func UpdatedAtIn(vs ...time.Time) predicate.Machine { 180 return predicate.Machine(sql.FieldIn(FieldUpdatedAt, vs...)) 181 } 182 183 // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. 184 func UpdatedAtNotIn(vs ...time.Time) predicate.Machine { 185 return predicate.Machine(sql.FieldNotIn(FieldUpdatedAt, vs...)) 186 } 187 188 // UpdatedAtGT applies the GT predicate on the "updated_at" field. 189 func UpdatedAtGT(v time.Time) predicate.Machine { 190 return predicate.Machine(sql.FieldGT(FieldUpdatedAt, v)) 191 } 192 193 // UpdatedAtGTE applies the GTE predicate on the "updated_at" field. 194 func UpdatedAtGTE(v time.Time) predicate.Machine { 195 return predicate.Machine(sql.FieldGTE(FieldUpdatedAt, v)) 196 } 197 198 // UpdatedAtLT applies the LT predicate on the "updated_at" field. 199 func UpdatedAtLT(v time.Time) predicate.Machine { 200 return predicate.Machine(sql.FieldLT(FieldUpdatedAt, v)) 201 } 202 203 // UpdatedAtLTE applies the LTE predicate on the "updated_at" field. 204 func UpdatedAtLTE(v time.Time) predicate.Machine { 205 return predicate.Machine(sql.FieldLTE(FieldUpdatedAt, v)) 206 } 207 208 // UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field. 209 func UpdatedAtIsNil() predicate.Machine { 210 return predicate.Machine(sql.FieldIsNull(FieldUpdatedAt)) 211 } 212 213 // UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field. 214 func UpdatedAtNotNil() predicate.Machine { 215 return predicate.Machine(sql.FieldNotNull(FieldUpdatedAt)) 216 } 217 218 // LastPushEQ applies the EQ predicate on the "last_push" field. 219 func LastPushEQ(v time.Time) predicate.Machine { 220 return predicate.Machine(sql.FieldEQ(FieldLastPush, v)) 221 } 222 223 // LastPushNEQ applies the NEQ predicate on the "last_push" field. 224 func LastPushNEQ(v time.Time) predicate.Machine { 225 return predicate.Machine(sql.FieldNEQ(FieldLastPush, v)) 226 } 227 228 // LastPushIn applies the In predicate on the "last_push" field. 229 func LastPushIn(vs ...time.Time) predicate.Machine { 230 return predicate.Machine(sql.FieldIn(FieldLastPush, vs...)) 231 } 232 233 // LastPushNotIn applies the NotIn predicate on the "last_push" field. 234 func LastPushNotIn(vs ...time.Time) predicate.Machine { 235 return predicate.Machine(sql.FieldNotIn(FieldLastPush, vs...)) 236 } 237 238 // LastPushGT applies the GT predicate on the "last_push" field. 239 func LastPushGT(v time.Time) predicate.Machine { 240 return predicate.Machine(sql.FieldGT(FieldLastPush, v)) 241 } 242 243 // LastPushGTE applies the GTE predicate on the "last_push" field. 244 func LastPushGTE(v time.Time) predicate.Machine { 245 return predicate.Machine(sql.FieldGTE(FieldLastPush, v)) 246 } 247 248 // LastPushLT applies the LT predicate on the "last_push" field. 249 func LastPushLT(v time.Time) predicate.Machine { 250 return predicate.Machine(sql.FieldLT(FieldLastPush, v)) 251 } 252 253 // LastPushLTE applies the LTE predicate on the "last_push" field. 254 func LastPushLTE(v time.Time) predicate.Machine { 255 return predicate.Machine(sql.FieldLTE(FieldLastPush, v)) 256 } 257 258 // LastPushIsNil applies the IsNil predicate on the "last_push" field. 259 func LastPushIsNil() predicate.Machine { 260 return predicate.Machine(sql.FieldIsNull(FieldLastPush)) 261 } 262 263 // LastPushNotNil applies the NotNil predicate on the "last_push" field. 264 func LastPushNotNil() predicate.Machine { 265 return predicate.Machine(sql.FieldNotNull(FieldLastPush)) 266 } 267 268 // LastHeartbeatEQ applies the EQ predicate on the "last_heartbeat" field. 269 func LastHeartbeatEQ(v time.Time) predicate.Machine { 270 return predicate.Machine(sql.FieldEQ(FieldLastHeartbeat, v)) 271 } 272 273 // LastHeartbeatNEQ applies the NEQ predicate on the "last_heartbeat" field. 274 func LastHeartbeatNEQ(v time.Time) predicate.Machine { 275 return predicate.Machine(sql.FieldNEQ(FieldLastHeartbeat, v)) 276 } 277 278 // LastHeartbeatIn applies the In predicate on the "last_heartbeat" field. 279 func LastHeartbeatIn(vs ...time.Time) predicate.Machine { 280 return predicate.Machine(sql.FieldIn(FieldLastHeartbeat, vs...)) 281 } 282 283 // LastHeartbeatNotIn applies the NotIn predicate on the "last_heartbeat" field. 284 func LastHeartbeatNotIn(vs ...time.Time) predicate.Machine { 285 return predicate.Machine(sql.FieldNotIn(FieldLastHeartbeat, vs...)) 286 } 287 288 // LastHeartbeatGT applies the GT predicate on the "last_heartbeat" field. 289 func LastHeartbeatGT(v time.Time) predicate.Machine { 290 return predicate.Machine(sql.FieldGT(FieldLastHeartbeat, v)) 291 } 292 293 // LastHeartbeatGTE applies the GTE predicate on the "last_heartbeat" field. 294 func LastHeartbeatGTE(v time.Time) predicate.Machine { 295 return predicate.Machine(sql.FieldGTE(FieldLastHeartbeat, v)) 296 } 297 298 // LastHeartbeatLT applies the LT predicate on the "last_heartbeat" field. 299 func LastHeartbeatLT(v time.Time) predicate.Machine { 300 return predicate.Machine(sql.FieldLT(FieldLastHeartbeat, v)) 301 } 302 303 // LastHeartbeatLTE applies the LTE predicate on the "last_heartbeat" field. 304 func LastHeartbeatLTE(v time.Time) predicate.Machine { 305 return predicate.Machine(sql.FieldLTE(FieldLastHeartbeat, v)) 306 } 307 308 // LastHeartbeatIsNil applies the IsNil predicate on the "last_heartbeat" field. 309 func LastHeartbeatIsNil() predicate.Machine { 310 return predicate.Machine(sql.FieldIsNull(FieldLastHeartbeat)) 311 } 312 313 // LastHeartbeatNotNil applies the NotNil predicate on the "last_heartbeat" field. 314 func LastHeartbeatNotNil() predicate.Machine { 315 return predicate.Machine(sql.FieldNotNull(FieldLastHeartbeat)) 316 } 317 318 // MachineIdEQ applies the EQ predicate on the "machineId" field. 319 func MachineIdEQ(v string) predicate.Machine { 320 return predicate.Machine(sql.FieldEQ(FieldMachineId, v)) 321 } 322 323 // MachineIdNEQ applies the NEQ predicate on the "machineId" field. 324 func MachineIdNEQ(v string) predicate.Machine { 325 return predicate.Machine(sql.FieldNEQ(FieldMachineId, v)) 326 } 327 328 // MachineIdIn applies the In predicate on the "machineId" field. 329 func MachineIdIn(vs ...string) predicate.Machine { 330 return predicate.Machine(sql.FieldIn(FieldMachineId, vs...)) 331 } 332 333 // MachineIdNotIn applies the NotIn predicate on the "machineId" field. 334 func MachineIdNotIn(vs ...string) predicate.Machine { 335 return predicate.Machine(sql.FieldNotIn(FieldMachineId, vs...)) 336 } 337 338 // MachineIdGT applies the GT predicate on the "machineId" field. 339 func MachineIdGT(v string) predicate.Machine { 340 return predicate.Machine(sql.FieldGT(FieldMachineId, v)) 341 } 342 343 // MachineIdGTE applies the GTE predicate on the "machineId" field. 344 func MachineIdGTE(v string) predicate.Machine { 345 return predicate.Machine(sql.FieldGTE(FieldMachineId, v)) 346 } 347 348 // MachineIdLT applies the LT predicate on the "machineId" field. 349 func MachineIdLT(v string) predicate.Machine { 350 return predicate.Machine(sql.FieldLT(FieldMachineId, v)) 351 } 352 353 // MachineIdLTE applies the LTE predicate on the "machineId" field. 354 func MachineIdLTE(v string) predicate.Machine { 355 return predicate.Machine(sql.FieldLTE(FieldMachineId, v)) 356 } 357 358 // MachineIdContains applies the Contains predicate on the "machineId" field. 359 func MachineIdContains(v string) predicate.Machine { 360 return predicate.Machine(sql.FieldContains(FieldMachineId, v)) 361 } 362 363 // MachineIdHasPrefix applies the HasPrefix predicate on the "machineId" field. 364 func MachineIdHasPrefix(v string) predicate.Machine { 365 return predicate.Machine(sql.FieldHasPrefix(FieldMachineId, v)) 366 } 367 368 // MachineIdHasSuffix applies the HasSuffix predicate on the "machineId" field. 369 func MachineIdHasSuffix(v string) predicate.Machine { 370 return predicate.Machine(sql.FieldHasSuffix(FieldMachineId, v)) 371 } 372 373 // MachineIdEqualFold applies the EqualFold predicate on the "machineId" field. 374 func MachineIdEqualFold(v string) predicate.Machine { 375 return predicate.Machine(sql.FieldEqualFold(FieldMachineId, v)) 376 } 377 378 // MachineIdContainsFold applies the ContainsFold predicate on the "machineId" field. 379 func MachineIdContainsFold(v string) predicate.Machine { 380 return predicate.Machine(sql.FieldContainsFold(FieldMachineId, v)) 381 } 382 383 // PasswordEQ applies the EQ predicate on the "password" field. 384 func PasswordEQ(v string) predicate.Machine { 385 return predicate.Machine(sql.FieldEQ(FieldPassword, v)) 386 } 387 388 // PasswordNEQ applies the NEQ predicate on the "password" field. 389 func PasswordNEQ(v string) predicate.Machine { 390 return predicate.Machine(sql.FieldNEQ(FieldPassword, v)) 391 } 392 393 // PasswordIn applies the In predicate on the "password" field. 394 func PasswordIn(vs ...string) predicate.Machine { 395 return predicate.Machine(sql.FieldIn(FieldPassword, vs...)) 396 } 397 398 // PasswordNotIn applies the NotIn predicate on the "password" field. 399 func PasswordNotIn(vs ...string) predicate.Machine { 400 return predicate.Machine(sql.FieldNotIn(FieldPassword, vs...)) 401 } 402 403 // PasswordGT applies the GT predicate on the "password" field. 404 func PasswordGT(v string) predicate.Machine { 405 return predicate.Machine(sql.FieldGT(FieldPassword, v)) 406 } 407 408 // PasswordGTE applies the GTE predicate on the "password" field. 409 func PasswordGTE(v string) predicate.Machine { 410 return predicate.Machine(sql.FieldGTE(FieldPassword, v)) 411 } 412 413 // PasswordLT applies the LT predicate on the "password" field. 414 func PasswordLT(v string) predicate.Machine { 415 return predicate.Machine(sql.FieldLT(FieldPassword, v)) 416 } 417 418 // PasswordLTE applies the LTE predicate on the "password" field. 419 func PasswordLTE(v string) predicate.Machine { 420 return predicate.Machine(sql.FieldLTE(FieldPassword, v)) 421 } 422 423 // PasswordContains applies the Contains predicate on the "password" field. 424 func PasswordContains(v string) predicate.Machine { 425 return predicate.Machine(sql.FieldContains(FieldPassword, v)) 426 } 427 428 // PasswordHasPrefix applies the HasPrefix predicate on the "password" field. 429 func PasswordHasPrefix(v string) predicate.Machine { 430 return predicate.Machine(sql.FieldHasPrefix(FieldPassword, v)) 431 } 432 433 // PasswordHasSuffix applies the HasSuffix predicate on the "password" field. 434 func PasswordHasSuffix(v string) predicate.Machine { 435 return predicate.Machine(sql.FieldHasSuffix(FieldPassword, v)) 436 } 437 438 // PasswordEqualFold applies the EqualFold predicate on the "password" field. 439 func PasswordEqualFold(v string) predicate.Machine { 440 return predicate.Machine(sql.FieldEqualFold(FieldPassword, v)) 441 } 442 443 // PasswordContainsFold applies the ContainsFold predicate on the "password" field. 444 func PasswordContainsFold(v string) predicate.Machine { 445 return predicate.Machine(sql.FieldContainsFold(FieldPassword, v)) 446 } 447 448 // IpAddressEQ applies the EQ predicate on the "ipAddress" field. 449 func IpAddressEQ(v string) predicate.Machine { 450 return predicate.Machine(sql.FieldEQ(FieldIpAddress, v)) 451 } 452 453 // IpAddressNEQ applies the NEQ predicate on the "ipAddress" field. 454 func IpAddressNEQ(v string) predicate.Machine { 455 return predicate.Machine(sql.FieldNEQ(FieldIpAddress, v)) 456 } 457 458 // IpAddressIn applies the In predicate on the "ipAddress" field. 459 func IpAddressIn(vs ...string) predicate.Machine { 460 return predicate.Machine(sql.FieldIn(FieldIpAddress, vs...)) 461 } 462 463 // IpAddressNotIn applies the NotIn predicate on the "ipAddress" field. 464 func IpAddressNotIn(vs ...string) predicate.Machine { 465 return predicate.Machine(sql.FieldNotIn(FieldIpAddress, vs...)) 466 } 467 468 // IpAddressGT applies the GT predicate on the "ipAddress" field. 469 func IpAddressGT(v string) predicate.Machine { 470 return predicate.Machine(sql.FieldGT(FieldIpAddress, v)) 471 } 472 473 // IpAddressGTE applies the GTE predicate on the "ipAddress" field. 474 func IpAddressGTE(v string) predicate.Machine { 475 return predicate.Machine(sql.FieldGTE(FieldIpAddress, v)) 476 } 477 478 // IpAddressLT applies the LT predicate on the "ipAddress" field. 479 func IpAddressLT(v string) predicate.Machine { 480 return predicate.Machine(sql.FieldLT(FieldIpAddress, v)) 481 } 482 483 // IpAddressLTE applies the LTE predicate on the "ipAddress" field. 484 func IpAddressLTE(v string) predicate.Machine { 485 return predicate.Machine(sql.FieldLTE(FieldIpAddress, v)) 486 } 487 488 // IpAddressContains applies the Contains predicate on the "ipAddress" field. 489 func IpAddressContains(v string) predicate.Machine { 490 return predicate.Machine(sql.FieldContains(FieldIpAddress, v)) 491 } 492 493 // IpAddressHasPrefix applies the HasPrefix predicate on the "ipAddress" field. 494 func IpAddressHasPrefix(v string) predicate.Machine { 495 return predicate.Machine(sql.FieldHasPrefix(FieldIpAddress, v)) 496 } 497 498 // IpAddressHasSuffix applies the HasSuffix predicate on the "ipAddress" field. 499 func IpAddressHasSuffix(v string) predicate.Machine { 500 return predicate.Machine(sql.FieldHasSuffix(FieldIpAddress, v)) 501 } 502 503 // IpAddressEqualFold applies the EqualFold predicate on the "ipAddress" field. 504 func IpAddressEqualFold(v string) predicate.Machine { 505 return predicate.Machine(sql.FieldEqualFold(FieldIpAddress, v)) 506 } 507 508 // IpAddressContainsFold applies the ContainsFold predicate on the "ipAddress" field. 509 func IpAddressContainsFold(v string) predicate.Machine { 510 return predicate.Machine(sql.FieldContainsFold(FieldIpAddress, v)) 511 } 512 513 // ScenariosEQ applies the EQ predicate on the "scenarios" field. 514 func ScenariosEQ(v string) predicate.Machine { 515 return predicate.Machine(sql.FieldEQ(FieldScenarios, v)) 516 } 517 518 // ScenariosNEQ applies the NEQ predicate on the "scenarios" field. 519 func ScenariosNEQ(v string) predicate.Machine { 520 return predicate.Machine(sql.FieldNEQ(FieldScenarios, v)) 521 } 522 523 // ScenariosIn applies the In predicate on the "scenarios" field. 524 func ScenariosIn(vs ...string) predicate.Machine { 525 return predicate.Machine(sql.FieldIn(FieldScenarios, vs...)) 526 } 527 528 // ScenariosNotIn applies the NotIn predicate on the "scenarios" field. 529 func ScenariosNotIn(vs ...string) predicate.Machine { 530 return predicate.Machine(sql.FieldNotIn(FieldScenarios, vs...)) 531 } 532 533 // ScenariosGT applies the GT predicate on the "scenarios" field. 534 func ScenariosGT(v string) predicate.Machine { 535 return predicate.Machine(sql.FieldGT(FieldScenarios, v)) 536 } 537 538 // ScenariosGTE applies the GTE predicate on the "scenarios" field. 539 func ScenariosGTE(v string) predicate.Machine { 540 return predicate.Machine(sql.FieldGTE(FieldScenarios, v)) 541 } 542 543 // ScenariosLT applies the LT predicate on the "scenarios" field. 544 func ScenariosLT(v string) predicate.Machine { 545 return predicate.Machine(sql.FieldLT(FieldScenarios, v)) 546 } 547 548 // ScenariosLTE applies the LTE predicate on the "scenarios" field. 549 func ScenariosLTE(v string) predicate.Machine { 550 return predicate.Machine(sql.FieldLTE(FieldScenarios, v)) 551 } 552 553 // ScenariosContains applies the Contains predicate on the "scenarios" field. 554 func ScenariosContains(v string) predicate.Machine { 555 return predicate.Machine(sql.FieldContains(FieldScenarios, v)) 556 } 557 558 // ScenariosHasPrefix applies the HasPrefix predicate on the "scenarios" field. 559 func ScenariosHasPrefix(v string) predicate.Machine { 560 return predicate.Machine(sql.FieldHasPrefix(FieldScenarios, v)) 561 } 562 563 // ScenariosHasSuffix applies the HasSuffix predicate on the "scenarios" field. 564 func ScenariosHasSuffix(v string) predicate.Machine { 565 return predicate.Machine(sql.FieldHasSuffix(FieldScenarios, v)) 566 } 567 568 // ScenariosIsNil applies the IsNil predicate on the "scenarios" field. 569 func ScenariosIsNil() predicate.Machine { 570 return predicate.Machine(sql.FieldIsNull(FieldScenarios)) 571 } 572 573 // ScenariosNotNil applies the NotNil predicate on the "scenarios" field. 574 func ScenariosNotNil() predicate.Machine { 575 return predicate.Machine(sql.FieldNotNull(FieldScenarios)) 576 } 577 578 // ScenariosEqualFold applies the EqualFold predicate on the "scenarios" field. 579 func ScenariosEqualFold(v string) predicate.Machine { 580 return predicate.Machine(sql.FieldEqualFold(FieldScenarios, v)) 581 } 582 583 // ScenariosContainsFold applies the ContainsFold predicate on the "scenarios" field. 584 func ScenariosContainsFold(v string) predicate.Machine { 585 return predicate.Machine(sql.FieldContainsFold(FieldScenarios, v)) 586 } 587 588 // VersionEQ applies the EQ predicate on the "version" field. 589 func VersionEQ(v string) predicate.Machine { 590 return predicate.Machine(sql.FieldEQ(FieldVersion, v)) 591 } 592 593 // VersionNEQ applies the NEQ predicate on the "version" field. 594 func VersionNEQ(v string) predicate.Machine { 595 return predicate.Machine(sql.FieldNEQ(FieldVersion, v)) 596 } 597 598 // VersionIn applies the In predicate on the "version" field. 599 func VersionIn(vs ...string) predicate.Machine { 600 return predicate.Machine(sql.FieldIn(FieldVersion, vs...)) 601 } 602 603 // VersionNotIn applies the NotIn predicate on the "version" field. 604 func VersionNotIn(vs ...string) predicate.Machine { 605 return predicate.Machine(sql.FieldNotIn(FieldVersion, vs...)) 606 } 607 608 // VersionGT applies the GT predicate on the "version" field. 609 func VersionGT(v string) predicate.Machine { 610 return predicate.Machine(sql.FieldGT(FieldVersion, v)) 611 } 612 613 // VersionGTE applies the GTE predicate on the "version" field. 614 func VersionGTE(v string) predicate.Machine { 615 return predicate.Machine(sql.FieldGTE(FieldVersion, v)) 616 } 617 618 // VersionLT applies the LT predicate on the "version" field. 619 func VersionLT(v string) predicate.Machine { 620 return predicate.Machine(sql.FieldLT(FieldVersion, v)) 621 } 622 623 // VersionLTE applies the LTE predicate on the "version" field. 624 func VersionLTE(v string) predicate.Machine { 625 return predicate.Machine(sql.FieldLTE(FieldVersion, v)) 626 } 627 628 // VersionContains applies the Contains predicate on the "version" field. 629 func VersionContains(v string) predicate.Machine { 630 return predicate.Machine(sql.FieldContains(FieldVersion, v)) 631 } 632 633 // VersionHasPrefix applies the HasPrefix predicate on the "version" field. 634 func VersionHasPrefix(v string) predicate.Machine { 635 return predicate.Machine(sql.FieldHasPrefix(FieldVersion, v)) 636 } 637 638 // VersionHasSuffix applies the HasSuffix predicate on the "version" field. 639 func VersionHasSuffix(v string) predicate.Machine { 640 return predicate.Machine(sql.FieldHasSuffix(FieldVersion, v)) 641 } 642 643 // VersionIsNil applies the IsNil predicate on the "version" field. 644 func VersionIsNil() predicate.Machine { 645 return predicate.Machine(sql.FieldIsNull(FieldVersion)) 646 } 647 648 // VersionNotNil applies the NotNil predicate on the "version" field. 649 func VersionNotNil() predicate.Machine { 650 return predicate.Machine(sql.FieldNotNull(FieldVersion)) 651 } 652 653 // VersionEqualFold applies the EqualFold predicate on the "version" field. 654 func VersionEqualFold(v string) predicate.Machine { 655 return predicate.Machine(sql.FieldEqualFold(FieldVersion, v)) 656 } 657 658 // VersionContainsFold applies the ContainsFold predicate on the "version" field. 659 func VersionContainsFold(v string) predicate.Machine { 660 return predicate.Machine(sql.FieldContainsFold(FieldVersion, v)) 661 } 662 663 // IsValidatedEQ applies the EQ predicate on the "isValidated" field. 664 func IsValidatedEQ(v bool) predicate.Machine { 665 return predicate.Machine(sql.FieldEQ(FieldIsValidated, v)) 666 } 667 668 // IsValidatedNEQ applies the NEQ predicate on the "isValidated" field. 669 func IsValidatedNEQ(v bool) predicate.Machine { 670 return predicate.Machine(sql.FieldNEQ(FieldIsValidated, v)) 671 } 672 673 // StatusEQ applies the EQ predicate on the "status" field. 674 func StatusEQ(v string) predicate.Machine { 675 return predicate.Machine(sql.FieldEQ(FieldStatus, v)) 676 } 677 678 // StatusNEQ applies the NEQ predicate on the "status" field. 679 func StatusNEQ(v string) predicate.Machine { 680 return predicate.Machine(sql.FieldNEQ(FieldStatus, v)) 681 } 682 683 // StatusIn applies the In predicate on the "status" field. 684 func StatusIn(vs ...string) predicate.Machine { 685 return predicate.Machine(sql.FieldIn(FieldStatus, vs...)) 686 } 687 688 // StatusNotIn applies the NotIn predicate on the "status" field. 689 func StatusNotIn(vs ...string) predicate.Machine { 690 return predicate.Machine(sql.FieldNotIn(FieldStatus, vs...)) 691 } 692 693 // StatusGT applies the GT predicate on the "status" field. 694 func StatusGT(v string) predicate.Machine { 695 return predicate.Machine(sql.FieldGT(FieldStatus, v)) 696 } 697 698 // StatusGTE applies the GTE predicate on the "status" field. 699 func StatusGTE(v string) predicate.Machine { 700 return predicate.Machine(sql.FieldGTE(FieldStatus, v)) 701 } 702 703 // StatusLT applies the LT predicate on the "status" field. 704 func StatusLT(v string) predicate.Machine { 705 return predicate.Machine(sql.FieldLT(FieldStatus, v)) 706 } 707 708 // StatusLTE applies the LTE predicate on the "status" field. 709 func StatusLTE(v string) predicate.Machine { 710 return predicate.Machine(sql.FieldLTE(FieldStatus, v)) 711 } 712 713 // StatusContains applies the Contains predicate on the "status" field. 714 func StatusContains(v string) predicate.Machine { 715 return predicate.Machine(sql.FieldContains(FieldStatus, v)) 716 } 717 718 // StatusHasPrefix applies the HasPrefix predicate on the "status" field. 719 func StatusHasPrefix(v string) predicate.Machine { 720 return predicate.Machine(sql.FieldHasPrefix(FieldStatus, v)) 721 } 722 723 // StatusHasSuffix applies the HasSuffix predicate on the "status" field. 724 func StatusHasSuffix(v string) predicate.Machine { 725 return predicate.Machine(sql.FieldHasSuffix(FieldStatus, v)) 726 } 727 728 // StatusIsNil applies the IsNil predicate on the "status" field. 729 func StatusIsNil() predicate.Machine { 730 return predicate.Machine(sql.FieldIsNull(FieldStatus)) 731 } 732 733 // StatusNotNil applies the NotNil predicate on the "status" field. 734 func StatusNotNil() predicate.Machine { 735 return predicate.Machine(sql.FieldNotNull(FieldStatus)) 736 } 737 738 // StatusEqualFold applies the EqualFold predicate on the "status" field. 739 func StatusEqualFold(v string) predicate.Machine { 740 return predicate.Machine(sql.FieldEqualFold(FieldStatus, v)) 741 } 742 743 // StatusContainsFold applies the ContainsFold predicate on the "status" field. 744 func StatusContainsFold(v string) predicate.Machine { 745 return predicate.Machine(sql.FieldContainsFold(FieldStatus, v)) 746 } 747 748 // AuthTypeEQ applies the EQ predicate on the "auth_type" field. 749 func AuthTypeEQ(v string) predicate.Machine { 750 return predicate.Machine(sql.FieldEQ(FieldAuthType, v)) 751 } 752 753 // AuthTypeNEQ applies the NEQ predicate on the "auth_type" field. 754 func AuthTypeNEQ(v string) predicate.Machine { 755 return predicate.Machine(sql.FieldNEQ(FieldAuthType, v)) 756 } 757 758 // AuthTypeIn applies the In predicate on the "auth_type" field. 759 func AuthTypeIn(vs ...string) predicate.Machine { 760 return predicate.Machine(sql.FieldIn(FieldAuthType, vs...)) 761 } 762 763 // AuthTypeNotIn applies the NotIn predicate on the "auth_type" field. 764 func AuthTypeNotIn(vs ...string) predicate.Machine { 765 return predicate.Machine(sql.FieldNotIn(FieldAuthType, vs...)) 766 } 767 768 // AuthTypeGT applies the GT predicate on the "auth_type" field. 769 func AuthTypeGT(v string) predicate.Machine { 770 return predicate.Machine(sql.FieldGT(FieldAuthType, v)) 771 } 772 773 // AuthTypeGTE applies the GTE predicate on the "auth_type" field. 774 func AuthTypeGTE(v string) predicate.Machine { 775 return predicate.Machine(sql.FieldGTE(FieldAuthType, v)) 776 } 777 778 // AuthTypeLT applies the LT predicate on the "auth_type" field. 779 func AuthTypeLT(v string) predicate.Machine { 780 return predicate.Machine(sql.FieldLT(FieldAuthType, v)) 781 } 782 783 // AuthTypeLTE applies the LTE predicate on the "auth_type" field. 784 func AuthTypeLTE(v string) predicate.Machine { 785 return predicate.Machine(sql.FieldLTE(FieldAuthType, v)) 786 } 787 788 // AuthTypeContains applies the Contains predicate on the "auth_type" field. 789 func AuthTypeContains(v string) predicate.Machine { 790 return predicate.Machine(sql.FieldContains(FieldAuthType, v)) 791 } 792 793 // AuthTypeHasPrefix applies the HasPrefix predicate on the "auth_type" field. 794 func AuthTypeHasPrefix(v string) predicate.Machine { 795 return predicate.Machine(sql.FieldHasPrefix(FieldAuthType, v)) 796 } 797 798 // AuthTypeHasSuffix applies the HasSuffix predicate on the "auth_type" field. 799 func AuthTypeHasSuffix(v string) predicate.Machine { 800 return predicate.Machine(sql.FieldHasSuffix(FieldAuthType, v)) 801 } 802 803 // AuthTypeEqualFold applies the EqualFold predicate on the "auth_type" field. 804 func AuthTypeEqualFold(v string) predicate.Machine { 805 return predicate.Machine(sql.FieldEqualFold(FieldAuthType, v)) 806 } 807 808 // AuthTypeContainsFold applies the ContainsFold predicate on the "auth_type" field. 809 func AuthTypeContainsFold(v string) predicate.Machine { 810 return predicate.Machine(sql.FieldContainsFold(FieldAuthType, v)) 811 } 812 813 // HasAlerts applies the HasEdge predicate on the "alerts" edge. 814 func HasAlerts() predicate.Machine { 815 return predicate.Machine(func(s *sql.Selector) { 816 step := sqlgraph.NewStep( 817 sqlgraph.From(Table, FieldID), 818 sqlgraph.Edge(sqlgraph.O2M, false, AlertsTable, AlertsColumn), 819 ) 820 sqlgraph.HasNeighbors(s, step) 821 }) 822 } 823 824 // HasAlertsWith applies the HasEdge predicate on the "alerts" edge with a given conditions (other predicates). 825 func HasAlertsWith(preds ...predicate.Alert) predicate.Machine { 826 return predicate.Machine(func(s *sql.Selector) { 827 step := newAlertsStep() 828 sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { 829 for _, p := range preds { 830 p(s) 831 } 832 }) 833 }) 834 } 835 836 // And groups predicates with the AND operator between them. 837 func And(predicates ...predicate.Machine) predicate.Machine { 838 return predicate.Machine(sql.AndPredicates(predicates...)) 839 } 840 841 // Or groups predicates with the OR operator between them. 842 func Or(predicates ...predicate.Machine) predicate.Machine { 843 return predicate.Machine(sql.OrPredicates(predicates...)) 844 } 845 846 // Not applies the not operator on the given predicate. 847 func Not(p predicate.Machine) predicate.Machine { 848 return predicate.Machine(sql.NotPredicates(p)) 849 }