mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-11-22 19:39:31 +08:00
- 新增 git_bots, git_bot_users, git_bot_tasks, project_git_bots 表 - 添加 user, host, project 到 gitbot 的关联边 - 使用 soft delete 和 created_at 游标
1218 lines
40 KiB
Go
1218 lines
40 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package host
|
|
|
|
import (
|
|
"time"
|
|
|
|
"entgo.io/ent/dialect/sql"
|
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
|
"github.com/chaitin/MonkeyCode/backend/db/predicate"
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
// ID filters vertices based on their ID field.
|
|
func ID(id string) predicate.Host {
|
|
return predicate.Host(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
func IDEQ(id string) predicate.Host {
|
|
return predicate.Host(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
func IDNEQ(id string) predicate.Host {
|
|
return predicate.Host(sql.FieldNEQ(FieldID, id))
|
|
}
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
func IDIn(ids ...string) predicate.Host {
|
|
return predicate.Host(sql.FieldIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
func IDNotIn(ids ...string) predicate.Host {
|
|
return predicate.Host(sql.FieldNotIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
func IDGT(id string) predicate.Host {
|
|
return predicate.Host(sql.FieldGT(FieldID, id))
|
|
}
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
func IDGTE(id string) predicate.Host {
|
|
return predicate.Host(sql.FieldGTE(FieldID, id))
|
|
}
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
func IDLT(id string) predicate.Host {
|
|
return predicate.Host(sql.FieldLT(FieldID, id))
|
|
}
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
func IDLTE(id string) predicate.Host {
|
|
return predicate.Host(sql.FieldLTE(FieldID, id))
|
|
}
|
|
|
|
// IDEqualFold applies the EqualFold predicate on the ID field.
|
|
func IDEqualFold(id string) predicate.Host {
|
|
return predicate.Host(sql.FieldEqualFold(FieldID, id))
|
|
}
|
|
|
|
// IDContainsFold applies the ContainsFold predicate on the ID field.
|
|
func IDContainsFold(id string) predicate.Host {
|
|
return predicate.Host(sql.FieldContainsFold(FieldID, id))
|
|
}
|
|
|
|
// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
|
|
func DeletedAt(v time.Time) predicate.Host {
|
|
return predicate.Host(sql.FieldEQ(FieldDeletedAt, v))
|
|
}
|
|
|
|
// UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
|
|
func UserID(v uuid.UUID) predicate.Host {
|
|
return predicate.Host(sql.FieldEQ(FieldUserID, v))
|
|
}
|
|
|
|
// Hostname applies equality check predicate on the "hostname" field. It's identical to HostnameEQ.
|
|
func Hostname(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldEQ(FieldHostname, v))
|
|
}
|
|
|
|
// Arch applies equality check predicate on the "arch" field. It's identical to ArchEQ.
|
|
func Arch(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldEQ(FieldArch, v))
|
|
}
|
|
|
|
// Cores applies equality check predicate on the "cores" field. It's identical to CoresEQ.
|
|
func Cores(v int) predicate.Host {
|
|
return predicate.Host(sql.FieldEQ(FieldCores, v))
|
|
}
|
|
|
|
// Weight applies equality check predicate on the "weight" field. It's identical to WeightEQ.
|
|
func Weight(v int) predicate.Host {
|
|
return predicate.Host(sql.FieldEQ(FieldWeight, v))
|
|
}
|
|
|
|
// Memory applies equality check predicate on the "memory" field. It's identical to MemoryEQ.
|
|
func Memory(v int64) predicate.Host {
|
|
return predicate.Host(sql.FieldEQ(FieldMemory, v))
|
|
}
|
|
|
|
// Disk applies equality check predicate on the "disk" field. It's identical to DiskEQ.
|
|
func Disk(v int64) predicate.Host {
|
|
return predicate.Host(sql.FieldEQ(FieldDisk, v))
|
|
}
|
|
|
|
// Os applies equality check predicate on the "os" field. It's identical to OsEQ.
|
|
func Os(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldEQ(FieldOs, v))
|
|
}
|
|
|
|
// ExternalIP applies equality check predicate on the "external_ip" field. It's identical to ExternalIPEQ.
|
|
func ExternalIP(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldEQ(FieldExternalIP, v))
|
|
}
|
|
|
|
// InternalIP applies equality check predicate on the "internal_ip" field. It's identical to InternalIPEQ.
|
|
func InternalIP(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldEQ(FieldInternalIP, v))
|
|
}
|
|
|
|
// Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
|
|
func Version(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldEQ(FieldVersion, v))
|
|
}
|
|
|
|
// MachineID applies equality check predicate on the "machine_id" field. It's identical to MachineIDEQ.
|
|
func MachineID(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldEQ(FieldMachineID, v))
|
|
}
|
|
|
|
// Remark applies equality check predicate on the "remark" field. It's identical to RemarkEQ.
|
|
func Remark(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldEQ(FieldRemark, v))
|
|
}
|
|
|
|
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
|
|
func CreatedAt(v time.Time) predicate.Host {
|
|
return predicate.Host(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
|
|
func UpdatedAt(v time.Time) predicate.Host {
|
|
return predicate.Host(sql.FieldEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
|
|
func DeletedAtEQ(v time.Time) predicate.Host {
|
|
return predicate.Host(sql.FieldEQ(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
|
|
func DeletedAtNEQ(v time.Time) predicate.Host {
|
|
return predicate.Host(sql.FieldNEQ(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtIn applies the In predicate on the "deleted_at" field.
|
|
func DeletedAtIn(vs ...time.Time) predicate.Host {
|
|
return predicate.Host(sql.FieldIn(FieldDeletedAt, vs...))
|
|
}
|
|
|
|
// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
|
|
func DeletedAtNotIn(vs ...time.Time) predicate.Host {
|
|
return predicate.Host(sql.FieldNotIn(FieldDeletedAt, vs...))
|
|
}
|
|
|
|
// DeletedAtGT applies the GT predicate on the "deleted_at" field.
|
|
func DeletedAtGT(v time.Time) predicate.Host {
|
|
return predicate.Host(sql.FieldGT(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
|
|
func DeletedAtGTE(v time.Time) predicate.Host {
|
|
return predicate.Host(sql.FieldGTE(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtLT applies the LT predicate on the "deleted_at" field.
|
|
func DeletedAtLT(v time.Time) predicate.Host {
|
|
return predicate.Host(sql.FieldLT(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
|
|
func DeletedAtLTE(v time.Time) predicate.Host {
|
|
return predicate.Host(sql.FieldLTE(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
|
|
func DeletedAtIsNil() predicate.Host {
|
|
return predicate.Host(sql.FieldIsNull(FieldDeletedAt))
|
|
}
|
|
|
|
// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
|
|
func DeletedAtNotNil() predicate.Host {
|
|
return predicate.Host(sql.FieldNotNull(FieldDeletedAt))
|
|
}
|
|
|
|
// UserIDEQ applies the EQ predicate on the "user_id" field.
|
|
func UserIDEQ(v uuid.UUID) predicate.Host {
|
|
return predicate.Host(sql.FieldEQ(FieldUserID, v))
|
|
}
|
|
|
|
// UserIDNEQ applies the NEQ predicate on the "user_id" field.
|
|
func UserIDNEQ(v uuid.UUID) predicate.Host {
|
|
return predicate.Host(sql.FieldNEQ(FieldUserID, v))
|
|
}
|
|
|
|
// UserIDIn applies the In predicate on the "user_id" field.
|
|
func UserIDIn(vs ...uuid.UUID) predicate.Host {
|
|
return predicate.Host(sql.FieldIn(FieldUserID, vs...))
|
|
}
|
|
|
|
// UserIDNotIn applies the NotIn predicate on the "user_id" field.
|
|
func UserIDNotIn(vs ...uuid.UUID) predicate.Host {
|
|
return predicate.Host(sql.FieldNotIn(FieldUserID, vs...))
|
|
}
|
|
|
|
// HostnameEQ applies the EQ predicate on the "hostname" field.
|
|
func HostnameEQ(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldEQ(FieldHostname, v))
|
|
}
|
|
|
|
// HostnameNEQ applies the NEQ predicate on the "hostname" field.
|
|
func HostnameNEQ(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldNEQ(FieldHostname, v))
|
|
}
|
|
|
|
// HostnameIn applies the In predicate on the "hostname" field.
|
|
func HostnameIn(vs ...string) predicate.Host {
|
|
return predicate.Host(sql.FieldIn(FieldHostname, vs...))
|
|
}
|
|
|
|
// HostnameNotIn applies the NotIn predicate on the "hostname" field.
|
|
func HostnameNotIn(vs ...string) predicate.Host {
|
|
return predicate.Host(sql.FieldNotIn(FieldHostname, vs...))
|
|
}
|
|
|
|
// HostnameGT applies the GT predicate on the "hostname" field.
|
|
func HostnameGT(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldGT(FieldHostname, v))
|
|
}
|
|
|
|
// HostnameGTE applies the GTE predicate on the "hostname" field.
|
|
func HostnameGTE(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldGTE(FieldHostname, v))
|
|
}
|
|
|
|
// HostnameLT applies the LT predicate on the "hostname" field.
|
|
func HostnameLT(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldLT(FieldHostname, v))
|
|
}
|
|
|
|
// HostnameLTE applies the LTE predicate on the "hostname" field.
|
|
func HostnameLTE(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldLTE(FieldHostname, v))
|
|
}
|
|
|
|
// HostnameContains applies the Contains predicate on the "hostname" field.
|
|
func HostnameContains(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldContains(FieldHostname, v))
|
|
}
|
|
|
|
// HostnameHasPrefix applies the HasPrefix predicate on the "hostname" field.
|
|
func HostnameHasPrefix(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldHasPrefix(FieldHostname, v))
|
|
}
|
|
|
|
// HostnameHasSuffix applies the HasSuffix predicate on the "hostname" field.
|
|
func HostnameHasSuffix(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldHasSuffix(FieldHostname, v))
|
|
}
|
|
|
|
// HostnameIsNil applies the IsNil predicate on the "hostname" field.
|
|
func HostnameIsNil() predicate.Host {
|
|
return predicate.Host(sql.FieldIsNull(FieldHostname))
|
|
}
|
|
|
|
// HostnameNotNil applies the NotNil predicate on the "hostname" field.
|
|
func HostnameNotNil() predicate.Host {
|
|
return predicate.Host(sql.FieldNotNull(FieldHostname))
|
|
}
|
|
|
|
// HostnameEqualFold applies the EqualFold predicate on the "hostname" field.
|
|
func HostnameEqualFold(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldEqualFold(FieldHostname, v))
|
|
}
|
|
|
|
// HostnameContainsFold applies the ContainsFold predicate on the "hostname" field.
|
|
func HostnameContainsFold(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldContainsFold(FieldHostname, v))
|
|
}
|
|
|
|
// ArchEQ applies the EQ predicate on the "arch" field.
|
|
func ArchEQ(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldEQ(FieldArch, v))
|
|
}
|
|
|
|
// ArchNEQ applies the NEQ predicate on the "arch" field.
|
|
func ArchNEQ(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldNEQ(FieldArch, v))
|
|
}
|
|
|
|
// ArchIn applies the In predicate on the "arch" field.
|
|
func ArchIn(vs ...string) predicate.Host {
|
|
return predicate.Host(sql.FieldIn(FieldArch, vs...))
|
|
}
|
|
|
|
// ArchNotIn applies the NotIn predicate on the "arch" field.
|
|
func ArchNotIn(vs ...string) predicate.Host {
|
|
return predicate.Host(sql.FieldNotIn(FieldArch, vs...))
|
|
}
|
|
|
|
// ArchGT applies the GT predicate on the "arch" field.
|
|
func ArchGT(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldGT(FieldArch, v))
|
|
}
|
|
|
|
// ArchGTE applies the GTE predicate on the "arch" field.
|
|
func ArchGTE(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldGTE(FieldArch, v))
|
|
}
|
|
|
|
// ArchLT applies the LT predicate on the "arch" field.
|
|
func ArchLT(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldLT(FieldArch, v))
|
|
}
|
|
|
|
// ArchLTE applies the LTE predicate on the "arch" field.
|
|
func ArchLTE(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldLTE(FieldArch, v))
|
|
}
|
|
|
|
// ArchContains applies the Contains predicate on the "arch" field.
|
|
func ArchContains(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldContains(FieldArch, v))
|
|
}
|
|
|
|
// ArchHasPrefix applies the HasPrefix predicate on the "arch" field.
|
|
func ArchHasPrefix(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldHasPrefix(FieldArch, v))
|
|
}
|
|
|
|
// ArchHasSuffix applies the HasSuffix predicate on the "arch" field.
|
|
func ArchHasSuffix(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldHasSuffix(FieldArch, v))
|
|
}
|
|
|
|
// ArchIsNil applies the IsNil predicate on the "arch" field.
|
|
func ArchIsNil() predicate.Host {
|
|
return predicate.Host(sql.FieldIsNull(FieldArch))
|
|
}
|
|
|
|
// ArchNotNil applies the NotNil predicate on the "arch" field.
|
|
func ArchNotNil() predicate.Host {
|
|
return predicate.Host(sql.FieldNotNull(FieldArch))
|
|
}
|
|
|
|
// ArchEqualFold applies the EqualFold predicate on the "arch" field.
|
|
func ArchEqualFold(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldEqualFold(FieldArch, v))
|
|
}
|
|
|
|
// ArchContainsFold applies the ContainsFold predicate on the "arch" field.
|
|
func ArchContainsFold(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldContainsFold(FieldArch, v))
|
|
}
|
|
|
|
// CoresEQ applies the EQ predicate on the "cores" field.
|
|
func CoresEQ(v int) predicate.Host {
|
|
return predicate.Host(sql.FieldEQ(FieldCores, v))
|
|
}
|
|
|
|
// CoresNEQ applies the NEQ predicate on the "cores" field.
|
|
func CoresNEQ(v int) predicate.Host {
|
|
return predicate.Host(sql.FieldNEQ(FieldCores, v))
|
|
}
|
|
|
|
// CoresIn applies the In predicate on the "cores" field.
|
|
func CoresIn(vs ...int) predicate.Host {
|
|
return predicate.Host(sql.FieldIn(FieldCores, vs...))
|
|
}
|
|
|
|
// CoresNotIn applies the NotIn predicate on the "cores" field.
|
|
func CoresNotIn(vs ...int) predicate.Host {
|
|
return predicate.Host(sql.FieldNotIn(FieldCores, vs...))
|
|
}
|
|
|
|
// CoresGT applies the GT predicate on the "cores" field.
|
|
func CoresGT(v int) predicate.Host {
|
|
return predicate.Host(sql.FieldGT(FieldCores, v))
|
|
}
|
|
|
|
// CoresGTE applies the GTE predicate on the "cores" field.
|
|
func CoresGTE(v int) predicate.Host {
|
|
return predicate.Host(sql.FieldGTE(FieldCores, v))
|
|
}
|
|
|
|
// CoresLT applies the LT predicate on the "cores" field.
|
|
func CoresLT(v int) predicate.Host {
|
|
return predicate.Host(sql.FieldLT(FieldCores, v))
|
|
}
|
|
|
|
// CoresLTE applies the LTE predicate on the "cores" field.
|
|
func CoresLTE(v int) predicate.Host {
|
|
return predicate.Host(sql.FieldLTE(FieldCores, v))
|
|
}
|
|
|
|
// CoresIsNil applies the IsNil predicate on the "cores" field.
|
|
func CoresIsNil() predicate.Host {
|
|
return predicate.Host(sql.FieldIsNull(FieldCores))
|
|
}
|
|
|
|
// CoresNotNil applies the NotNil predicate on the "cores" field.
|
|
func CoresNotNil() predicate.Host {
|
|
return predicate.Host(sql.FieldNotNull(FieldCores))
|
|
}
|
|
|
|
// WeightEQ applies the EQ predicate on the "weight" field.
|
|
func WeightEQ(v int) predicate.Host {
|
|
return predicate.Host(sql.FieldEQ(FieldWeight, v))
|
|
}
|
|
|
|
// WeightNEQ applies the NEQ predicate on the "weight" field.
|
|
func WeightNEQ(v int) predicate.Host {
|
|
return predicate.Host(sql.FieldNEQ(FieldWeight, v))
|
|
}
|
|
|
|
// WeightIn applies the In predicate on the "weight" field.
|
|
func WeightIn(vs ...int) predicate.Host {
|
|
return predicate.Host(sql.FieldIn(FieldWeight, vs...))
|
|
}
|
|
|
|
// WeightNotIn applies the NotIn predicate on the "weight" field.
|
|
func WeightNotIn(vs ...int) predicate.Host {
|
|
return predicate.Host(sql.FieldNotIn(FieldWeight, vs...))
|
|
}
|
|
|
|
// WeightGT applies the GT predicate on the "weight" field.
|
|
func WeightGT(v int) predicate.Host {
|
|
return predicate.Host(sql.FieldGT(FieldWeight, v))
|
|
}
|
|
|
|
// WeightGTE applies the GTE predicate on the "weight" field.
|
|
func WeightGTE(v int) predicate.Host {
|
|
return predicate.Host(sql.FieldGTE(FieldWeight, v))
|
|
}
|
|
|
|
// WeightLT applies the LT predicate on the "weight" field.
|
|
func WeightLT(v int) predicate.Host {
|
|
return predicate.Host(sql.FieldLT(FieldWeight, v))
|
|
}
|
|
|
|
// WeightLTE applies the LTE predicate on the "weight" field.
|
|
func WeightLTE(v int) predicate.Host {
|
|
return predicate.Host(sql.FieldLTE(FieldWeight, v))
|
|
}
|
|
|
|
// MemoryEQ applies the EQ predicate on the "memory" field.
|
|
func MemoryEQ(v int64) predicate.Host {
|
|
return predicate.Host(sql.FieldEQ(FieldMemory, v))
|
|
}
|
|
|
|
// MemoryNEQ applies the NEQ predicate on the "memory" field.
|
|
func MemoryNEQ(v int64) predicate.Host {
|
|
return predicate.Host(sql.FieldNEQ(FieldMemory, v))
|
|
}
|
|
|
|
// MemoryIn applies the In predicate on the "memory" field.
|
|
func MemoryIn(vs ...int64) predicate.Host {
|
|
return predicate.Host(sql.FieldIn(FieldMemory, vs...))
|
|
}
|
|
|
|
// MemoryNotIn applies the NotIn predicate on the "memory" field.
|
|
func MemoryNotIn(vs ...int64) predicate.Host {
|
|
return predicate.Host(sql.FieldNotIn(FieldMemory, vs...))
|
|
}
|
|
|
|
// MemoryGT applies the GT predicate on the "memory" field.
|
|
func MemoryGT(v int64) predicate.Host {
|
|
return predicate.Host(sql.FieldGT(FieldMemory, v))
|
|
}
|
|
|
|
// MemoryGTE applies the GTE predicate on the "memory" field.
|
|
func MemoryGTE(v int64) predicate.Host {
|
|
return predicate.Host(sql.FieldGTE(FieldMemory, v))
|
|
}
|
|
|
|
// MemoryLT applies the LT predicate on the "memory" field.
|
|
func MemoryLT(v int64) predicate.Host {
|
|
return predicate.Host(sql.FieldLT(FieldMemory, v))
|
|
}
|
|
|
|
// MemoryLTE applies the LTE predicate on the "memory" field.
|
|
func MemoryLTE(v int64) predicate.Host {
|
|
return predicate.Host(sql.FieldLTE(FieldMemory, v))
|
|
}
|
|
|
|
// MemoryIsNil applies the IsNil predicate on the "memory" field.
|
|
func MemoryIsNil() predicate.Host {
|
|
return predicate.Host(sql.FieldIsNull(FieldMemory))
|
|
}
|
|
|
|
// MemoryNotNil applies the NotNil predicate on the "memory" field.
|
|
func MemoryNotNil() predicate.Host {
|
|
return predicate.Host(sql.FieldNotNull(FieldMemory))
|
|
}
|
|
|
|
// DiskEQ applies the EQ predicate on the "disk" field.
|
|
func DiskEQ(v int64) predicate.Host {
|
|
return predicate.Host(sql.FieldEQ(FieldDisk, v))
|
|
}
|
|
|
|
// DiskNEQ applies the NEQ predicate on the "disk" field.
|
|
func DiskNEQ(v int64) predicate.Host {
|
|
return predicate.Host(sql.FieldNEQ(FieldDisk, v))
|
|
}
|
|
|
|
// DiskIn applies the In predicate on the "disk" field.
|
|
func DiskIn(vs ...int64) predicate.Host {
|
|
return predicate.Host(sql.FieldIn(FieldDisk, vs...))
|
|
}
|
|
|
|
// DiskNotIn applies the NotIn predicate on the "disk" field.
|
|
func DiskNotIn(vs ...int64) predicate.Host {
|
|
return predicate.Host(sql.FieldNotIn(FieldDisk, vs...))
|
|
}
|
|
|
|
// DiskGT applies the GT predicate on the "disk" field.
|
|
func DiskGT(v int64) predicate.Host {
|
|
return predicate.Host(sql.FieldGT(FieldDisk, v))
|
|
}
|
|
|
|
// DiskGTE applies the GTE predicate on the "disk" field.
|
|
func DiskGTE(v int64) predicate.Host {
|
|
return predicate.Host(sql.FieldGTE(FieldDisk, v))
|
|
}
|
|
|
|
// DiskLT applies the LT predicate on the "disk" field.
|
|
func DiskLT(v int64) predicate.Host {
|
|
return predicate.Host(sql.FieldLT(FieldDisk, v))
|
|
}
|
|
|
|
// DiskLTE applies the LTE predicate on the "disk" field.
|
|
func DiskLTE(v int64) predicate.Host {
|
|
return predicate.Host(sql.FieldLTE(FieldDisk, v))
|
|
}
|
|
|
|
// DiskIsNil applies the IsNil predicate on the "disk" field.
|
|
func DiskIsNil() predicate.Host {
|
|
return predicate.Host(sql.FieldIsNull(FieldDisk))
|
|
}
|
|
|
|
// DiskNotNil applies the NotNil predicate on the "disk" field.
|
|
func DiskNotNil() predicate.Host {
|
|
return predicate.Host(sql.FieldNotNull(FieldDisk))
|
|
}
|
|
|
|
// OsEQ applies the EQ predicate on the "os" field.
|
|
func OsEQ(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldEQ(FieldOs, v))
|
|
}
|
|
|
|
// OsNEQ applies the NEQ predicate on the "os" field.
|
|
func OsNEQ(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldNEQ(FieldOs, v))
|
|
}
|
|
|
|
// OsIn applies the In predicate on the "os" field.
|
|
func OsIn(vs ...string) predicate.Host {
|
|
return predicate.Host(sql.FieldIn(FieldOs, vs...))
|
|
}
|
|
|
|
// OsNotIn applies the NotIn predicate on the "os" field.
|
|
func OsNotIn(vs ...string) predicate.Host {
|
|
return predicate.Host(sql.FieldNotIn(FieldOs, vs...))
|
|
}
|
|
|
|
// OsGT applies the GT predicate on the "os" field.
|
|
func OsGT(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldGT(FieldOs, v))
|
|
}
|
|
|
|
// OsGTE applies the GTE predicate on the "os" field.
|
|
func OsGTE(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldGTE(FieldOs, v))
|
|
}
|
|
|
|
// OsLT applies the LT predicate on the "os" field.
|
|
func OsLT(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldLT(FieldOs, v))
|
|
}
|
|
|
|
// OsLTE applies the LTE predicate on the "os" field.
|
|
func OsLTE(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldLTE(FieldOs, v))
|
|
}
|
|
|
|
// OsContains applies the Contains predicate on the "os" field.
|
|
func OsContains(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldContains(FieldOs, v))
|
|
}
|
|
|
|
// OsHasPrefix applies the HasPrefix predicate on the "os" field.
|
|
func OsHasPrefix(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldHasPrefix(FieldOs, v))
|
|
}
|
|
|
|
// OsHasSuffix applies the HasSuffix predicate on the "os" field.
|
|
func OsHasSuffix(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldHasSuffix(FieldOs, v))
|
|
}
|
|
|
|
// OsIsNil applies the IsNil predicate on the "os" field.
|
|
func OsIsNil() predicate.Host {
|
|
return predicate.Host(sql.FieldIsNull(FieldOs))
|
|
}
|
|
|
|
// OsNotNil applies the NotNil predicate on the "os" field.
|
|
func OsNotNil() predicate.Host {
|
|
return predicate.Host(sql.FieldNotNull(FieldOs))
|
|
}
|
|
|
|
// OsEqualFold applies the EqualFold predicate on the "os" field.
|
|
func OsEqualFold(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldEqualFold(FieldOs, v))
|
|
}
|
|
|
|
// OsContainsFold applies the ContainsFold predicate on the "os" field.
|
|
func OsContainsFold(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldContainsFold(FieldOs, v))
|
|
}
|
|
|
|
// ExternalIPEQ applies the EQ predicate on the "external_ip" field.
|
|
func ExternalIPEQ(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldEQ(FieldExternalIP, v))
|
|
}
|
|
|
|
// ExternalIPNEQ applies the NEQ predicate on the "external_ip" field.
|
|
func ExternalIPNEQ(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldNEQ(FieldExternalIP, v))
|
|
}
|
|
|
|
// ExternalIPIn applies the In predicate on the "external_ip" field.
|
|
func ExternalIPIn(vs ...string) predicate.Host {
|
|
return predicate.Host(sql.FieldIn(FieldExternalIP, vs...))
|
|
}
|
|
|
|
// ExternalIPNotIn applies the NotIn predicate on the "external_ip" field.
|
|
func ExternalIPNotIn(vs ...string) predicate.Host {
|
|
return predicate.Host(sql.FieldNotIn(FieldExternalIP, vs...))
|
|
}
|
|
|
|
// ExternalIPGT applies the GT predicate on the "external_ip" field.
|
|
func ExternalIPGT(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldGT(FieldExternalIP, v))
|
|
}
|
|
|
|
// ExternalIPGTE applies the GTE predicate on the "external_ip" field.
|
|
func ExternalIPGTE(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldGTE(FieldExternalIP, v))
|
|
}
|
|
|
|
// ExternalIPLT applies the LT predicate on the "external_ip" field.
|
|
func ExternalIPLT(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldLT(FieldExternalIP, v))
|
|
}
|
|
|
|
// ExternalIPLTE applies the LTE predicate on the "external_ip" field.
|
|
func ExternalIPLTE(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldLTE(FieldExternalIP, v))
|
|
}
|
|
|
|
// ExternalIPContains applies the Contains predicate on the "external_ip" field.
|
|
func ExternalIPContains(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldContains(FieldExternalIP, v))
|
|
}
|
|
|
|
// ExternalIPHasPrefix applies the HasPrefix predicate on the "external_ip" field.
|
|
func ExternalIPHasPrefix(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldHasPrefix(FieldExternalIP, v))
|
|
}
|
|
|
|
// ExternalIPHasSuffix applies the HasSuffix predicate on the "external_ip" field.
|
|
func ExternalIPHasSuffix(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldHasSuffix(FieldExternalIP, v))
|
|
}
|
|
|
|
// ExternalIPIsNil applies the IsNil predicate on the "external_ip" field.
|
|
func ExternalIPIsNil() predicate.Host {
|
|
return predicate.Host(sql.FieldIsNull(FieldExternalIP))
|
|
}
|
|
|
|
// ExternalIPNotNil applies the NotNil predicate on the "external_ip" field.
|
|
func ExternalIPNotNil() predicate.Host {
|
|
return predicate.Host(sql.FieldNotNull(FieldExternalIP))
|
|
}
|
|
|
|
// ExternalIPEqualFold applies the EqualFold predicate on the "external_ip" field.
|
|
func ExternalIPEqualFold(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldEqualFold(FieldExternalIP, v))
|
|
}
|
|
|
|
// ExternalIPContainsFold applies the ContainsFold predicate on the "external_ip" field.
|
|
func ExternalIPContainsFold(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldContainsFold(FieldExternalIP, v))
|
|
}
|
|
|
|
// InternalIPEQ applies the EQ predicate on the "internal_ip" field.
|
|
func InternalIPEQ(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldEQ(FieldInternalIP, v))
|
|
}
|
|
|
|
// InternalIPNEQ applies the NEQ predicate on the "internal_ip" field.
|
|
func InternalIPNEQ(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldNEQ(FieldInternalIP, v))
|
|
}
|
|
|
|
// InternalIPIn applies the In predicate on the "internal_ip" field.
|
|
func InternalIPIn(vs ...string) predicate.Host {
|
|
return predicate.Host(sql.FieldIn(FieldInternalIP, vs...))
|
|
}
|
|
|
|
// InternalIPNotIn applies the NotIn predicate on the "internal_ip" field.
|
|
func InternalIPNotIn(vs ...string) predicate.Host {
|
|
return predicate.Host(sql.FieldNotIn(FieldInternalIP, vs...))
|
|
}
|
|
|
|
// InternalIPGT applies the GT predicate on the "internal_ip" field.
|
|
func InternalIPGT(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldGT(FieldInternalIP, v))
|
|
}
|
|
|
|
// InternalIPGTE applies the GTE predicate on the "internal_ip" field.
|
|
func InternalIPGTE(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldGTE(FieldInternalIP, v))
|
|
}
|
|
|
|
// InternalIPLT applies the LT predicate on the "internal_ip" field.
|
|
func InternalIPLT(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldLT(FieldInternalIP, v))
|
|
}
|
|
|
|
// InternalIPLTE applies the LTE predicate on the "internal_ip" field.
|
|
func InternalIPLTE(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldLTE(FieldInternalIP, v))
|
|
}
|
|
|
|
// InternalIPContains applies the Contains predicate on the "internal_ip" field.
|
|
func InternalIPContains(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldContains(FieldInternalIP, v))
|
|
}
|
|
|
|
// InternalIPHasPrefix applies the HasPrefix predicate on the "internal_ip" field.
|
|
func InternalIPHasPrefix(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldHasPrefix(FieldInternalIP, v))
|
|
}
|
|
|
|
// InternalIPHasSuffix applies the HasSuffix predicate on the "internal_ip" field.
|
|
func InternalIPHasSuffix(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldHasSuffix(FieldInternalIP, v))
|
|
}
|
|
|
|
// InternalIPIsNil applies the IsNil predicate on the "internal_ip" field.
|
|
func InternalIPIsNil() predicate.Host {
|
|
return predicate.Host(sql.FieldIsNull(FieldInternalIP))
|
|
}
|
|
|
|
// InternalIPNotNil applies the NotNil predicate on the "internal_ip" field.
|
|
func InternalIPNotNil() predicate.Host {
|
|
return predicate.Host(sql.FieldNotNull(FieldInternalIP))
|
|
}
|
|
|
|
// InternalIPEqualFold applies the EqualFold predicate on the "internal_ip" field.
|
|
func InternalIPEqualFold(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldEqualFold(FieldInternalIP, v))
|
|
}
|
|
|
|
// InternalIPContainsFold applies the ContainsFold predicate on the "internal_ip" field.
|
|
func InternalIPContainsFold(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldContainsFold(FieldInternalIP, v))
|
|
}
|
|
|
|
// VersionEQ applies the EQ predicate on the "version" field.
|
|
func VersionEQ(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldEQ(FieldVersion, v))
|
|
}
|
|
|
|
// VersionNEQ applies the NEQ predicate on the "version" field.
|
|
func VersionNEQ(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldNEQ(FieldVersion, v))
|
|
}
|
|
|
|
// VersionIn applies the In predicate on the "version" field.
|
|
func VersionIn(vs ...string) predicate.Host {
|
|
return predicate.Host(sql.FieldIn(FieldVersion, vs...))
|
|
}
|
|
|
|
// VersionNotIn applies the NotIn predicate on the "version" field.
|
|
func VersionNotIn(vs ...string) predicate.Host {
|
|
return predicate.Host(sql.FieldNotIn(FieldVersion, vs...))
|
|
}
|
|
|
|
// VersionGT applies the GT predicate on the "version" field.
|
|
func VersionGT(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldGT(FieldVersion, v))
|
|
}
|
|
|
|
// VersionGTE applies the GTE predicate on the "version" field.
|
|
func VersionGTE(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldGTE(FieldVersion, v))
|
|
}
|
|
|
|
// VersionLT applies the LT predicate on the "version" field.
|
|
func VersionLT(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldLT(FieldVersion, v))
|
|
}
|
|
|
|
// VersionLTE applies the LTE predicate on the "version" field.
|
|
func VersionLTE(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldLTE(FieldVersion, v))
|
|
}
|
|
|
|
// VersionContains applies the Contains predicate on the "version" field.
|
|
func VersionContains(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldContains(FieldVersion, v))
|
|
}
|
|
|
|
// VersionHasPrefix applies the HasPrefix predicate on the "version" field.
|
|
func VersionHasPrefix(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldHasPrefix(FieldVersion, v))
|
|
}
|
|
|
|
// VersionHasSuffix applies the HasSuffix predicate on the "version" field.
|
|
func VersionHasSuffix(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldHasSuffix(FieldVersion, v))
|
|
}
|
|
|
|
// VersionIsNil applies the IsNil predicate on the "version" field.
|
|
func VersionIsNil() predicate.Host {
|
|
return predicate.Host(sql.FieldIsNull(FieldVersion))
|
|
}
|
|
|
|
// VersionNotNil applies the NotNil predicate on the "version" field.
|
|
func VersionNotNil() predicate.Host {
|
|
return predicate.Host(sql.FieldNotNull(FieldVersion))
|
|
}
|
|
|
|
// VersionEqualFold applies the EqualFold predicate on the "version" field.
|
|
func VersionEqualFold(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldEqualFold(FieldVersion, v))
|
|
}
|
|
|
|
// VersionContainsFold applies the ContainsFold predicate on the "version" field.
|
|
func VersionContainsFold(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldContainsFold(FieldVersion, v))
|
|
}
|
|
|
|
// MachineIDEQ applies the EQ predicate on the "machine_id" field.
|
|
func MachineIDEQ(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldEQ(FieldMachineID, v))
|
|
}
|
|
|
|
// MachineIDNEQ applies the NEQ predicate on the "machine_id" field.
|
|
func MachineIDNEQ(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldNEQ(FieldMachineID, v))
|
|
}
|
|
|
|
// MachineIDIn applies the In predicate on the "machine_id" field.
|
|
func MachineIDIn(vs ...string) predicate.Host {
|
|
return predicate.Host(sql.FieldIn(FieldMachineID, vs...))
|
|
}
|
|
|
|
// MachineIDNotIn applies the NotIn predicate on the "machine_id" field.
|
|
func MachineIDNotIn(vs ...string) predicate.Host {
|
|
return predicate.Host(sql.FieldNotIn(FieldMachineID, vs...))
|
|
}
|
|
|
|
// MachineIDGT applies the GT predicate on the "machine_id" field.
|
|
func MachineIDGT(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldGT(FieldMachineID, v))
|
|
}
|
|
|
|
// MachineIDGTE applies the GTE predicate on the "machine_id" field.
|
|
func MachineIDGTE(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldGTE(FieldMachineID, v))
|
|
}
|
|
|
|
// MachineIDLT applies the LT predicate on the "machine_id" field.
|
|
func MachineIDLT(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldLT(FieldMachineID, v))
|
|
}
|
|
|
|
// MachineIDLTE applies the LTE predicate on the "machine_id" field.
|
|
func MachineIDLTE(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldLTE(FieldMachineID, v))
|
|
}
|
|
|
|
// MachineIDContains applies the Contains predicate on the "machine_id" field.
|
|
func MachineIDContains(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldContains(FieldMachineID, v))
|
|
}
|
|
|
|
// MachineIDHasPrefix applies the HasPrefix predicate on the "machine_id" field.
|
|
func MachineIDHasPrefix(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldHasPrefix(FieldMachineID, v))
|
|
}
|
|
|
|
// MachineIDHasSuffix applies the HasSuffix predicate on the "machine_id" field.
|
|
func MachineIDHasSuffix(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldHasSuffix(FieldMachineID, v))
|
|
}
|
|
|
|
// MachineIDIsNil applies the IsNil predicate on the "machine_id" field.
|
|
func MachineIDIsNil() predicate.Host {
|
|
return predicate.Host(sql.FieldIsNull(FieldMachineID))
|
|
}
|
|
|
|
// MachineIDNotNil applies the NotNil predicate on the "machine_id" field.
|
|
func MachineIDNotNil() predicate.Host {
|
|
return predicate.Host(sql.FieldNotNull(FieldMachineID))
|
|
}
|
|
|
|
// MachineIDEqualFold applies the EqualFold predicate on the "machine_id" field.
|
|
func MachineIDEqualFold(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldEqualFold(FieldMachineID, v))
|
|
}
|
|
|
|
// MachineIDContainsFold applies the ContainsFold predicate on the "machine_id" field.
|
|
func MachineIDContainsFold(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldContainsFold(FieldMachineID, v))
|
|
}
|
|
|
|
// RemarkEQ applies the EQ predicate on the "remark" field.
|
|
func RemarkEQ(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldEQ(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkNEQ applies the NEQ predicate on the "remark" field.
|
|
func RemarkNEQ(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldNEQ(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkIn applies the In predicate on the "remark" field.
|
|
func RemarkIn(vs ...string) predicate.Host {
|
|
return predicate.Host(sql.FieldIn(FieldRemark, vs...))
|
|
}
|
|
|
|
// RemarkNotIn applies the NotIn predicate on the "remark" field.
|
|
func RemarkNotIn(vs ...string) predicate.Host {
|
|
return predicate.Host(sql.FieldNotIn(FieldRemark, vs...))
|
|
}
|
|
|
|
// RemarkGT applies the GT predicate on the "remark" field.
|
|
func RemarkGT(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldGT(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkGTE applies the GTE predicate on the "remark" field.
|
|
func RemarkGTE(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldGTE(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkLT applies the LT predicate on the "remark" field.
|
|
func RemarkLT(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldLT(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkLTE applies the LTE predicate on the "remark" field.
|
|
func RemarkLTE(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldLTE(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkContains applies the Contains predicate on the "remark" field.
|
|
func RemarkContains(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldContains(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkHasPrefix applies the HasPrefix predicate on the "remark" field.
|
|
func RemarkHasPrefix(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldHasPrefix(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkHasSuffix applies the HasSuffix predicate on the "remark" field.
|
|
func RemarkHasSuffix(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldHasSuffix(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkIsNil applies the IsNil predicate on the "remark" field.
|
|
func RemarkIsNil() predicate.Host {
|
|
return predicate.Host(sql.FieldIsNull(FieldRemark))
|
|
}
|
|
|
|
// RemarkNotNil applies the NotNil predicate on the "remark" field.
|
|
func RemarkNotNil() predicate.Host {
|
|
return predicate.Host(sql.FieldNotNull(FieldRemark))
|
|
}
|
|
|
|
// RemarkEqualFold applies the EqualFold predicate on the "remark" field.
|
|
func RemarkEqualFold(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldEqualFold(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkContainsFold applies the ContainsFold predicate on the "remark" field.
|
|
func RemarkContainsFold(v string) predicate.Host {
|
|
return predicate.Host(sql.FieldContainsFold(FieldRemark, v))
|
|
}
|
|
|
|
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
|
func CreatedAtEQ(v time.Time) predicate.Host {
|
|
return predicate.Host(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
|
|
func CreatedAtNEQ(v time.Time) predicate.Host {
|
|
return predicate.Host(sql.FieldNEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtIn applies the In predicate on the "created_at" field.
|
|
func CreatedAtIn(vs ...time.Time) predicate.Host {
|
|
return predicate.Host(sql.FieldIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
|
|
func CreatedAtNotIn(vs ...time.Time) predicate.Host {
|
|
return predicate.Host(sql.FieldNotIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtGT applies the GT predicate on the "created_at" field.
|
|
func CreatedAtGT(v time.Time) predicate.Host {
|
|
return predicate.Host(sql.FieldGT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
|
|
func CreatedAtGTE(v time.Time) predicate.Host {
|
|
return predicate.Host(sql.FieldGTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLT applies the LT predicate on the "created_at" field.
|
|
func CreatedAtLT(v time.Time) predicate.Host {
|
|
return predicate.Host(sql.FieldLT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
|
|
func CreatedAtLTE(v time.Time) predicate.Host {
|
|
return predicate.Host(sql.FieldLTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
|
|
func UpdatedAtEQ(v time.Time) predicate.Host {
|
|
return predicate.Host(sql.FieldEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
|
|
func UpdatedAtNEQ(v time.Time) predicate.Host {
|
|
return predicate.Host(sql.FieldNEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtIn applies the In predicate on the "updated_at" field.
|
|
func UpdatedAtIn(vs ...time.Time) predicate.Host {
|
|
return predicate.Host(sql.FieldIn(FieldUpdatedAt, vs...))
|
|
}
|
|
|
|
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
|
|
func UpdatedAtNotIn(vs ...time.Time) predicate.Host {
|
|
return predicate.Host(sql.FieldNotIn(FieldUpdatedAt, vs...))
|
|
}
|
|
|
|
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
|
|
func UpdatedAtGT(v time.Time) predicate.Host {
|
|
return predicate.Host(sql.FieldGT(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
|
|
func UpdatedAtGTE(v time.Time) predicate.Host {
|
|
return predicate.Host(sql.FieldGTE(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
|
|
func UpdatedAtLT(v time.Time) predicate.Host {
|
|
return predicate.Host(sql.FieldLT(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
|
|
func UpdatedAtLTE(v time.Time) predicate.Host {
|
|
return predicate.Host(sql.FieldLTE(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// HasVms applies the HasEdge predicate on the "vms" edge.
|
|
func HasVms() predicate.Host {
|
|
return predicate.Host(func(s *sql.Selector) {
|
|
step := sqlgraph.NewStep(
|
|
sqlgraph.From(Table, FieldID),
|
|
sqlgraph.Edge(sqlgraph.O2M, false, VmsTable, VmsColumn),
|
|
)
|
|
sqlgraph.HasNeighbors(s, step)
|
|
})
|
|
}
|
|
|
|
// HasVmsWith applies the HasEdge predicate on the "vms" edge with a given conditions (other predicates).
|
|
func HasVmsWith(preds ...predicate.VirtualMachine) predicate.Host {
|
|
return predicate.Host(func(s *sql.Selector) {
|
|
step := newVmsStep()
|
|
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
|
|
for _, p := range preds {
|
|
p(s)
|
|
}
|
|
})
|
|
})
|
|
}
|
|
|
|
// HasUser applies the HasEdge predicate on the "user" edge.
|
|
func HasUser() predicate.Host {
|
|
return predicate.Host(func(s *sql.Selector) {
|
|
step := sqlgraph.NewStep(
|
|
sqlgraph.From(Table, FieldID),
|
|
sqlgraph.Edge(sqlgraph.M2O, true, UserTable, UserColumn),
|
|
)
|
|
sqlgraph.HasNeighbors(s, step)
|
|
})
|
|
}
|
|
|
|
// HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
|
|
func HasUserWith(preds ...predicate.User) predicate.Host {
|
|
return predicate.Host(func(s *sql.Selector) {
|
|
step := newUserStep()
|
|
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
|
|
for _, p := range preds {
|
|
p(s)
|
|
}
|
|
})
|
|
})
|
|
}
|
|
|
|
// HasGroups applies the HasEdge predicate on the "groups" edge.
|
|
func HasGroups() predicate.Host {
|
|
return predicate.Host(func(s *sql.Selector) {
|
|
step := sqlgraph.NewStep(
|
|
sqlgraph.From(Table, FieldID),
|
|
sqlgraph.Edge(sqlgraph.M2M, true, GroupsTable, GroupsPrimaryKey...),
|
|
)
|
|
sqlgraph.HasNeighbors(s, step)
|
|
})
|
|
}
|
|
|
|
// HasGroupsWith applies the HasEdge predicate on the "groups" edge with a given conditions (other predicates).
|
|
func HasGroupsWith(preds ...predicate.TeamGroup) predicate.Host {
|
|
return predicate.Host(func(s *sql.Selector) {
|
|
step := newGroupsStep()
|
|
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
|
|
for _, p := range preds {
|
|
p(s)
|
|
}
|
|
})
|
|
})
|
|
}
|
|
|
|
// HasGitBots applies the HasEdge predicate on the "git_bots" edge.
|
|
func HasGitBots() predicate.Host {
|
|
return predicate.Host(func(s *sql.Selector) {
|
|
step := sqlgraph.NewStep(
|
|
sqlgraph.From(Table, FieldID),
|
|
sqlgraph.Edge(sqlgraph.O2M, false, GitBotsTable, GitBotsColumn),
|
|
)
|
|
sqlgraph.HasNeighbors(s, step)
|
|
})
|
|
}
|
|
|
|
// HasGitBotsWith applies the HasEdge predicate on the "git_bots" edge with a given conditions (other predicates).
|
|
func HasGitBotsWith(preds ...predicate.GitBot) predicate.Host {
|
|
return predicate.Host(func(s *sql.Selector) {
|
|
step := newGitBotsStep()
|
|
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
|
|
for _, p := range preds {
|
|
p(s)
|
|
}
|
|
})
|
|
})
|
|
}
|
|
|
|
// HasTeamGroupHosts applies the HasEdge predicate on the "team_group_hosts" edge.
|
|
func HasTeamGroupHosts() predicate.Host {
|
|
return predicate.Host(func(s *sql.Selector) {
|
|
step := sqlgraph.NewStep(
|
|
sqlgraph.From(Table, FieldID),
|
|
sqlgraph.Edge(sqlgraph.O2M, true, TeamGroupHostsTable, TeamGroupHostsColumn),
|
|
)
|
|
sqlgraph.HasNeighbors(s, step)
|
|
})
|
|
}
|
|
|
|
// HasTeamGroupHostsWith applies the HasEdge predicate on the "team_group_hosts" edge with a given conditions (other predicates).
|
|
func HasTeamGroupHostsWith(preds ...predicate.TeamGroupHost) predicate.Host {
|
|
return predicate.Host(func(s *sql.Selector) {
|
|
step := newTeamGroupHostsStep()
|
|
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
|
|
for _, p := range preds {
|
|
p(s)
|
|
}
|
|
})
|
|
})
|
|
}
|
|
|
|
// And groups predicates with the AND operator between them.
|
|
func And(predicates ...predicate.Host) predicate.Host {
|
|
return predicate.Host(sql.AndPredicates(predicates...))
|
|
}
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
func Or(predicates ...predicate.Host) predicate.Host {
|
|
return predicate.Host(sql.OrPredicates(predicates...))
|
|
}
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
func Not(p predicate.Host) predicate.Host {
|
|
return predicate.Host(sql.NotPredicates(p))
|
|
}
|